Skip to content

Instantly share code, notes, and snippets.

@georgi
Last active June 25, 2016 05:28
Show Gist options
  • Save georgi/01d1c874f5dc7346fcafae90f547c5d7 to your computer and use it in GitHub Desktop.
Save georgi/01d1c874f5dc7346fcafae90f547c5d7 to your computer and use it in GitHub Desktop.
Delayed PIxel
<!-- 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');
// Insert Your Facebook Pixel ID below.
fbq('init', 'FB_PIXEL_ID');
fbq('track', 'PageView');
window.setTimeout(function() {
fbq('track', 'Lead');
}, 60000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment