Skip to main content
AfterSell → BranchIntegration guide

Connecting AfterSell to Branch

AfterSell works through checkout extensions and post-purchase pages, which puts its offers inside Shopify's sandboxed surfaces where your own scripts cannot reach. 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 AfterSell upsell order 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

AfterSell to Branch: the thank-you page as an app install moment

Branch shouldn't receive AfterSell revenue as an app conversion, since the order was paid on the web. If AfterSell's thank-you widgets allow a custom link, a Branch deferred deep link carrying the order ID can drive installs, attributed to the post-purchase placement. Send later in-app purchases through Branch's server-to-server API with an SDK-shared event identifier.

Branch exists to carry context from web to app, and AfterSell's post-purchase and thank-you pages are where a Shopify store has a buyer's full attention right after payment. If you have an app, a Branch link offered there, inviting the customer to track this order in the app, is a reasonable way to drive installs from customers you already have, with the order ID carried in the deferred deep link so the app opens on that order.

Check whether AfterSell's thank-you page widgets let you place a custom link, and whether Shopify's sandbox allows it to open outside the checkout; neither should be assumed. If they do, attribute the install to the post-purchase placement, not to the ad that drove the original order, or paid channels will claim app installs they did not cause.

What Branch should not receive is the AfterSell revenue as an app conversion. The order was paid on the web before any install happened. Send later in-app purchases through Branch's server-to-server events API with an event identifier shared with the SDK, and leave the original web order, upsell included, to your web measurement.

AfterSell → Branch · what breaks

Why this join usually fails — AfterSell → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload never reaches AfterSell

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  2. 02

    Trying to instrument a sandbox

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  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.

AfterSell → Branch · the fix

What working looks like — AfterSell → Branch

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

  • 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

AfterSell → Branch · architecture

How AfterSell and Branch actually connect

  1. 1

    AfterSell holds the truth

    Checkout UI extensions run sandboxed. Nothing you write can observe them, so the only reliable view of what the customer accepted is the order itself.

  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 AfterSell upsell order.

  4. 4

    The event source decides reliability

    Send the final order total from the webhook, with upsell line items identified.

  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.

AfterSell → Branch · normal or broken

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

Normal, not a fault

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

  • Sent from the Shopify order webhook

  • 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

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  • Sent from the browser

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  • 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

AfterSell → Branch · diagnose

Diagnostic order — AfterSell → Branch

  1. 01

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

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm the conversion is sourced from the order, not from a page

    On modern Shopify checkout there is no supported page-based option left, so this is the only correct architecture.

  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.

AfterSell → Branch · prove

How it gets proven — AfterSell → Branch

Source of truth

The final Shopify order total, read from the order record.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live order.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • Final order totals reconciled from the webhook against imported conversions.

AfterSell → Branch · free audit

What we check in the free audit

  • Count orders carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Confirm the conversion is sourced from the order, not from a page
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

The final Shopify order total, read from the order record.

Get my free conversion tracking audit

Free30 minutesNo obligation

AfterSell → Branch · when not to buy

When you don't need this — AfterSell → Branch

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If your conversions already come from the order webhook, checkout extensions change nothing for you.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

AfterSell → Branch · what we deliver

What gets built — AfterSell → Branch

  • Identifier capture into AfterSell

    Do not try to instrument the checkout surface. Read the order server-side, which is the supported and more reliable path anyway.

  • Event source: the Shopify order webhook

    Send the final order total from the webhook, with upsell line items identified.

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

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total, read from the order record.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AfterSell → Branch questions, answered

Yes, if a Branch link can be placed there and opened; installs from it are then attributed to that link. Confirm what AfterSell and Shopify's thank-you page let you add.

Free · 30 min

Get AfterSell and Branch joined properly

Free30 minutesNo obligation