Skip to main content
Swell → BranchIntegration guide

Connecting Swell to Branch

Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell 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

Swell and Branch: carry a product link from web into the app

Branch earns its place when a Swell brand runs a web store and native app on one catalog: map Swell product IDs to app screens so links open the item. Set Branch identity to the Swell account ID and post purchases from the paid-order webhook with order ID, value and currency, avoiding duplicate SDK logging. Report renewals separately.

Branch earns its place when a Swell brand runs both a web storefront and a native app on the same Swell catalog. The useful link is a Branch link to a specific product or subscription plan that opens the app on that item, or the App Store and then the item after install. That needs a mapping between Swell product IDs or slugs and the app's screens, which is the work people skip; a deep link that opens the home screen loses most of its value.

The conversion itself still happens in Swell. When the app creates the cart, set the user identity in the Branch SDK to the Swell account ID, and when Swell's paid-order webhook fires, post the purchase from your server with that identity, the order ID as the event identifier, value and currency. If the app also logs the purchase through the SDK, drop one of the two or share the identifier, or Branch forwards a duplicate to every partner.

A cart built on the web does not travel into the app through Branch on its own. If you want web shoppers to finish in the app, put the Swell cart ID in the link data and have the app reload it from Swell. Renewals billed by Swell's server never pass through the app, so report them from the backend under a renewal event, not as purchases.

Swell → Branch · what breaks

Why this join usually fails — Swell → Branch

  1. 01

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

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  2. 02

    Renewals indistinguishable from new orders

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  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.

Swell → Branch · the fix

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

Swell → Branch · architecture

How Swell and Branch actually connect

  1. 1

    Swell holds the truth

    A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.

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

  4. 4

    The event source decides reliability

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  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.

Swell → Branch · normal or broken

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

Normal, not a fault

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

  • Sent from the Swell order and subscription webhooks

  • 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

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  • Sent from the browser

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  • 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

Swell → Branch · diagnose

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

    Compare monthly conversion count against new customer count

    If conversions exceed new customers, renewals are being counted as acquisition.

  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.

Swell → Branch · prove

How it gets proven — Swell → Branch

Source of truth

Swell orders and subscriptions by date, held apart from each other.

  • 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.
  • First payments reconciled against imported conversions, with renewals reported separately.

Swell → 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
  • Compare monthly conversion count against new customer count
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

Swell orders and subscriptions by date, held apart from each other.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swell → Branch · when not to buy

When you don't need this — Swell → 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.
  • A store selling only one-off products does not have the renewal problem.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Swell → Branch · what we deliver

What gets built — Swell → Branch

  • Identifier capture into Swell

    Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.

  • Event source: the Swell order and subscription webhooks

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  • 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 and cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swell → Branch questions, answered

Yes, if the app sets the Branch identity to the Swell account ID and your server posts the purchase from the Swell webhook with that identity.

Free · 30 min

Get Swell and Branch joined properly

Free30 minutesNo obligation