GA 更新

This commit is contained in:
ciaochaos 2020-07-02 14:14:24 +08:00
parent 9ad3081cef
commit 17ce0571e3
1 changed files with 2 additions and 15 deletions

View File

@ -13,21 +13,8 @@ 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');
[ ReactGA.addTrackers('G-3NKS6ZG27V',{ alwaysSendToDefaultTracker: false });
{
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)), []);