File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const {
31
31
32
32
const socialImageURL = new URL (
33
33
ogImage ?? SITE .ogImage ?? " og.png" ,
34
- Astro .url .origin
34
+ Astro .url .origin ,
35
35
).href ;
36
36
37
37
const structuredData = {
@@ -57,6 +57,17 @@ const structuredData = {
57
57
class ={ ` ${scrollSmooth && " scroll-smooth" } ` }
58
58
>
59
59
<head >
60
+ <!-- Google tag (gtag.js) -->
61
+ <script async src =" https://www.googletagmanager.com/gtag/js?id=G-ZXC7NG6S55" ></script >
62
+ <script >
63
+ window.dataLayer = window.dataLayer || [];
64
+ function gtag() {
65
+ dataLayer.push(arguments);
66
+ }
67
+ gtag("js", new Date());
68
+
69
+ gtag("config", "G-ZXC7NG6S55");
70
+ </script >
60
71
<meta charset =" UTF-8" />
61
72
<meta name =" viewport" content =" width=device-width" />
62
73
<link rel =" icon" type =" image/svg+xml" href =" /favicon.svg" />
@@ -134,8 +145,12 @@ const structuredData = {
134
145
<ViewTransitions />
135
146
136
147
<script is:inline src =" /toggle-theme.js" async ></script >
137
- <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css" />
148
+ <link
149
+ rel =" stylesheet"
150
+ href =" https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css"
151
+ />
138
152
</head >
153
+
139
154
<body >
140
155
<slot />
141
156
</body >
You can’t perform that action at this time.
0 commit comments