Skip to content

Instantly share code, notes, and snippets.

@macdabby
Created August 3, 2016 23:59
Show Gist options
  • Save macdabby/0f287cf73c01db9e5170dc355652ef0c to your computer and use it in GitHub Desktop.
Save macdabby/0f287cf73c01db9e5170dc355652ef0c to your computer and use it in GitHub Desktop.
!function(window,document,script_constant,script_url,n,t,s){
if(window.fbq) return;
n = window.fbq = function(){
n.callMethod ? n.callMethod.apply(n,arguments) : n.queue.push(arguments)
};
if(!window._fbq) {
window._fbq = n;
}
n.push = n;
n.loaded=!0;
n.version='2.0';
n.queue=[];
t=document.createElement(script_constant);
t.async=!0;
t.src=script_url;
s=document.getElementsByTagName(script_constant)[0];
s.parentNode.insertBefore(t,s)
}(window, document,'script','//connect.facebook.net/en_US/fbevents.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment