Home > Paid Traffic Sources > Facebook & Instagram

How to fire FB AddToCart event without revealing the page? (4)


07-22-2018 11:35 AM #1 symba3 (AMC Alumnus)
How to fire FB AddToCart event without revealing the page?

Hi, I read this useful guide about firing the pixel on your LP when someone clicks on it: http://iamattila.com/media-buying-10...our-lander.php

Now my question is, how to make it work without revealing to FB the origin of the page? I'm doing BH and I'm guessing if FB sees the AddToCart on my dirty page it's gonna get me banned fast. Thanks.


07-22-2018 12:14 PM #2 manu_adefy (Veteran Member)

Quote Originally Posted by symba3 View Post
Hi, I read this useful guide about firing the pixel on your LP when someone clicks on it: http://iamattila.com/media-buying-10...our-lander.php

Now my question is, how to make it work without revealing to FB the origin of the page? I'm doing BH and I'm guessing if FB sees the AddToCart on my dirty page it's gonna get me banned fast. Thanks.
You should be able to fire a pixel even within a page that auto-refreshes to redirect to another one.

I'm surprised people didn't run into issues with this but that's what I've seen one of the FB ads veterans recommend in the Facebook Ad Buyers group.


07-22-2018 04:09 PM #3 symba3 (AMC Alumnus)

Quote Originally Posted by manu_adefy View Post
You should be able to fire a pixel even within a page that auto-refreshes to redirect to another one.

I'm surprised people didn't run into issues with this but that's what I've seen one of the FB ads veterans recommend in the Facebook Ad Buyers group.
Do you have a link to that perhaps? Or some code to implement it? Thanks.


07-22-2018 07:20 PM #4 manu_adefy (Veteran Member)

Quote Originally Posted by symba3 View Post
Do you have a link to that perhaps? Or some code to implement it? Thanks.
Code:
<html>

<head>

<!-- Facebook Pixel Code -->

<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', 'PIXELID');
  fbq('track', 'Purchase', {
    value: 'VALUE',
    currency: 'USD',
  });

</script>

<noscript><img height="1" width="1" style="display:none"
  src="https://www.facebook.com/tr?ev=PIXELID&;cd[value]=0.00&;cd[currency]=USD&;noscript=1"
/></noscript>

<!-- End Facebook Pixel Code -->


</head>

<body>

<meta http-equiv="refresh" content="0; URL=http://yourlink.com" />

</body>

</html>


Home > Paid Traffic Sources > Facebook & Instagram