Skip to content

Commit

Permalink
Merge pull request #72 from codecrafters-io/add-pixel
Browse files Browse the repository at this point in the history
Add Facebook Pixel tracking script
  • Loading branch information
ryan-gang authored Feb 10, 2025
2 parents 3bfbfd9 + 22ebb64 commit 30292c4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/facebook-pixel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
!(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", "1218366289258395");
fbq("track", "PageView");

0 comments on commit 30292c4

Please sign in to comment.