Skip to main content
Olo → MixpanelIntegration guide

Connecting Olo to Mixpanel

Olo sits between a multi-location brand and every channel it sells through, which makes it the only place where a direct order and a marketplace order can be compared on the same terms. 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 Olo 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

Olo to Mixpanel: keeping one distinct_id across the ordering subdomain

First confirm whether Olo ordering runs on your subdomain, where the Mixpanel distinct_id carries across, or an Olo domain, where it doesn't. Send orders server-side from the Olo webhook with the order ID as $insert_id, the loyalty or account ID as distinct_id, and store ID, handoff mode and channel as properties. Exclude Rails orders.

The identity question for Olo and Mixpanel is whether the ordering experience lives on your domain or on Olo's. If ordering runs on a subdomain of your own site and your Mixpanel script loads there, the distinct_id can carry across subdomains through the cookie. If it runs on an Olo-hosted domain, the visitor arrives as a stranger, and the browsing that led to the order sits on a separate anonymous profile. Confirm which setup you have before designing anything else.

Send orders server-side from the Olo order webhook with the order ID as $insert_id, using the loyalty or customer account ID as the identified distinct_id where the customer signed in. Guest orders without any identity are better reported as aggregates than as one-order users. Add store ID, handoff mode and channel as event properties, so a funnel can be filtered to direct pickup orders at one location.

Leave Rails orders out of Mixpanel's user events. They have no device behind them, and sending them makes direct-channel conversion rates look lower than they are because the denominator of visitors does not include marketplace customers who never touched your site.

Olo → Mixpanel · what breaks

Why this join usually fails — Olo → Mixpanel

  1. 01

    The distinct_id never reaches Olo

    Olo's ordering experience is frequently hosted on an Olo subdomain, and marketplace orders arrive through an API with no browser session behind them whatsoever.

  2. 02

    Marketplace orders inflating the direct channel

    Rails is designed to make marketplace demand look like your own order flow, which is excellent for operations and ruinous for measurement. Left unsplit, a good week on DoorDash reads as a good week for your ad account.

  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.

Olo → Mixpanel · the fix

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

Olo → Mixpanel · architecture

How Olo and Mixpanel actually connect

  1. 1

    Olo holds the truth

    Rails pulls DoorDash, Uber Eats and Grubhub orders into the same order stream as your own website. They land in one feed and they are not the same thing: one carries a click you paid for, the other carries a marketplace commission and no identifier at all.

  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 Olo order.

  4. 4

    The event source decides reliability

    Send per-location. A brand with two hundred restaurants running one national campaign learns nothing from a single national conversion number.

  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.

Olo → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Olo order webhook

  • 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

    Olo's ordering experience is frequently hosted on an Olo subdomain, and marketplace orders arrive through an API with no browser session behind them whatsoever.

  • Sent from the browser

    Rails is designed to make marketplace demand look like your own order flow, which is excellent for operations and ruinous for measurement. Left unsplit, a good week on DoorDash reads as a good week for your ad account.

  • 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

Olo → Mixpanel · diagnose

Diagnostic order — Olo → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Separate direct from Rails at the source

    Do this before any tracking work. The split is the measurement; everything after it is plumbing.

  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.

Olo → Mixpanel · prove

How it gets proven — Olo → Mixpanel

Source of truth

Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.

  • 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.
  • Direct-channel orders per location reconciled against imported conversions, with Rails volume reported as a named exclusion.

Olo → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Separate direct from Rails at the source
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.

Get my free conversion tracking audit

Free30 minutesNo obligation

Olo → Mixpanel · when not to buy

When you don't need this — Olo → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If your Olo volume is overwhelmingly Rails, the campaign question is about marketplace placement and commission, and no amount of conversion tracking will answer it.
  • 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.

Olo → Mixpanel · what we deliver

What gets built — Olo → Mixpanel

  • Identifier capture into Olo

    Persist the identifier on the direct-ordering path only, and mark Rails-sourced orders explicitly as unattributable rather than letting them dilute the figure.

  • Event source: the Olo order webhook

    Send per-location. A brand with two hundred restaurants running one national campaign learns nothing from a single national conversion number.

  • Dispatch to Mixpanel

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

  • Reversals where they exist

    Cancelled and refunded orders should reduce the figure, per location.

Written guarantee

95%+ tracking accuracy

Measured against Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Olo → Mixpanel questions, answered

Only if the ordering site is on your own domain with your Mixpanel script loaded. On an Olo-hosted domain, identity has to be passed explicitly or the session splits.

Free · 30 min

Get Olo and Mixpanel joined properly

Free30 minutesNo obligation