feat: add GA4 tracking (G-6EJVCK4931) to bonelordbob.com

This commit is contained in:
2026-04-09 08:25:42 -05:00
parent ecb1c55774
commit 1786c6bb7b
+14 -1
View File
@@ -3,7 +3,20 @@ import { Html, Head, Main, NextScript } from "next/document";
export default function Document() {
return (
<Html lang="en">
<Head />
<Head>
{/* Google Analytics GA4 — G-6EJVCK4931 */}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6EJVCK4931" />
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6EJVCK4931');
`,
}}
/>
</Head>
<body>
<Main />
<NextScript />