Skip to main content
GoCardless → BranchIntegration guide

Connecting GoCardless to Branch

GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. 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 GoCardless mandate 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

GoCardless to Branch: bring users back into the app after the mandate

Make the GoCardless hosted flow's return URL a Branch link that reopens the app, and store the Branch identity and your user ID in mandate metadata. When the webhook confirms the mandate, send the subscription event to Branch server-to-server with a stable event ID tied to the mandate ID. Track failed first collections in your own reporting.

Branch's job in a GoCardless setup is the return trip. A user taps a campaign link, installs the app, signs up, and is sent to GoCardless' hosted page to authorize the debit. That page lives in a browser. If the redirect after completion is a plain web URL, the user lands on a website, not back in the app, and the session that Branch attributed is not the one that sees the confirmation.

Make the flow's return URL a Branch link that opens the app on the right screen, and store the Branch identity and your user ID in the mandate metadata when you create the mandate. When the GoCardless webhook confirms the mandate, send the event to Branch server-to-server with that user identity and a stable event ID tied to the mandate ID, so a retried webhook does not register a second subscription and get forwarded twice to downstream ad partners.

Value and timing need a decision. The mandate confirms days before any money moves, so Branch will receive the acquisition well before a collection exists. Send the mandate as the subscription event at the value you plan around, and keep failed first collections visible in your own reporting, since Branch's forwarded data will already have told ad networks the customer converted.

GoCardless → Branch · what breaks

Why this join usually fails — GoCardless → Branch

  1. 01

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

    Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session.

  2. 02

    Days between the signup and the money

    Bank debit is not instant. The mandate is agreed today and the first collection clears later, which puts every naive page-based conversion at the wrong moment and the wrong value.

  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.

GoCardless → Branch · the fix

What working looks like — GoCardless → Branch

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

  • 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

GoCardless → Branch · architecture

How GoCardless and Branch actually connect

  1. 1

    GoCardless holds the truth

    The mandate is the acquisition; each payment is a collection against it. A subscription business on direct debit should value the mandate, not the first collection.

  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 GoCardless mandate.

  4. 4

    The event source decides reliability

    Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.

  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.

GoCardless → Branch · normal or broken

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

Normal, not a fault

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

  • Sent from the GoCardless payment confirmed 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

    Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session.

  • Sent from the browser

    Bank debit is not instant. The mandate is agreed today and the first collection clears later, which puts every naive page-based conversion at the wrong moment and the wrong value.

  • 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

GoCardless → Branch · diagnose

Diagnostic order — GoCardless → Branch

  1. 01

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

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the identifier is on the mandate or only the first payment

    If it is on the payment, no later collection can be attributed — and later collections are most of the revenue.

  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.

GoCardless → Branch · prove

How it gets proven — GoCardless → Branch

Source of truth

GoCardless payments confirmed by charge date, against the mandate that authorised them.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live mandate.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • A collection weeks after setup confirmed traceable to the original mandate and click.

GoCardless → Branch · free audit

What we check in the free audit

  • Count mandates carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Check whether the identifier is on the mandate or only the first payment
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

GoCardless payments confirmed by charge date, against the mandate that authorised them.

Get my free conversion tracking audit

Free30 minutesNo obligation

GoCardless → Branch · when not to buy

When you don't need this — GoCardless → Branch

  • Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If you take one-off bank payments with no mandate, this reduces to a much simpler integration.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

GoCardless → Branch · what we deliver

What gets built — GoCardless → Branch

  • Identifier capture into GoCardless

    Pass the click identifier into the mandate's metadata at setup, so all future collections trace back to the campaign that acquired the customer.

  • Event source: the GoCardless payment confirmed webhook

    Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.

  • 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

    Failed collections, chargebacks and cancelled mandates all exist and all should reduce the reported value.

Written guarantee

95%+ tracking accuracy

Measured against GoCardless payments confirmed by charge date, against the mandate that authorised them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

GoCardless → Branch questions, answered

Use a Branch deep link as the return URL of the hosted mandate flow so completion reopens the app as the same user. A plain web redirect strands them in the browser.

Free · 30 min

Get GoCardless and Branch joined properly

Free30 minutesNo obligation