Skip to main content
Swell → AppsFlyerIntegration guide

Connecting Swell to AppsFlyer

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

Swell app orders in AppsFlyer, renewals kept apart

AppsFlyer matters only for a native app on Swell's API. Read the appsflyer_id when the app creates the cart and write it into Swell order metadata, then post purchases server-only from the paid-order webhook with order ID, value and currency. Send renewals under a separate event name for cohort value, and keep web storefront orders out.

AppsFlyer only matters if a mobile app sits on your Swell store, typically a native app calling Swell's API for catalog, cart and checkout. The join is the appsflyer_id: read it from the SDK when the app creates the cart and write it into the Swell order's metadata, because the order completes in Swell and the server-to-server event you post later has no other way to find the install.

Then pick one sender. If the app fires a purchase from the SDK on the confirmation screen and your server also posts from the Swell webhook, AppsFlyer counts two and forwards both to every connected network. A clean pattern is server-only: the Swell paid-order webhook posts the purchase with the order ID, value and currency, and the app sends nothing for that order.

Subscriptions read differently in an app than on a web ad platform. Cohort lifetime value is one of AppsFlyer's main reports, so renewals do belong here, but under a different event name from the first purchase, so networks optimizing on purchases are not fed a monthly repeat as a new buyer. Orders placed on your Swell web storefront have no appsflyer_id and should go to your ad platforms directly, not here.

Swell → AppsFlyer · what breaks

Why this join usually fails — Swell → AppsFlyer

  1. 01

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

    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.

Swell → AppsFlyer · the fix

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

Swell → AppsFlyer · architecture

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

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

    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.

Swell → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the order

  • Sent from the Swell order and subscription webhooks

  • 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

    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

    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

Swell → AppsFlyer · diagnose

Diagnostic order — Swell → AppsFlyer

  1. 01

    Count orders carrying the AppsFlyer device identifier, appsflyer_id

  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

    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.

Swell → AppsFlyer · prove

How it gets proven — Swell → AppsFlyer

Source of truth

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

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

Swell → 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
  • Compare monthly conversion count against new customer count
  • Check what share of your revenue happens in the app at all
  • 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 → AppsFlyer · when not to buy

When you don't need this — Swell → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • A store selling only one-off products does not have the renewal problem.
  • 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.

Swell → AppsFlyer · what we deliver

What gets built — Swell → AppsFlyer

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

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

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

Store the appsflyer_id in the Swell order's metadata when the app builds the cart, then post the purchase server-to-server from the Swell webhook with that ID.

Free · 30 min

Get Swell and AppsFlyer joined properly

Free30 minutesNo obligation