Star us on GitHub
Star
Menu

Mixpanel Integration

We've made it easy to use Mixpanel with Highlight. If you don't already have Mixpanel initialized in your app, you can have Highlight initialize it for you by specifying your Mixpanel Project Token in the config.

H.init('<YOUR_PROJECT_ID>', { integrations: { mixpanel: { projectToken: '<MIXPANEL_PROJECT_TOKEN>', }, }, })
Copy

Whenever you call H.track() or H.identify() it will forward that data to Mixpanel's track and identify calls. If you want to disable this behavior, you can set enabled: false for the integration:

H.init('<YOUR_PROJECT_ID>', { integrations: { mixpanel: { enabled: false, }, }, })
Copy
API
track()

Calling H.track() will forward the data to Mixpanel's track(). Highlight will also add a Mixpanel property called highlightSessionURL which contains the URL to the Highlight session where the track event happened.

identify()

Calling H.identify() will forward the data to Mixpanel's identify().