Merge pull request #1075 from lbryio/analytics-production

Added production analytics key
This commit is contained in:
Liam Cardenas 2018-03-07 21:54:57 -08:00 committed by GitHub
commit c14d463842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,