Skip to main content
Sitecore → MixpanelIntegration guide

Connecting Sitecore to Mixpanel

Sitecore is enterprise digital experience software with its own personalisation and analytics stack, which frequently competes with rather than complements the measurement you are trying to build. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Sitecore contact and order before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Sitecore and Mixpanel: one project across many Sitecore sites

Use one Mixpanel project for a multi-site Sitecore install, with site and language properties on every event and your own customer ID as distinct_id after login, never the Sitecore contact ID. Send conversions server-side from the commerce or CRM layer with order or lead ID as $insert_id. Name events centrally and pass the personalization variant as a property.

Sitecore instances commonly host several sites, brands or languages from one installation, and the first Mixpanel decision is how to split them. One project per site makes cross-site journeys invisible. One project for all, with site and language properties on every event, is usually right, as long as distinct_id is the same customer across them.

Use your own customer or account ID as distinct_id after login, never the Sitecore contact ID, and identify in the browser at login so the anonymous pages before it merge. Send conversions server-side from the commerce or CRM layer with the order or lead ID as $insert_id. Name events once, centrally: Sitecore goals already have names like Download Brochure or Register, and if the Mixpanel taxonomy copies them per site with small spelling differences, every cross-site funnel splits.

Personalization makes Mixpanel analysis useful and fragile. Pass the variant or personalization rule the visitor saw as an event property so outcomes can be compared by experience. Do not write identity into server-rendered HTML; on cached pages that hands one visitor's distinct_id to the next. And expect no agreement with Sitecore's engagement value scores, which weight goals by rules your team set, not by events.

Sitecore → Mixpanel · what breaks

Why this join usually fails — Sitecore → Mixpanel

  1. 01

    The distinct_id never reaches Sitecore

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  2. 02

    Two analytics systems answering different questions

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  3. 03

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Sitecore → Mixpanel · the fix

What working looks like — Sitecore → Mixpanel

  • The distinct_id on every order

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

Sitecore → Mixpanel · architecture

How Sitecore and Mixpanel actually connect

  1. 1

    Sitecore holds the truth

    Sitecore's experience database tracks contacts and interactions for personalisation. It is not a conversion source for ad platforms and its numbers will not match theirs, by design.

  2. 2

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Sitecore contact and order.

  4. 4

    The event source decides reliability

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  5. 5

    Deduplication at the destination

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Sitecore → Mixpanel · normal or broken

Working vs. broken, side by side — Sitecore → Mixpanel

Normal, not a fault

  • The distinct_id present on the order

  • Sent from your commerce system's order event

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

Actually broken

  • The distinct_id missing on most records

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  • Sent from the browser

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  • Counted twice, or not at all

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

Sitecore → Mixpanel · diagnose

Diagnostic order — Sitecore → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Separate Sitecore's personalisation analytics from conversion measurement

    They are different systems for different purposes. Conflating them is the standard mistake in this stack.

  4. 04

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Sitecore → Mixpanel · prove

How it gets proven — Sitecore → Mixpanel

Source of truth

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Conversions confirmed sourced from the commerce system rather than from Sitecore's experience database.

Sitecore → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Separate Sitecore's personalisation analytics from conversion measurement
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

Get my free conversion tracking audit

Free30 minutesNo obligation

Sitecore → Mixpanel · when not to buy

When you don't need this — Sitecore → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If your Sitecore implementation is content-only with commerce elsewhere, work at the commerce layer entirely.
  • If you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Sitecore → Mixpanel · what we deliver

What gets built — Sitecore → Mixpanel

  • Identifier capture into Sitecore

    Capture the identifier server-side in the application and persist it to the commerce order, keeping it separate from Sitecore's own contact identity model.

  • Event source: your commerce system's order event

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  • Dispatch to Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

  • Reversals where they exist

    Handled at the commerce layer.

Written guarantee

95%+ tracking accuracy

Measured against Your commerce or CRM system — Sitecore's own analytics database answers a different question.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Sitecore → Mixpanel questions, answered

Usually yes, with site and language as properties on every event and the same customer ID as distinct_id, so cross-site journeys stay visible.

Free · 30 min

Get Sitecore and Mixpanel joined properly

Free30 minutesNo obligation