Skip to content

Commit

Permalink
Merge pull request #320 from DeKal/google-analytics
Browse files Browse the repository at this point in the history
[#311] Add GA to website
  • Loading branch information
DeKal authored Jul 17, 2020
2 parents 7596094 + 8aad0d6 commit 7751962
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ class MyDocument extends Document {
as="font"
crossOrigin=""
/>

<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-172952138-1"
/>

<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-172952138-1');
`
}}
/>
</Head>
<body>
<Main />
Expand Down

1 comment on commit 7751962

@vercel
Copy link

@vercel vercel bot commented on 7751962 Jul 17, 2020

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.