@@ -13,12 +13,12 @@ const {
13
13
ogImage = new URL (" /meta/og.jpg" , Astro .url ),
14
14
} = Astro .props ;
15
15
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 ;
21
17
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 );
22
22
---
23
23
24
24
<!DOCTYPE html >
@@ -90,6 +90,34 @@ const url = pathname[pathname.length - 1] === "/"
90
90
data-api =" /stats/api/event"
91
91
data-domain =" usehooks.com"
92
92
></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 >
93
121
</head >
94
122
<body >
95
123
<slot />
0 commit comments