Moved GA to all pages on docs

This commit is contained in:
Kasra Bigdeli
2018-06-24 00:51:35 -07:00
parent 798a99f02f
commit 82d31e9b41
2 changed files with 15 additions and 14 deletions
+15
View File
@@ -67,6 +67,21 @@ class Footer extends React.Component {
</section>
<section className="copyright">{this.props.config.copyright}</section>
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=UA-121064489-1`}
/>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-121064489-1');
`
}}/>
</footer>
);
}
-14
View File
@@ -302,20 +302,6 @@ class Index extends React.Component {
return (
<div>
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=UA-121064489-1`}
/>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-121064489-1');
`
}}/>
<HomeSplash language={language}/>
<div className="mainContainer">
<FeatureCallout/>