From 37fbf6e437006d27608ed0efcbf5bfef12bf78dd Mon Sep 17 00:00:00 2001 From: ciaochaos <1272777550@qq.com> Date: Thu, 2 Jul 2020 14:24:23 +0800 Subject: [PATCH] =?UTF-8?q?GA=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/app/App.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/app/App.js b/src/components/app/App.js index 24a480f..c6229b7 100644 --- a/src/components/app/App.js +++ b/src/components/app/App.js @@ -14,7 +14,22 @@ import ReactGA from 'react-ga'; import {setScrollbarWidthProp} from "../../utils/util" ReactGA.initialize('UA-165845289-1'); -ReactGA.addTrackers('G-3NKS6ZG27V',{ alwaysSendToDefaultTracker: false }); + +ReactGA.addTrackers( + [ + { + trackingId: 'UA-165845289-1', + gaOptions: { + name: 'trackerUA', + } + }, + { + trackingId: 'G-3NKS6ZG27V', + gaOptions: { name: 'trackerG' } + } + ], + { alwaysSendToDefaultTracker: false } +); function App({ dispatch }) { const updateDownloadData = useCallback((downloadData) => dispatch(loadDownloadData(downloadData)), []);