Skip to main content
Optimizely → AmplitudeIntegration guide

Connecting Optimizely to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Optimizely variant assignment before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Optimizely variant assignments in Amplitude, on the right user

For Optimizely in Amplitude, put the assignment on the user as an exposure event plus user property before the purchase, and decide whether Optimizely or Amplitude Experiment owns assignment. Server-side purchases must carry the same Amplitude device ID or user ID as the exposure, with UTMs and click IDs. Compare per-variant revenue against your order system.

Amplitude can only break campaign revenue down by variant if the assignment is on the user before the purchase, which means an exposure event plus a user property. Check whether Optimizely's Amplitude integration covers your product and what exactly it sends, and confirm it works with the Amplitude SDK version you run. If you also use Amplitude Experiment, decide which tool owns assignment for a given test; two assignment systems on one page is how teams end up with conflicting answers.

Identity is the specific risk. Optimizely Web buckets visitors by its own visitor cookie, while Amplitude merges by device ID and user ID. If the purchase is sent server-side, it must carry the same Amplitude device ID or user ID as the exposure event, or the variant sits on one Amplitude user and the revenue on another. Put UTM source and click IDs on the same purchase event so revenue can be cut by campaign and variant together.

Then run the check that matters: per variant, compare Amplitude revenue, with price and quantity actually populated, against your order system. A variant that loads the Amplitude SDK later will show lower conversion purely from missing events. If the gap differs by variant, you are looking at measurement, not a test result.

Optimizely → Amplitude · what breaks

Why this join usually fails — Optimizely → Amplitude

  1. 01

    The user ID and device ID pair 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

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Optimizely → Amplitude · the fix

What working looks like — Optimizely → Amplitude

  • The user ID and device ID pair on every assignment

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Optimizely → Amplitude · architecture

How Optimizely and Amplitude 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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Optimizely → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair present on the assignment

  • Sent from your order system with variant attached

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Optimizely → Amplitude · diagnose

Diagnostic order — Optimizely → Amplitude

  1. 01

    Count assignments carrying the user ID and device ID pair

  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

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Optimizely → Amplitude · prove

How it gets proven — Optimizely → Amplitude

Source of truth

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

  • The user ID and device ID pair confirmed present on a live assignment.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Orders reconciled per variant against imported conversions over the full experiment window.

Optimizely → Amplitude · free audit

What we check in the free audit

  • Count assignments carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Check for running experiments before diagnosing a performance change
  • Check a purchase event for the price and quantity fields specifically
  • 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 → Amplitude · when not to buy

When you don't need this — Optimizely → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the user ID and device ID pair.
  • If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Optimizely → Amplitude · what we deliver

What gets built — Optimizely → Amplitude

  • 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 Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and 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 → Amplitude questions, answered

Use Optimizely's Amplitude integration if it supports your setup, or send an exposure event with experiment and variation IDs and set them as user properties yourself. The purchase must land on the same Amplitude user.

Free · 30 min

Get Optimizely and Amplitude joined properly

Free30 minutesNo obligation