GA 更新
This commit is contained in:
parent
728eb900c3
commit
e5aae8511c
|
@ -2,16 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-165845289-1"></script>
|
||||
<script data-ad-client="ca-pub-3611009408282658" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-165845289-1');
|
||||
gtag('config', 'G-3NKS6ZG27V');
|
||||
</script>
|
||||
<script>
|
||||
(function(){
|
||||
var bp = document.createElement('script');
|
||||
|
|
|
@ -13,7 +13,21 @@ import {loadDownloadData} from "../../actions";
|
|||
import ReactGA from 'react-ga';
|
||||
import {setScrollbarWidthProp} from "../../utils/util"
|
||||
|
||||
ReactGA.initialize('UA-165845289-1');
|
||||
ReactGA.initialize(
|
||||
[
|
||||
{
|
||||
trackingId: 'UA-165845289-1',
|
||||
gaOptions: {
|
||||
name: 'trackerUA',
|
||||
}
|
||||
},
|
||||
{
|
||||
trackingId: 'G-3NKS6ZG27V',
|
||||
gaOptions: { name: 'trackerG' }
|
||||
}
|
||||
],
|
||||
{ debug: true, alwaysSendToDefaultTracker: false }
|
||||
);
|
||||
function App({ dispatch }) {
|
||||
const updateDownloadData = useCallback((downloadData) => dispatch(loadDownloadData(downloadData)), []);
|
||||
setScrollbarWidthProp()
|
||||
|
|
Loading…
Reference in New Issue