Skip to content

Commit

Permalink
google analytics added
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed Dec 9, 2024
1 parent db6fa73 commit 5e42b23
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ class MyDocument extends Document {
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-4QRG14GXW2"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4QRG14GXW2');
`,
}}
></script>
</Head>
<body>
<Main />
Expand Down

0 comments on commit 5e42b23

Please sign in to comment.