@@ -13,12 +13,12 @@ const {
1313 ogImage = new URL (" /meta/og.jpg" , Astro .url ),
1414} = Astro .props ;
1515
16- const pathname = Astro .url .pathname
17-
18- const url = pathname [pathname .length - 1 ] === " /"
19- ? new URL (pathname .slice (0 , pathname .length - 1 ), Astro .site )
20- : new URL (Astro .url .pathname , Astro .site )
16+ const pathname = Astro .url .pathname ;
2117
18+ const url =
19+ pathname [pathname .length - 1 ] === " /"
20+ ? new URL (pathname .slice (0 , pathname .length - 1 ), Astro .site )
21+ : new URL (Astro .url .pathname , Astro .site );
2222---
2323
2424<!DOCTYPE html >
@@ -90,6 +90,34 @@ const url = pathname[pathname.length - 1] === "/"
9090 data-api =" /stats/api/event"
9191 data-domain =" usehooks.com"
9292 ></script >
93+
94+ <script defer >
95+ !(function (f, b, e, v, n, t, s) {
96+ if (f.fbq) return;
97+ n = f.fbq = function () {
98+ n.callMethod
99+ ? n.callMethod.apply(n, arguments)
100+ : n.queue.push(arguments);
101+ };
102+ if (!f._fbq) f._fbq = n;
103+ n.push = n;
104+ n.loaded = !0;
105+ n.version = "2.0";
106+ n.queue = [];
107+ t = b.createElement(e);
108+ t.async = !0;
109+ t.src = v;
110+ s = b.getElementsByTagName(e)[0];
111+ s.parentNode.insertBefore(t, s);
112+ })(
113+ window,
114+ document,
115+ "script",
116+ "https://connect.facebook.net/en_US/fbevents.js"
117+ );
118+ fbq("init", "186849069509023");
119+ fbq("track", "PageView");
120+ </script >
93121 </head >
94122 <body >
95123 <slot />
0 commit comments