Facebook Pixel - Product Ads - Pixel firing multiple times

Highlighted
New Member
1 0 0

Hey all,

I am trying to get product ads (dynamic remarketing) set up for Facebook. I have the below code installed before the </head> tag. The FB Pixel Helper is showing a lot of errors with the pixel firing multiple times. The store is 4frnt.com. Any idea where I am going wrong with the implementation? Seems I am getting a decent custom audiance, but the product ads are not being triggered.

Thanks!

<!-- 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','//connect.facebook.net/en_US/fbevents.js');

fbq('init', '490431647799364');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=490431647799364&ev=PageView&noscript=1";
/></noscript>

  <!-- End Facebook Pixel Code -->

0 Likes
Highlighted
New Member
1 0 0

I'm still learning myself how to install this. But I think the problem why is it firing multiple times is because this pixel is for pageview. 

Yours:
fbq('init', '490431647799364');
fbq('track', "PageView");</script>

Change to this:

ffbq('init', '490431647799364');
fbq('track', 'Purchase', {value: '{{ total_price | money_without_currency }}', currency: 'USD'});</script>

But the thing that I don't know here is the noscript thing with the ev=PageView I think you can change it to just Purchase. Anyway I will try to update you with this matter. I'm trying to figure out it myself too.

Cheers!

0 Likes