2.7.0 • Published 5 years ago

resin-mixpanel-client v2.7.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

Resin Mixpanel Client

Resin Mixpanel Client facility.

Installing

$ npm install resin-mixpanel-client

Using

var MixpanelClient = require('resin-mixpanel-client')

var client = MixpanelClient(token, options)

if (eventType === 'signup') {
	client.signup(userId)
}

if (eventType === 'login') {
	client.login(userId)
}

client.set(props)
client.setOnce(props)

client.setUser(props)
client.setUserOnce(props)

client.track(eventName, props)

if (eventType is 'logout') {
	client.logout()
}

All methods return Promises.