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.
What php code are you using from the offer page, to call the fb pixel?
I use this:
<div style="display:none"><iframe width="1" height="1" src="https://domain.com/sale.php"></iframe></div>
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.
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.