Resin Mixpanel Client facility.
$ npm install resin-mixpanel-client
$ bower install resin-mixpanel-client
The following command will watch for any changes you make:
$ gulp watch
MixpanelClient = require('resin-mixpanel-client')
...
if eventType is 'signup'
MixpanelClient.signup userId, -> # optional callback
if (eventType is 'login')
MixpanelClient.login userId, -> #
MixpanelClient.set props, -> #
MixpanelClient.setOnce props, -> #
MixpanelClient.setUser props, to, -> #
MixpanelClient.setUserOnce props, to, -> #
MixpanelClient.track eventName, properties, -> #
if (eventType is 'logout')
MixpanelClient.logout -> #