Star us on GitHub
Star
Welcome to highlight.io
Company
Mission & Values
Compliance & Security
Open Source
Getting Started
Overview
Fullstack Mapping
Backend / Server
Frontend / Client
Fullstack Frameworks
Product Features
Session Replay
Error Monitoring
General Features
Logging
Integrations
Integrations Overview
Amplitude Integration
ClickUp Integration
Discord Integration
Electron Support
Front Integration
Height Integration
Intercom Integration
Linear Integration
Mixpanel Integration
Segment Integration
Slack Integration
Vercel Integration
Tips
Content-Security-Policy
Local Development
Monkey Patches
Performance Impact
Proxying Highlight
Session Search Deep Linking
Troubleshooting
Upgrading Highlight
Highlight.io Changelog
Changelog 12 (02/17)
Menu
Docs / Highlight Docs / Integrations / Mixpanel Integration

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().