Skip to content

Commit 705edff

Browse files
committed
site: add GA
1 parent 1ff2c90 commit 705edff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

site/pages/_document.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ class MyDocument extends Document {
1414
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
1515
/>
1616
<link rel="manifest" href="/site.webmanifest" />
17+
18+
{/* Google Analytics */}
19+
<script
20+
async
21+
src="https://www.googletagmanager.com/gtag/js?id=G-076XNSZ8PF"
22+
/>
23+
<script
24+
dangerouslySetInnerHTML={{
25+
__html: `
26+
window.dataLayer = window.dataLayer || [];
27+
function gtag(){dataLayer.push(arguments);}
28+
gtag('js', new Date());
29+
gtag('config', 'G-076XNSZ8PF');
30+
`,
31+
}}
32+
/>
1733
</Head>
1834
<body className="bg-bg text-fg">
1935
<Main />

0 commit comments

Comments
 (0)