Home > Paid Traffic Sources > Facebook & Instagram

fb conversion pixel on cloaked campaign (5)


02-01-2016 10:13 AM #1 mitjamg ()
fb conversion pixel on cloaked campaign

Hey guys, anyone knows a solution for tracking fb pixels through cloaked campaign without showing them the offer link referal.

I tried placing a php script with fb pixel on my safe-page, and put a custom-pixel on the offer which calls my php script, everything works fine but fb still shows under pixel stats the referal domain of the affiliate product link and not of my safe-page domain.


02-01-2016 10:38 AM #2 bobliu (Member)

What php code are you using from the offer page, to call the fb pixel?


02-01-2016 10:44 AM #3 mitjamg ()

I use this:

<div style="display:none"><iframe width="1" height="1" src="https://domain.com/sale.php"></iframe></div>


02-01-2016 11:21 AM #4 bobliu (Member)

iFrame children can access parent url/refer details unless one is https and the other is http. Therefore a quick fix could be to change the iFrame to http - although this brings up insecure content warnings in some versions of IE so may not be a good idea. Alternative would be to cloak on the same page, rather than redirecting, when fb visits cloaked redirect page, they see cloaked safe page.


02-02-2016 08:03 AM #5 dimlicht (Member)

this might be interesting, you set 2 "campaigns" in your cloaker.
- So you'll have safe-LP and safe-thankyou
- 1 cloaked 'campaign' redirects safe-LP to $-LP, and $-LP redirects to safe-thankyou after conversion
- 1 cloaked 'campaign' redirects safe-thankyou to $-thankyou
and you'd put the pixel on safe-thankyou, obviously. I think that's also how it went in adwords.


Home > Paid Traffic Sources > Facebook & Instagram