Skip to main content

How to Delay Firing Your Facebook Conversion Pixel

Sharing is caring!

This Facebook Conversion Pixel trick will help get better, more qualified visitors to your site because it will help train it to be smarter. When running campaigns,  thinking outside the box can yield amazing profit benefits.  One of these things is delaying firing the facebook pixel when a visitor comes to your page.

Why would you want to do this?

The answer makes a lot of sense, and here’s why – lets say 10 people come to your page,  7 of them come, they see it, and they close the window.   They didn’t read ANY of your text, they probably saw oh damn this is an advertisement,  and bounced right off your page.

Then there are the 3 that stayed, and read the page.    THESE ARE THE TYPE OF VISITORS YOU WANT! They will read your lander,  and are most likely to convert on your offer.      Train your pixel to target these kind of people!   Delay firing your facebook conversion pixel by 3 seconds to clean your pixel from “bouncers”. We personally use AddToCart to optimize for people that visit the LP and actually read it.

It is easier than ever to implement, all you have to do is add a setTimeout function to the tracking elements and specify how many milliseconds you want it to wait before firing the pixel.

 

Here’s the default FB pixel they give you from the Pixel Panel:

<!-- 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', 'XXXXXXXXXXXXXXXX');
  fbq('track', 'PageView');
  fbq('track', 'AddtoCart');
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=XXXXXXXXXXXXXXXX&ev=PageView&noscript=1" /></noscript>
<!-- End Facebook Pixel Code -->

We are concerned about the AddtoCart tracking property, we want to fire this only for people who read the page/stay on it for minimum 3 seconds. So we wrap it in some sexy code that will delay it from firing.

Here’s the FB pixel from above with the setTimeout function added

<!-- 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', 'XXXXXXXXXXXXXXXX');
  fbq('track', 'PageView');

setTimeout(function(){
     fbq('track', 'AddtoCart');
}, 3000);

</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=XXXXXXXXXXXXXXXX&ev=PageView&noscript=1" /></noscript>
<!-- End Facebook Pixel Code -->

 

Note: Be sure to replace XXXXXXXXXXXXXXXX with your pixelID!

TLDR version:


We've added setTimeout(function(){     }, 3000; 
around the "function" we want to delay ->
  fbq('track', 'AddtoCart');




PS: You can use 3rd party tools like Google Tag Manager, or PixelYourSite to delay firing the pixel through those, you may also create a custom audience, and optimize for the top 25% of people that spent time on your site, or top 10% or top 1%. So there’s multiple ways.

Sharing is caring!

3 thoughts to “How to Delay Firing Your Facebook Conversion Pixel”

    1. Because this option gives you more flexibility to use your data about audience later and gives additional parameters for Facebook to optimise.

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × 2 =

shares