Skip to content

Commit

Permalink
Added Google Analytics Code to V4 website
Browse files Browse the repository at this point in the history
  • Loading branch information
nathsimpson committed Jul 26, 2018
1 parent a6c0c28 commit 1654e44
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ module.exports = class HTML extends React.Component {
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-43970386-1"></script>
<script
dangerouslySetInnerHTML={{
__html: `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-43970386-1');`,
}}
/>
{this.props.headComponents}
{css}
</head>
Expand Down

1 comment on commit 1654e44

@nathsimpson
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed #4735

Please sign in to comment.