From d69acdcb93fc95a4b5cbd38f94400f890eab9aa6 Mon Sep 17 00:00:00 2001 From: Chi Kei Chan Date: Sun, 28 Oct 2018 04:12:59 -0700 Subject: [PATCH] Turn off GA in dev --- src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 1fc4551397..521a67fd5f 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,11 @@ import store from './store'; import './index.scss'; -ReactGA.initialize('UA-128182339-1'); +if (process.env.NODE_ENV === 'development') { + // ReactGA.initialize('UA-128182339-02'); +} else { + ReactGA.initialize('UA-128182339-1'); +} ReactGA.pageview(window.location.pathname + window.location.search); window.addEventListener('load', function() {