Skip to main content
Optimizely → MetaIntegration guide

Connecting Optimizely to Meta Conversions API

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. Meta's pixel loses a large share of conversions to Safari, ad blockers and iOS, and the Conversions API exists because of it. The join between them succeeds or fails on one thing: whether the fbc and fbp values reaches the Optimizely variant assignment before the conversion happens, because Meta can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Optimizely to Meta CAPI: carry the variant in custom_data

Send the Optimizely variation ID in custom_data on every Meta Conversions API Purchase for your own reconciliation. In Meta's in-app browsers, slow variants or redirects that drop fbclid lose click IDs, so compare fbc coverage and Event Match Quality per variant, and check that each variant keeps the pixel eventID so deduplication works.

Meta's Conversions API accepts custom properties in custom_data, so send the Optimizely variation ID on every server Purchase. Ads Manager will not break results down by that property, but you can check whether custom conversions with parameter rules let you split Purchase by variant in your account. Either way, the property sits on the event and your own reconciliation can use it.

Meta traffic opens in the Facebook and Instagram in-app browsers, where Optimizely's snippet and the pixel compete in a slower webview. If the experiment script delays page rendering, the pixel sets _fbc later, and visitors who bounce first leave no click ID behind. A redirect variant that drops fbclid takes the click ID away from one arm entirely. Compare Event Match Quality and fbc coverage per variant; differences there are measurement, not performance.

A variant that rebuilds the checkout or thank-you page can quietly drop the pixel's eventID parameter. Meta then receives a browser Purchase and a server Purchase with different IDs in that arm only, double counts it, and the variant appears to win on Meta. Before calling a test, check in Events Manager that deduplication works for orders from each variation.

Optimizely → Meta · what breaks

Why this join usually fails — Optimizely → Meta

  1. 01

    The fbc and fbp values 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

    Double counting from broken deduplication

    Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.

  4. 04

    Nothing reconciles afterwards

    Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.

Optimizely → Meta · the fix

What working looks like — Optimizely → Meta

  • The fbc and fbp values on every assignment

  • Conversions arriving in Meta

    Events appear in Events Manager with an Event Match Quality score, deduplicated against the pixel, and become usable for optimization and attribution.

  • Reconciled against the source

Optimizely → Meta · architecture

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

    Meta Conversions API needs a click to match

    Meta matches server events to people using whatever identifiers you send, hashed with SHA-256 where required. There is no single mandatory key, which is why quality varies so much between implementations — a poorly matched event is accepted, reported, and worth much less than it appears.

  3. 3

    The identifier is the bridge

    The fbc and fbp values, 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

    Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.

Optimizely → Meta · normal or broken

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

Normal, not a fault

  • The fbc and fbp values present on the assignment

  • Sent from your order system with variant attached

  • Deduplicated correctly

    Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.

  • Reconciles with the source

Actually broken

  • The fbc and fbp values 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

    Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.

  • Nobody has reconciled it

Optimizely → Meta · diagnose

Diagnostic order — Optimizely → Meta

  1. 01

    Count assignments carrying the fbc and fbp values

  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

    Read Event Match Quality and the deduplication indicator

    In Events Manager, open the event and check both. A low match quality means weak identifiers; a missing deduplication indicator means your event_id pairing is broken.

  5. 05

    Read the match rate, not the success message

    Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.

Optimizely → Meta · prove

How it gets proven — Optimizely → Meta

Source of truth

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

  • The fbc and fbp values confirmed present on a live assignment.
  • Deduplication confirmed in Events Manager on a real purchase, with the browser and server events visibly paired rather than counted twice.
  • Orders reconciled per variant against imported conversions over the full experiment window.

Optimizely → Meta · free audit

What we check in the free audit

  • Count assignments carrying the fbc and fbp values
  • Follow one real conversion end to end
  • Check for running experiments before diagnosing a performance change
  • Read Event Match Quality and the deduplication indicator
  • 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 → Meta · when not to buy

When you don't need this — Optimizely → Meta

  • Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the fbc and fbp values.
  • If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
  • If you are not running Meta ads at meaningful spend, the Conversions API is effort without payoff. It earns its cost when the optimization signal is worth improving.

Optimizely → Meta · what we deliver

What gets built — Optimizely → Meta

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

    Server-side events to the Conversions API with the event_id matched to the pixel, action_source set correctly, and customer data hashed before it leaves your infrastructure.

  • 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 → Meta questions, answered

Not as a standard breakdown. Send the variation ID in custom_data and check whether custom conversions with parameter rules can split it in your account.

Free · 30 min

Get Optimizely and Meta joined properly

Free30 minutesNo obligation