Skip to main content
Optimizely → BrazeIntegration guide

Connecting Optimizely to Braze

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. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Optimizely variant assignment before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Optimizely and Braze: one bucketing ID across web, app and messages

Use the same user ID as Optimizely's bucketing key and Braze's external ID, so users stay in one variation across devices and messages. Write the variation key to the Braze user as a custom attribute when the decision is made, include it on server purchase events, and decide whether Optimizely or Braze Canvas owns each experiment.

Braze and Optimizely meet where an experiment needs to continue into messaging, for example a new onboarding flow in the app whose follow-up push sequence differs by variant. That only works if both systems agree on who the person is. Use the same user ID as the Optimizely bucketing key and the Braze external ID, so a user who switches from phone to tablet stays in one variation and receives the matching messages.

Write the variation key to the Braze user as a custom attribute when the decision is made, and include it on purchase events sent from your server. Then segment Braze campaign performance by variant. Check whether an Optimizely-to-Braze integration exists for your plan; if it does not, a decision listener in the app or a server call does the same job.

Braze has its own testing in Canvas and campaigns, and the overlap is where results get muddied. A Canvas split running under an Optimizely product test produces combinations neither tool reports together. Decide who owns each experiment, and keep experiment attributes out of long-lived segments, or users from a finished test keep receiving variant-specific push notifications months after the product shipped one version.

Optimizely → Braze · what breaks

Why this join usually fails — Optimizely → Braze

  1. 01

    The Braze external user 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

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Optimizely → Braze · the fix

What working looks like — Optimizely → Braze

  • The Braze external user ID on every assignment

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Optimizely → Braze · architecture

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

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user 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

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Optimizely → Braze · normal or broken

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

Normal, not a fault

  • The Braze external user ID present on the assignment

  • Sent from your order system with variant attached

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user 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

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Optimizely → Braze · diagnose

Diagnostic order — Optimizely → Braze

  1. 01

    Count assignments carrying the Braze external user 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

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Optimizely → Braze · prove

How it gets proven — Optimizely → Braze

Source of truth

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

  • The Braze external user ID confirmed present on a live assignment.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • Orders reconciled per variant against imported conversions over the full experiment window.

Optimizely → Braze · free audit

What we check in the free audit

  • Count assignments carrying the Braze external user ID
  • Follow one real conversion end to end
  • Check for running experiments before diagnosing a performance change
  • Send a test purchase and read the user profile's event stream
  • 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 → Braze · when not to buy

When you don't need this — Optimizely → Braze

  • Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the Braze external user ID.
  • If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
  • If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Optimizely → Braze · what we deliver

What gets built — Optimizely → Braze

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

    The Braze user track endpoint, posted server-side from your order or billing system with the external user 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 → Braze questions, answered

Store the variation key as a Braze custom attribute at decision time, using the same user ID for Optimizely bucketing and Braze external ID.

Free · 30 min

Get Optimizely and Braze joined properly

Free30 minutesNo obligation