Documentation
Mixpanel Analytics
Last updated May 10, 2026
Mixpanel helps you track product usage, funnels, and retention. The mixpanelAnalytics() helper always loads the Mixpanel library, initializes it after the bundle is ready, and uses Mixpanel's own opt_in_tracking() and opt_out_tracking() methods to keep tracking aligned with measurement consent.
Integrate with c15t
How c15t loads it
- Category:
measurement(Analytics) - Loads when: immediately (
alwaysLoad: true) - Consent behavior: c15t keeps the SDK loaded and toggles tracking by calling Mixpanel's opt-in and opt-out APIs when consent changes.
Configure the integration
You can pass serializable init options through to mixpanel.init(...).
Tracking events in your app
Because Mixpanel is configured with alwaysLoad: true, window.mixpanel is available as soon as the script loads, even before measurement consent is granted. You can still call window.mixpanel.track(...) from app code; consent suppression is handled by Mixpanel's opt-in/opt-out methods that c15t triggers on consent updates.
Types
MixpanelAnalyticsOptions
Loading…
Script
Loading…