Skip to content

Commit

Permalink
Update g-tag ID
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritanand authored Sep 28, 2023
1 parent 9b1914e commit d45936e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ export default function Document() {
return (
<Html lang="en">
<Head />
<Script src="https://www.googletagmanager.com/gtag/js?id=G-BBZJRC7ER3" />
<Script id="google-analytics">
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-7NXTY5KCKL"
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GA_MEASUREMENT_ID');
gtag('config', 'G-7NXTY5KCKL');
`}
</Script>
<body>
Expand Down

0 comments on commit d45936e

Please sign in to comment.