GA 更新
This commit is contained in:
parent
e5aae8511c
commit
9c5138d596
|
@ -2,7 +2,16 @@
|
||||||
<html lang="zh">
|
<html lang="zh">
|
||||||
<head>
|
<head>
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- 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 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>
|
<script>
|
||||||
(function(){
|
(function(){
|
||||||
var bp = document.createElement('script');
|
var bp = document.createElement('script');
|
||||||
|
|
|
@ -13,21 +13,7 @@ import {loadDownloadData} from "../../actions";
|
||||||
import ReactGA from 'react-ga';
|
import ReactGA from 'react-ga';
|
||||||
import {setScrollbarWidthProp} from "../../utils/util"
|
import {setScrollbarWidthProp} from "../../utils/util"
|
||||||
|
|
||||||
ReactGA.initialize(
|
ReactGA.initialize(['UA-165845289-1','G-3NKS6ZG27V']);
|
||||||
[
|
|
||||||
{
|
|
||||||
trackingId: 'UA-165845289-1',
|
|
||||||
gaOptions: {
|
|
||||||
name: 'trackerUA',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
trackingId: 'G-3NKS6ZG27V',
|
|
||||||
gaOptions: { name: 'trackerG' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
{ debug: true, alwaysSendToDefaultTracker: false }
|
|
||||||
);
|
|
||||||
function App({ dispatch }) {
|
function App({ dispatch }) {
|
||||||
const updateDownloadData = useCallback((downloadData) => dispatch(loadDownloadData(downloadData)), []);
|
const updateDownloadData = useCallback((downloadData) => dispatch(loadDownloadData(downloadData)), []);
|
||||||
setScrollbarWidthProp()
|
setScrollbarWidthProp()
|
||||||
|
|
Loading…
Reference in New Issue