Mixpanel

Mixpanel

Product analytics platform used by product and growth teams to understand user behavior in web and mobile applications. Mixpanel tracks custom events, user funnels, and retention cohorts using a client-side SDK. Sets a persistent cookie to identify users across sessions.

Overview

Mixpanel is a product analytics platform used by product, growth, and data teams to understand user behavior within web and mobile applications. Unlike page-view-centric analytics tools, Mixpanel is built around event-based tracking: every user action (button click, feature use, form submission, purchase, etc.) is captured as a discrete event with attached properties. This powers funnel analysis, retention cohort tracking, A/B experiment measurement, and user-level behavioral timelines.

What This Script Does

The Mixpanel JavaScript SDK (mixpanel.min.js) is loaded from cdn.mxpnl.com or bundled directly into the site's JavaScript. It initializes an in-memory queue and begins capturing events immediately on load.

Cookies Set by Mixpanel:

  • mp_[token]_mixpanel — the primary Mixpanel super-property cookie; first-party, persistent, typically expires after 365 days; stores the Mixpanel distinct ID (a UUID assigned to the browser), super properties (persistent key-value attributes set by the site, such as plan type or user segment), and the last event timestamp. This is the cookie that creates a persistent cross-session user identity
  • mp_[token]_mixpanel_session — session-scoped companion cookie used to detect new sessions for session-start events
  • mp_optout — opt-out marker cookie if the site implements Mixpanel's opt-out API; persists indefinitely

Data Collected Per Event:

  • Custom event name and properties defined by the site (can include any key-value pairs)
  • Automatic properties: browser name and version, OS, screen dimensions, referrer URL, current URL, UTM campaign parameters, and device type
  • IP address (used for geographic enrichment — city, region, country — then typically discarded or hashed depending on configuration)
  • Mixpanel distinct ID (the persistent UUID from the mp_* cookie)
  • If mixpanel.identify(userId) is called: the anonymous ID is aliased to a known user ID, merging the anonymous event history with the authenticated user profile

Network Requests:

  • Events are batched and sent via POST to api.mixpanel.com/track or api.mixpanel.com/engage (for people profile updates)
  • Profile update calls ($set, $increment, $append) to api.mixpanel.com/engage can attach PII such as email addresses and names directly to user profiles if the site passes them

Mixpanel Inc. is a US company participating in the EU-US Data Privacy Framework, providing an adequacy mechanism for EU-to-US data transfers. Mixpanel offers a DPA and supports EU data residency (EU data stored in EU servers) as a paid option.

Consent & Compliance

Mixpanel falls under the analytics consent category. It processes personal data — persistent UUIDs, full behavioral event streams, IP-derived location data, and potentially PII (email, name, user ID) if passed by the site. Under GDPR Article 6(1)(a) and Article 5(3) of the ePrivacy Directive, Mixpanel requires explicit opt-in consent because it sets a 365-day persistent tracking cookie for non-essential product analytics. Data protection authorities in the EU have consistently ruled that analytics tools using persistent identifiers cannot rely on legitimate interest as a lawful basis. Under CCPA/CPRA, the persistent behavioral profiling constitutes collection of personal information requiring disclosure; if event data is shared with third parties for advertising or profiling, it may trigger opt-out obligations.

Should You Block This Without Consent?

Yes. Mixpanel sets a persistent 365-day tracking cookie and builds detailed behavioral profiles of individual users across sessions. Block until the user explicitly consents to analytics.

Is Mixpanel GDPR compliant?

Mixpanel typically loads analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Mixpanel can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Mixpanel, not on Mixpanel itself.

Visit website

Consent Categories

Also Known As

Mixpanel SDKMixpanel analyticsproduct analytics toolevent tracking platformmixpanel.com cookies

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (4)

Mixpanel's trackers are occasionally seen, seen on under 1% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.

mxpnl.comAnalytics

mxpnl.com is an analytics domain operated by Mixpanel, used to measure visits, sessions, and on-site behavior. Seen on under 1% of scanned sites.

mixpanel.comAnalytics

mixpanel.com is an analytics domain operated by Mixpanel, used to measure visits, sessions, and on-site behavior.

cdn.mxpnl.comAnalytics

cdn.mxpnl.com is an analytics domain operated by Mixpanel, used to measure visits, sessions, and on-site behavior.

api-js.mixpanel.comAnalytics

api-js.mixpanel.com is an analytics domain operated by Mixpanel, used to measure visits, sessions, and on-site behavior.

Cookies Mixpanel Sets (1)

mp_

Mixpanel SDK identifier suffixed with the project token (e.g. mp_<token>_mixpanel). Stores the distinct ID and super-properties.

Frequently Asked Questions

Related Vendors

Impact
Impact
Affiliate and performance marketing tracking platform used by brands to manage publisher partnerships. The Impact script fires conversion events (purchases, signups, installs) on advertiser sites to attribute commissions to referring publishers in Impact's partner network.
Okendo
Okendo
Okendo is a customer review and loyalty platform for ecommerce brands, known for rich review attributes and deep Shopify integration. Scripts embed review widgets, Q&A sections, and loyalty points displays on product and collection pages. Review data feeds into Google Shopping rich results and post-purchase email automation.
BlueConic
BlueConic
Customer data platform (CDP) used by publishers and retailers to unify first-party customer profiles. The BlueConic script captures page-level behavioral signals and merges them into persistent customer profiles. Can trigger personalization rules that alter page content or load additional experiences based on profile attributes.
RELX Group
RELX Group
RELX Group is an information analytics company (LexisNexis, Elsevier). Digital scripts may appear on academic, legal, and scientific publisher sites within the RELX portfolio for analytics and subscription access management.
Pingdom
Pingdom
Site reliability and performance monitoring platform. The Pingdom Real User Monitoring (RUM) script measures actual page load times, resource timing, and error rates experienced by real visitors and reports metrics to the Pingdom dashboard.
Roxr Software
Roxr Software
Privacy-first web analytics that collects real-time traffic data without cookies. Clicky tracks page views, actions, and goals using a server-side approach complemented by a lightweight JavaScript tag. Provides heatmaps and individual visitor history lookup for site owners.

Manage consent for Mixpanel

ConsentStack automatically detects and manages Mixpanel trackers so your site stays compliant with global privacy regulations.