feat: google analytics
This commit is contained in:
@@ -203,6 +203,18 @@ export function Layout({ children }: { children: ReactNode }) {
|
||||
))}
|
||||
<Meta />
|
||||
<Links />
|
||||
<script
|
||||
async
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-TJT6NM2DMT"
|
||||
/>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-TJT6NM2DMT');`,
|
||||
}}
|
||||
/>
|
||||
</head>
|
||||
<body className="flex min-h-dvh flex-col">
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user