feat: add GA4 tracking (G-6EJVCK4931) to bonelordbob.com
This commit is contained in:
+14
-1
@@ -3,7 +3,20 @@ import { Html, Head, Main, NextScript } from "next/document";
|
|||||||
export default function Document() {
|
export default function Document() {
|
||||||
return (
|
return (
|
||||||
<Html lang="en">
|
<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>
|
<body>
|
||||||
<Main />
|
<Main />
|
||||||
<NextScript />
|
<NextScript />
|
||||||
|
|||||||
Reference in New Issue
Block a user