Skip to content

Commit

Permalink
fix: turn on mixpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirPal committed Jan 18, 2018
1 parent 0fae182 commit 94c4ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/stat.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import mixpanel from 'mixpanel-browser';

export const trackMixpanel = (event, data) => {
if (process.env.DISABLE_MIXPANEL !== '1' && !process.env.MIXPANEL_API_TOKEN) {
if (process.env.DISABLE_MIXPANEL !== '1' && process.env.MIXPANEL_API_TOKEN) {
mixpanel.track(event, data);
}
};

export const incrementMixpanel = (event, data) => {
if (process.env.DISABLE_MIXPANEL !== '1' && !process.env.MIXPANEL_API_TOKEN) {
if (process.env.DISABLE_MIXPANEL !== '1' && process.env.MIXPANEL_API_TOKEN) {
mixpanel.people.increment(event, data);
}
};

0 comments on commit 94c4ada

Please sign in to comment.