Skip to main content
Optimizely → BranchIntegration guide

Connecting Optimizely to Branch

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. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Optimizely variant assignment before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Optimizely and Branch: testing the web-to-app prompt itself

When Optimizely tests the web-to-app prompt, add the variation key to the Branch link data so it travels in the deferred deep link payload to first open, then record it on the app user and the app events sent to Branch. Judge the test on combined web and app revenue per mobile web visitor, not installs.

The Optimizely test that meets Branch is usually a test of the web-to-app handoff: a smart banner versus an interstitial, a download prompt on product pages versus only at checkout, or an app-only discount. Those variants change how many mobile web visitors install, and Branch is where the installs are attributed, so the variant has to cross the install with them.

Add the variation key to the Branch link data on the web side, so it travels in the deferred deep link payload and is available on first open. Then record it on the app user and on the app events you send to Branch. Without that, Branch reports more installs from the web channel and you cannot tell whether those users bought, or whether they would have bought on mobile web if not prompted.

The trade-off is what the experiment should measure: total revenue per mobile web visitor across web and app, not app installs. A prompt that pushes people to install can lower total conversion if the install interrupts a purchase. Read the experiment on combined web and app revenue per visitor per variant, using Branch for the app half and your order system for the web half.

Optimizely → Branch · what breaks

Why this join usually fails — Optimizely → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload 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

    The install that erases the campaign

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  4. 04

    Nothing reconciles afterwards

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Optimizely → Branch · the fix

What working looks like — Optimizely → Branch

  • The Branch link click identifier and the deferred deep link payload on every assignment

  • Conversions arriving in Branch

    The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.

  • Reconciled against the source

Optimizely → Branch · architecture

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

    Branch needs a click to match

    Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.

  3. 3

    The identifier is the bridge

    The Branch link click identifier and the deferred deep link payload, 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

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

Optimizely → Branch · normal or broken

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

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the assignment

  • Sent from your order system with variant attached

  • Deduplicated correctly

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

  • Reconciles with the source

Actually broken

  • The Branch link click identifier and the deferred deep link payload 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

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  • Nobody has reconciled it

Optimizely → Branch · diagnose

Diagnostic order — Optimizely → Branch

  1. 01

    Count assignments carrying the Branch link click identifier and the deferred deep link payload

  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

    Measure your organic install share and ask whether it is plausible

    An implausibly large organic share is usually broken attribution rather than genuine word of mouth.

  5. 05

    Read the match rate, not the success message

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Optimizely → Branch · prove

How it gets proven — Optimizely → Branch

Source of truth

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

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live assignment.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • Orders reconciled per variant against imported conversions over the full experiment window.

Optimizely → Branch · free audit

What we check in the free audit

  • Count assignments carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Check for running experiments before diagnosing a performance change
  • Measure your organic install share and ask whether it is plausible
  • 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 → Branch · when not to buy

When you don't need this — Optimizely → Branch

  • Measure identifier coverage yourself first — pull your last hundred assignments and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If you are not running experiments on pages in the paid funnel, there is no confound and nothing to integrate.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Optimizely → Branch · what we deliver

What gets built — Optimizely → Branch

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

    The Branch server-to-server events API, posted from your backend with the user identity and event data.

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

Include the variation key in the Branch link data so it arrives in the deferred deep link payload on first open, then store it on the app user.

Free · 30 min

Get Optimizely and Branch joined properly

Free30 minutesNo obligation