Skip to main content
GoCardless → AppsFlyerIntegration guide

Connecting GoCardless to AppsFlyer

GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the GoCardless mandate before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

GoCardless to AppsFlyer: carry appsflyer_id through the mandate flow

When your app starts the GoCardless mandate flow, write the appsflyer_id and your user ID into mandate metadata, then post one acquisition event at expected value to AppsFlyer's server-to-server API when the mandate is confirmed. Keep monthly collections out, since AppsFlyer forwards revenue to ad networks. Check the SDK is not also logging a subscribe event on confirmation.

AppsFlyer attributes in-app events to the install that produced them, so the join here is the appsflyer_id from the device to the GoCardless mandate. When the app starts the mandate flow, write the appsflyer_id and your user ID into the mandate metadata. When GoCardless confirms the mandate, post an event to AppsFlyer's server-to-server API with that device ID and the value you assign to an acquisition.

Decide early whether collections go to AppsFlyer at all. AppsFlyer forwards revenue to connected ad networks, and every monthly collection sent as a purchase tells those networks the same user bought again, which inflates return on ad spend across every partner. The cleaner pattern is one acquisition event per mandate at expected value, with collections kept in your own reporting. If you do send collections, confirm how your AppsFlyer setup treats negative revenue before trying to report failed collections or chargebacks.

The breakage is the handoff out of the app. The GoCardless hosted page usually opens in a browser or web view, and if the user completes it on a different device or the redirect does not bring them back, you have a mandate with no device. Also check that the SDK is not already logging a "subscribe" event on the confirmation screen, or the server event doubles it.

GoCardless → AppsFlyer · what breaks

Why this join usually fails — GoCardless → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id 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

    Web conversions sent to a mobile attribution platform

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  4. 04

    Nothing reconciles afterwards

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

GoCardless → AppsFlyer · the fix

What working looks like — GoCardless → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every mandate

  • Conversions arriving in AppsFlyer

    The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.

  • Reconciled against the source

GoCardless → AppsFlyer · architecture

How GoCardless and AppsFlyer 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

    AppsFlyer needs a click to match

    AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.

  3. 3

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_id, 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

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

GoCardless → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the mandate

  • Sent from the GoCardless payment confirmed webhook

  • Deduplicated correctly

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

  • Reconciles with the source

Actually broken

  • The AppsFlyer device identifier, appsflyer_id 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

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  • Nobody has reconciled it

GoCardless → AppsFlyer · diagnose

Diagnostic order — GoCardless → AppsFlyer

  1. 01

    Count mandates carrying the AppsFlyer device identifier, appsflyer_id

  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

    Check what share of your revenue happens in the app at all

    If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.

  5. 05

    Read the match rate, not the success message

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

GoCardless → AppsFlyer · prove

How it gets proven — GoCardless → AppsFlyer

Source of truth

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

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live mandate.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • A collection weeks after setup confirmed traceable to the original mandate and click.

GoCardless → AppsFlyer · free audit

What we check in the free audit

  • Count mandates carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Check whether the identifier is on the mandate or only the first payment
  • Check what share of your revenue happens in the app at all
  • 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 → AppsFlyer · when not to buy

When you don't need this — GoCardless → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you take one-off bank payments with no mandate, this reduces to a much simpler integration.
  • If you have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.

GoCardless → AppsFlyer · what we deliver

What gets built — GoCardless → AppsFlyer

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

    The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.

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

Store the appsflyer_id in the mandate metadata when the in-app signup starts, then post a server-to-server event when the mandate is confirmed. Send one acquisition event per mandate rather than one per collection.

Free · 30 min

Get GoCardless and AppsFlyer joined properly

Free30 minutesNo obligation