mirror of
https://github.com/caprover/caprover
synced 2026-08-26 01:16:30 +00:00
Moved GA to all pages on docs
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user