diff --git a/public/index.html b/public/index.html index 97acdab3..c9d1a2dd 100755 --- a/public/index.html +++ b/public/index.html @@ -1,12 +1,18 @@ - diff --git a/src/v2/mixpanel.js b/src/v2/mixpanel.js index 10140d9c..8e762201 100644 --- a/src/v2/mixpanel.js +++ b/src/v2/mixpanel.js @@ -1,7 +1,9 @@ import mixpanel from 'mixpanel-browser'; -mixpanel.init('a733ed40b877d30ff2a1a58b4e326cf0'); const isProduction = process.env.NODE_ENV === 'production'; +if (isProduction) { + mixpanel.init('a733ed40b877d30ff2a1a58b4e326cf0'); +} export default { identify: id => {