From 42b45cea7da645601a34e5505692514486837324 Mon Sep 17 00:00:00 2001 From: liamcardenas Date: Wed, 7 Mar 2018 21:44:03 -0800 Subject: [PATCH] Added production analytics key --- src/renderer/analytics.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/analytics.js b/src/renderer/analytics.js index a52b46651..57d053fc9 100644 --- a/src/renderer/analytics.js +++ b/src/renderer/analytics.js @@ -1,8 +1,13 @@ // @flow import mixpanel from 'mixpanel-browser'; import Lbryio from 'lbryio'; +import isDev from 'electron-is-dev'; -mixpanel.init('691723e855cabb9d27a7a79002216967'); +if (isDev) { + mixpanel.init('691723e855cabb9d27a7a79002216967'); +} else { + mixpanel.init('af5c6b8110068fa4f5c4600c81f05e60'); +} type Analytics = { track: (string, ?Object) => void, -- 2.45.2