Skip to main content
Optimizely → MixpanelIntegration guide

Connecting Optimizely to Mixpanel

Optimizely deliberately shows different people different experiences, which means every conversion figure your ad platform reports is an average across variants it knows nothing about. 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 Optimizely variant assignment 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

Optimizely variants in Mixpanel experiment and funnel reports

Mixpanel's experiment reports read an exposure event, conventionally $experiment_started with experiment and variant properties; confirm what Optimizely's integration sends. The exposure must arrive before the purchase on the same distinct_id, so test identity merge across signup. Register utm_source and click IDs as super properties to break funnels down by campaign and variant.

Mixpanel's experiment reporting reads an exposure event, conventionally $experiment_started with experiment and variant names as properties; check the current required names in Mixpanel's docs. Optimizely has offered a Mixpanel integration for Web Experimentation, so confirm what your version sends and whether it uses the same convention. Whichever route you choose, the variant must arrive before the purchase and on the same distinct_id.

The failure specific to this pair is identity. Optimizely buckets an anonymous visitor, the visitor signs up, and if Mixpanel's identity merge is not set up correctly the exposure stays on the anonymous profile while the purchase lands on the identified user. Mixpanel then shows the purchase with no variant at all. Walk one test user through the whole flow, across signup, before trusting any per-variant funnel.

Register utm_source and click IDs as super properties so funnels can be broken down by campaign and variant together. That breakdown is the reason to do this: a test that wins overall and loses on paid traffic is common when paid visitors arrive on slower mobile connections and see more flicker.

Optimizely → Mixpanel · what breaks

Why this join usually fails — Optimizely → Mixpanel

  1. 01

    The distinct_id never reaches Optimizely

    Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants.

  2. 02

    An experiment silently confounding every campaign result

    A test that moves conversion rate by fifteen percent will move every campaign's measured performance by some fraction of that, and the media team will attribute it to bidding, creative or seasonality. Anything but the test.

  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.

Optimizely → Mixpanel · the fix

What working looks like — Optimizely → Mixpanel

  • The distinct_id on every assignment

  • Conversions arriving in Mixpanel

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

  • Reconciled against the source

Optimizely → Mixpanel · architecture

How Optimizely and Mixpanel actually connect

  1. 1

    Optimizely holds the truth

    The variant is the missing dimension. Without it, a campaign's performance is confounded by an experiment nobody told the media team about, and both teams will draw confident, wrong conclusions.

  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 Optimizely variant assignment.

  4. 4

    The event source decides reliability

    Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.

  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.

Optimizely → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the assignment

  • Sent from your order system with variant attached

  • 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

    Client-side experiments can flicker and can delay rendering, which loses landing-page identifier capture on slow connections — a bias that falls unevenly across variants.

  • Sent from the browser

    A test that moves conversion rate by fifteen percent will move every campaign's measured performance by some fraction of that, and the media team will attribute it to bidding, creative or seasonality. Anything but the test.

  • 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

Optimizely → Mixpanel · diagnose

Diagnostic order — Optimizely → Mixpanel

  1. 01

    Count assignments carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check for running experiments before diagnosing a performance change

    First question, not last. It costs one minute and explains a surprising share of unexplained movements.

  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.

Optimizely → Mixpanel · prove

How it gets proven — Optimizely → Mixpanel

Source of truth

Your order system, joined to the variant each customer was assigned.

  • The distinct_id confirmed present on a live assignment.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Orders reconciled per variant against imported conversions over the full experiment window.

Optimizely → Mixpanel · free audit

What we check in the free audit

  • Count assignments carrying the distinct_id
  • Follow one real conversion end to end
  • Check for running experiments before diagnosing a performance change
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Your order system, joined to the variant each customer was assigned.

Get my free conversion tracking audit

Free30 minutesNo obligation

Optimizely → Mixpanel · when not to buy

When you don't need this — Optimizely → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the distinct_id.
  • If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
  • 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.

Optimizely → Mixpanel · what we deliver

What gets built — Optimizely → Mixpanel

  • Identifier capture into Optimizely

    Capture the identifier before the experiment framework initializes, and pass the variant assignment as a dimension alongside it.

  • Event source: your order system with variant attached

    Send purchases with the variant as a custom dimension, so campaign performance can be read per variant rather than blended.

  • Dispatch to Mixpanel

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

  • Reversals where they exist

    Refunds reverse and should retain the variant dimension.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, joined to the variant each customer was assigned.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Optimizely → Mixpanel questions, answered

Use Optimizely's Mixpanel integration if it supports your setup, or track an $experiment_started event with experiment and variant names yourself. Check Mixpanel's docs for the property names its experiment report expects.

Free · 30 min

Get Optimizely and Mixpanel joined properly

Free30 minutesNo obligation