Skip to main content
Afterpay → AppsFlyerIntegration guide

Connecting Afterpay to AppsFlyer

Afterpay is pay-in-four buy-now-pay-later, which means the shopper is approved elsewhere and the merchant is paid up front by the provider. 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 Afterpay order 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

Afterpay to AppsFlyer: app orders only, full value, returns included

Send only in-app Afterpay orders with a stored appsflyer_id; mobile web orders belong with web ad platforms. Post af_purchase from your server when the order is created, with af_revenue at the full order amount, not the first installment, and your order ID as identifier so SDK and server can't both count. Decide how returns are reported.

Afterpay shoppers buy heavily on phones, which tempts teams to send every mobile Afterpay order to AppsFlyer. Only orders placed inside your app, with the appsflyer_id stored on the order, belong there. A mobile-web Afterpay order has no install behind it; AppsFlyer will drop it or attach it to nothing, while the web ad platforms that should have received it get nothing.

For in-app orders, the Afterpay approval step leaves your native checkout. Send af_purchase from your server when the order is created, with af_revenue set to the full order amount, not the first installment. Afterpay pays you up front, and a revenue value of one quarter of the basket understates every ROAS figure AppsFlyer forwards to networks. Use your order ID as the event's identifier so the SDK and server cannot both count it.

Returns are where Afterpay differs most from card in this pair. Afterpay orders come back often enough in many stores that the original revenue, already forwarded to every connected network, overstates what app campaigns earned. Decide how refunds are reported, checking whether your AppsFlyer setup accepts a negative-revenue event, and apply it consistently from the first return.

Afterpay → AppsFlyer · what breaks

Why this join usually fails — Afterpay → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Afterpay

    The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.

  2. 02

    The approval redirect that ends the session

    Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.

  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.

Afterpay → AppsFlyer · the fix

What working looks like — Afterpay → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every order

  • 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

Afterpay → AppsFlyer · architecture

How Afterpay and AppsFlyer actually connect

  1. 1

    Afterpay holds the truth

    Afterpay pays the merchant in full and collects instalments from the shopper itself, so your revenue arrives at once even though the customer pays over time. The store's order record is the money event, not the instalment schedule.

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

  4. 4

    The event source decides reliability

    Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.

  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.

Afterpay → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the order

  • Sent from your store's order 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

    The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.

  • Sent from the browser

    Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.

  • 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

Afterpay → AppsFlyer · diagnose

Diagnostic order — Afterpay → AppsFlyer

  1. 01

    Count orders carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count Afterpay checkouts started against confirmation-page loads

    The gap is the share of BNPL revenue a browser-side setup cannot see, and it is usually larger than merchants expect.

  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.

Afterpay → AppsFlyer · prove

How it gets proven — Afterpay → AppsFlyer

Source of truth

Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live order.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • An Afterpay order abandoned at the return step, confirmed to still report.

Afterpay → AppsFlyer · free audit

What we check in the free audit

  • Count orders carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Count Afterpay checkouts started against confirmation-page loads
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.

Get my free conversion tracking audit

Free30 minutesNo obligation

Afterpay → AppsFlyer · when not to buy

When you don't need this — Afterpay → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If BNPL is a very small share of your orders, measure that share before commissioning anything.
  • 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.

Afterpay → AppsFlyer · what we deliver

What gets built — Afterpay → AppsFlyer

  • Identifier capture into Afterpay

    Capture the identifier before checkout and store it on the order in your own system, so the conversion does not depend on the shopper completing the return journey.

  • Event source: your store's order webhook

    Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.

  • 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

    Returns on BNPL orders run higher than card in many stores, so the reversal matters more here than elsewhere.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Afterpay → AppsFlyer questions, answered

The full order amount. Afterpay pays the merchant up front, so the shopper's installment schedule has no bearing on your revenue.

Free · 30 min

Get Afterpay and AppsFlyer joined properly

Free30 minutesNo obligation