Skip to content

Commit

Permalink
Re-add GA
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Feb 22, 2022
1 parent 9aade53 commit fffc572
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ function MyApp({ Component, pageProps }) {
<link rel="icon" href="/favicon.png" />
</Head>
<Component {...pageProps} />
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-4YPM75W7D9"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4YPM75W7D9');
`,
}}
/>
</>
);
}
Expand Down

0 comments on commit fffc572

Please sign in to comment.