Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
Add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiwat10 committed Apr 20, 2021
1 parent 4c0783c commit 2b70923
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ function MyApp({ Component, pageProps }: AppProps): React.ReactNode {
<Head>
<title>Ropsten Faucet</title>
<link rel="icon" type="image/png" href="eth32.png"></link>
{/* Global site tag (gtag.js) - Google Analytics */}
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-ENWJRZPE6L"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ENWJRZPE6L');
`,
}}
/>
</Head>
<Component {...pageProps} />
</>
Expand Down

1 comment on commit 2b70923

@vercel
Copy link

@vercel vercel bot commented on 2b70923 Apr 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.