Skip to content

Instantly share code, notes, and snippets.

@wyrfel
Last active April 7, 2019 14:22
Show Gist options
  • Save wyrfel/54227d940d7f8261256853d3bf20b390 to your computer and use it in GitHub Desktop.
Save wyrfel/54227d940d7f8261256853d3bf20b390 to your computer and use it in GitHub Desktop.
fn.fbq - load-script - unrolled
function () {
return function () {
var win = window,
fbq = win.fbq;
if (!fbq) {
fbq = win.fbq = function() {
fbq.callMethod ? fbq.callMethod.apply(fbq, arguments) : fbq.queue.push(arguments)
};
if (!win._fbq) {
win._fbq = fbq;
}
fbq.push = fbq;
fbq.loaded = !0;
fbq.version = '2.0';
fbq.queue = [];
{{fn.load-script}}('//connect.facebook.net/en_US/fbevents.js');
fbq('init', '.....');
}
return fbq.apply(win, arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment