Mixpanel

Improve this doc

$ ionic plugin add cordova-plugin-mixpanel

Repo: https://github.com/samzilverberg/cordova-mixpanel-plugin

Cordova Plugin that wraps Mixpanel SDK for Android and iOS

Usage

import {Mixpanel} from 'ionic-native';

Mixpanel.init(token)
  .then(onSuccess)
  .catch(onError);

Static Members

alias(aliasId, originalId)

Param Type Details
aliasId string
originalId string

Returns: Promise<any>

distinctId()

Returns: Promise<any>

flush()

Returns: Promise<any>

identify(distinctId)

Param Type Details
distinctId string

Returns: Promise<any>

init(token)

Param Type Details
token string

Returns: Promise<any>

registerSuperProperties(superProperties)

Param Type Details
superProperties any

Returns: Promise<any>

reset()

Returns: Promise<any>

track(eventName, eventProperties)

Param Type Details
eventName string
eventProperties any

optional

Returns: Promise<any>

showSurvey()

Returns: Promise<any>

people

Returns: MixpanelPeople

MixpanelPeople

Static Members

identify(distinctId)

Param Type Details
distinctId string

Returns: Promise<any>

increment(peopleProperties)

Param Type Details
peopleProperties string

Returns: Promise<any>

setPushId(pushId)

Param Type Details
pushId

Returns: Promise<any>

set(peopleProperties)

Param Type Details
peopleProperties

Returns: Promise<any>

setOnce(peopleProperties)

Param Type Details
peopleProperties

Returns: Promise<any>

API

Native

General