diff --git a/src/utils.coffee b/src/utils.coffee index cd87eee5..2c7c4649 100644 --- a/src/utils.coffee +++ b/src/utils.coffee @@ -11,7 +11,7 @@ exports.getSupervisorVersion = -> obj = JSON.parse data return obj.version -mixpanel.init(config.mixpanelToken) +mixpanelClient = mixpanel.init(config.mixpanelToken) exports.mixpanelProperties = mixpanelProperties = username: require('/boot/config.json').username @@ -20,4 +20,4 @@ exports.mixpanelTrack = (event, properties={}) -> # Mutation is bad, and it should feel bad properties = _.assign(_.cloneDeep(properties), mixpanelProperties) - mixpanel.track(event, properties) + mixpanelClient.track(event, properties)