Skip to main content
SamCart → BranchIntegration guide

Connecting SamCart to Branch

SamCart is a checkout platform built for conversion optimisation, which means order bumps and upsells are the point — and they complicate the value on every order. 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 SamCart 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

SamCart and Branch: deep link buyers from checkout into your app

Branch's job here is the post-purchase handoff to your app. Put a Branch link on the SamCart thank-you page and receipt email, built with a customer or order reference that maps to the entitlement your backend created from the order webhook. Do not grant access from the deferred deep link alone, and post web revenue only once.

Branch's useful job in a SamCart business is the handoff after purchase, not ad attribution. A buyer pays on SamCart's web checkout, and the course, community or coaching content lives in your app. A Branch link on the SamCart thank-you page and in the receipt email can carry the buyer's context through the App Store install, so the app opens on their program instead of a blank login screen, and Branch records that the install came from a web purchase.

Build the link data from the SamCart order: a customer or order reference, never payment details, which the app uses to look up the entitlement your backend created from the order webhook. Do not rely on the deferred deep link alone to grant access. On iOS the payload can arrive incomplete, and a buyer who installed the app but sees nothing they paid for becomes a refund request.

If you also want web purchase revenue in Branch, post it from your backend through the server-to-server events API with the buyer's identity, and only once: the app must not log the same purchase when it opens. Upsells accepted on SamCart's one-click pages should go as additional revenue events with their own identifiers, not as new acquisitions. Check whether your Branch plan includes web-to-app attribution before expecting web ad clicks to appear in Branch reports.

SamCart → Branch · what breaks

Why this join usually fails — SamCart → Branch

  1. 01

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

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  2. 02

    Upsells counted as separate acquisitions

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  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.

SamCart → Branch · the fix

What working looks like — SamCart → 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

SamCart → Branch · architecture

How SamCart and Branch actually connect

  1. 1

    SamCart holds the truth

    The headline product price is rarely what the customer paid. Order bumps and one-click upsells are the platform's core feature, so the order total and the product price routinely differ substantially.

  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 SamCart order.

  4. 4

    The event source decides reliability

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  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.

SamCart → Branch · normal or broken

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

Normal, not a fault

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

  • Sent from the SamCart 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

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  • Sent from the browser

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  • 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

SamCart → Branch · diagnose

Diagnostic order — SamCart → 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

    Follow one purchase with upsells through to the conversions sent

    If three orders produced three acquisition conversions, you have found the inflation.

  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.

SamCart → Branch · prove

How it gets proven — SamCart → Branch

Source of truth

SamCart's order records for the same window, including bumps and upsells.

  • 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.
  • A purchase with two upsells confirmed to produce one acquisition conversion at the combined value.

SamCart → 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
  • Follow one purchase with upsells through to the conversions sent
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

SamCart's order records for the same window, including bumps and upsells.

Get my free conversion tracking audit

Free30 minutesNo obligation

SamCart → Branch · when not to buy

When you don't need this — SamCart → 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 you run a single product with no bumps or upsells, the standard checkout approach applies and none of this complexity is relevant.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

SamCart → Branch · what we deliver

What gets built — SamCart → Branch

  • Identifier capture into SamCart

    Pass the identifier into the SamCart checkout URL and confirm it lands on the order, then decide how upsell orders relate to the parent purchase before sending anything.

  • Event source: the SamCart order webhook

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  • 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 are recorded and, on aggressive upsell funnels, refund rates are high enough that ignoring them materially overstates performance.

Written guarantee

95%+ tracking accuracy

Measured against SamCart's order records for the same window, including bumps and upsells.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SamCart → Branch questions, answered

Put a Branch link on the SamCart thank-you page and receipt email carrying an order reference, and have the app look up access from your backend. Do not grant access from the deep link payload alone.

Free · 30 min

Get SamCart and Branch joined properly

Free30 minutesNo obligation