How to Delay Firing Your Facebook Conversion Pixel

How to Delay Firing Your Facebook Conversion Pixel

Share this post and enter to win 1 on 1 consulting worth $2000!

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:

[code lang=”js”]
<!– 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 –>
[/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

[code lang=”js”]
<!– 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 –>[/code]

 

Note: Be sure to replace XXXXXXXXXXXXXXXX with your pixelID!

TLDR version:

[code]

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

[/code]

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.

Share this post and enter to win 1 on 1 consulting worth $2000!

iAmAttila is a serial entrepeneur that started performance affiliate marketing in 2008 building and ranking sites. After the google humminbird update made SEO ranking way harder he switched to paid advertising in 2012. Ever since switching to paid ads, he has spent over 8 figures in ad spend promoting a variety of verticals and adapting to new changes and challenges as they come up. on iAmAttila.com, the blog he shares up to date information, tips and tricks that work and helps readers learn about new affiliate marketing opportunities. When he's not busy working (although he works 12-14 hours each day) he enjoys traveling with his family, playing with his dogs, BBQ, movies and learning new stuff.

3 thoughts on “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 *

ten − 3 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.