Skip to main content
Umbraco → MixpanelIntegration guide

Connecting Umbraco to Mixpanel

Umbraco is a .NET CMS common in mid-market and enterprise European organisations, which means IT governance is usually the binding constraint rather than technology. 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 Umbraco Commerce 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

Umbraco Commerce and Mixpanel: distinct_id through a cached site

Keep Mixpanel identity in the browser SDK, since cached Umbraco pages cannot render a distinct_id, and write the distinct_id to an order property at checkout. Post Purchase from the .NET order-finalized handler to the ingestion API with the order number as $insert_id, line items, totals and currency. Identify members at login and agree event names early.

Mixpanel needs the purchase on the same distinct_id as the browsing that preceded it, and Umbraco's output caching makes that harder than it looks. A server-rendered distinct_id in a cached page would be served to every visitor. Keep identity in the browser SDK, read the distinct_id at checkout, and write it to an order property so the server event can use it.

Send Purchase from the .NET order-finalized notification handler with the order number as $insert_id, line items, totals and currency. There is no official .NET server SDK to rely on (check Mixpanel's current libraries), so posting to the ingestion API with an HttpClient from the handler is the usual pattern. For Umbraco members, identify with the member key at login, not at purchase, so earlier sessions merge correctly.

Agree event names with the product team before the release window closes. A second change to rename purchase_completed to Purchase may wait a quarter, and in the meantime both names land in funnels. Refunds come back as order state changes; send them as their own event rather than editing history.

Umbraco → Mixpanel · what breaks

Why this join usually fails — Umbraco → Mixpanel

  1. 01

    The distinct_id never reaches Umbraco

    Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.

  2. 02

    Change control, not technology

    The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.

  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.

Umbraco → Mixpanel · the fix

What working looks like — Umbraco → 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

Umbraco → Mixpanel · architecture

How Umbraco and Mixpanel actually connect

  1. 1

    Umbraco holds the truth

    You own the database. What you may not own is the release process — Umbraco sites in this segment often sit behind change control that adds weeks to any modification.

  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 Umbraco Commerce order.

  4. 4

    The event source decides reliability

    Fire from the .NET notification handler rather than a view, which may be cached at the edge.

  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.

Umbraco → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Umbraco Commerce order-finalised notification

  • 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

    Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.

  • Sent from the browser

    The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.

  • 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

Umbraco → Mixpanel · diagnose

Diagnostic order — Umbraco → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish the deployment and change-control process first

    It determines the timeline more than any technical question here.

  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.

Umbraco → Mixpanel · prove

How it gets proven — Umbraco → Mixpanel

Source of truth

Umbraco Commerce's order records in your own database, at agreed order states.

  • 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.
  • Order data confirmed populated on an order placed through the CDN as an anonymous visitor.

Umbraco → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Establish the deployment and change-control process first
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Umbraco Commerce's order records in your own database, at agreed order states.

Get my free conversion tracking audit

Free30 minutesNo obligation

Umbraco → Mixpanel · when not to buy

When you don't need this — Umbraco → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If the site is maintained by an internal IT team on a quarterly release cycle, plan the engagement around that rather than around the code.
  • 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.

Umbraco → Mixpanel · what we deliver

What gets built — Umbraco → Mixpanel

  • Identifier capture into Umbraco

    Capture the identifier and persist it to the order through a server-side notification handler in the application.

  • Event source: the Umbraco Commerce order-finalised notification

    Fire from the .NET notification handler rather than a view, which may be cached at the edge.

  • Dispatch to Mixpanel

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

  • Reversals where they exist

    Order state changes to refunded or cancelled are recorded.

Written guarantee

95%+ tracking accuracy

Measured against Umbraco Commerce's order records in your own database, at agreed order states.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Umbraco → Mixpanel questions, answered

Post from the .NET order-finalized handler to Mixpanel's ingestion API, using the distinct_id saved as an order property at checkout and the order number as $insert_id.

Free · 30 min

Get Umbraco and Mixpanel joined properly

Free30 minutesNo obligation