Skip to main content
Saleor → AppsFlyerIntegration guide

Connecting Saleor to AppsFlyer

Saleor is headless and GraphQL-first, which means the storefront and the commerce engine are separate applications and the identifier has to survive a boundary that traditional platforms do not have. 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 Saleor 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

Saleor to AppsFlyer: send app orders only, with the device ID

Saleor's order webhook fires for web and app orders, but web orders have no device. Have the app write its appsflyer_id and a source flag into checkout metadata, then send only orders carrying a device ID to AppsFlyer's server-to-server API as af_purchase with revenue and order currency. Make the webhook the single sender, and send cancellations and refunds.

Headless Saleor often serves a website and a mobile app from one GraphQL API, which is exactly why this pair goes wrong: the order webhook fires for both, and a web order sent to AppsFlyer has no device behind it. Mark app orders at checkout. Have the app write its appsflyer_id, and a source flag, into checkout metadata before completing the checkout, then filter the webhook so only orders carrying a device ID go to AppsFlyer's server-to-server API.

Send the purchase as af_purchase with the revenue and the order's currency. Saleor channels each have their own currency, so read it from the order rather than assuming one. Decide whether revenue is the gross total or the total without shipping and tax, and use that definition everywhere AppsFlyer forwards to, because networks downstream will optimize on it.

The duplicate risk is specific to apps built on Saleor's API: many apps log the purchase through the AppsFlyer SDK when the checkout mutation returns successfully, which happens before payment is fully captured in some payment flows. If you also send from the webhook, you have two events per order. Pick the webhook as the single sender, since it only fires on a settled payment, and send cancellations and refunds from Saleor's corresponding webhooks.

Saleor → AppsFlyer · what breaks

Why this join usually fails — Saleor → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Saleor

    The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  2. 02

    A storefront that knows the click and an API that holds the money

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  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.

Saleor → AppsFlyer · the fix

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

Saleor → AppsFlyer · architecture

How Saleor and AppsFlyer actually connect

  1. 1

    Saleor holds the truth

    In a headless setup the storefront is one of several possible clients. Attributing from it means measuring one channel of a system designed to have many.

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

  4. 4

    The event source decides reliability

    Send fully paid orders at their net total, sourced from the API.

  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.

Saleor → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the order

  • Sent from the Saleor 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 storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  • Sent from the browser

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  • 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

Saleor → AppsFlyer · diagnose

Diagnostic order — Saleor → AppsFlyer

  1. 01

    Count orders carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Inspect order metadata on a live order for the identifier

    Either it is on the order or the attribution is guesswork. There is no middle state.

  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.

Saleor → AppsFlyer · prove

How it gets proven — Saleor → AppsFlyer

Source of truth

Saleor orders by payment status, read from the API rather than inferred from the storefront.

  • 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.
  • Paid orders reconciled from the API against imported conversions.

Saleor → 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
  • Inspect order metadata on a live order for the identifier
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Saleor orders by payment status, read from the API rather than inferred from the storefront.

Get my free conversion tracking audit

Free30 minutesNo obligation

Saleor → AppsFlyer · when not to buy

When you don't need this — Saleor → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you run a single storefront and no other clients, the added complexity of headless attribution buys you nothing over a standard 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.

Saleor → AppsFlyer · what we deliver

What gets built — Saleor → AppsFlyer

  • Identifier capture into Saleor

    Capture in the storefront and write the identifier into order metadata through the API at checkout, so it lives on the order rather than in a session.

  • Event source: the Saleor order webhook

    Send fully paid orders at their net total, sourced from the API.

  • 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 reverse.

Written guarantee

95%+ tracking accuracy

Measured against Saleor orders by payment status, read from the API rather than inferred from the storefront.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Saleor → AppsFlyer questions, answered

No. They have no device identifier or install behind them. Send web orders to your ad platforms directly and only app orders to AppsFlyer.

Free · 30 min

Get Saleor and AppsFlyer joined properly

Free30 minutesNo obligation