Skip to content

Commit 5246cee

Browse files
committed
ga tag
1 parent 3fc53e8 commit 5246cee

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

app/layout.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ export default function RootLayout({
2929
crossOrigin="anonymous"
3030
data-ad-client="ca-pub-4845852016760480"
3131
/>
32+
<Script
33+
async
34+
src="https://www.googletagmanager.com/gtag/js?id=G-KQYDN19HGC"
35+
strategy="afterInteractive"
36+
/>
37+
<Script id="google-analytics" strategy="afterInteractive">
38+
{`
39+
window.dataLayer = window.dataLayer || [];
40+
function gtag(){dataLayer.push(arguments);}
41+
gtag('js', new Date());
42+
gtag('config', 'G-KQYDN19HGC');
43+
`}
44+
</Script>
3245
<link
3346
rel="alternate"
3447
type="application/rss+xml"

0 commit comments

Comments
 (0)