Skip to main content

Mixpanel

Cordova Plugin that wraps Mixpanel SDK for Android and iOS

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

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install cordova-plugin-mixpanel
$ npm install @ionic-native/mixpanel
$ ionic cap sync

Supported Platforms#

  • Android
  • Browser
  • iOS

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { Mixpanel } from '@ionic-native/mixpanel/ngx';
constructor(private mixpanel: Mixpanel, private mixpanelPeople: MixpanelPeople) { }
...
this.mixpanel.init(token)
.then(onSuccess)
.catch(onError);