Skip to content

Commit

Permalink
feat: add gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Jan 15, 2025
1 parent 978f278 commit c2941b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
<meta name="apple-mobile-web-app-title" content="SH" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X4VNGKFN4T" />
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-X4VNGKFN4T');
</script>
</head>
<body>
<TRPCReactProvider>{children}</TRPCReactProvider>
Expand Down

0 comments on commit c2941b4

Please sign in to comment.