Skip to main content
Checkout Extensibility → AppsFlyerIntegration guide

Connecting Shopify Checkout Extensibility to AppsFlyer

Shopify replaced checkout.liquid with a sandboxed extension model, and the thank-you page — where nearly every store put its conversion tracking — was the last thing to go. 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 Shopify 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

AppsFlyer and Shopify checkout: in-app web views after the migration

If your app learned of purchases from thank-you page script, that bridge is gone. Have the app write appsflyer_id and your app user ID into cart attributes before opening checkout, then filter Shopify's paid-order webhook to the app's sales channel and post the purchase through AppsFlyer's server-to-server events API. Keep website orders out of AppsFlyer in-app revenue.

Many app storefronts built on Shopify hand payment to Shopify's checkout inside a web view, and some teams logged the AppsFlyer purchase by injecting code into the thank-you page through additional scripts and passing it back to the app. That bridge is gone; the extensible thank-you page will not run arbitrary script, so the app no longer hears about the purchase and AppsFlyer in-app revenue falls while orders do not.

The fix is to stop needing the page. Write the appsflyer_id and your app user ID into cart attributes from the app before it opens checkout; when the paid-order webhook arrives, filter to orders from the app's sales channel and post the purchase through the server-to-server events API. Revenue then matches the Shopify order, including discounts applied at checkout, which the old thank-you-page script often missed.

On the web side, AppsFlyer's web SDK and smart banners in the theme still work, since storefront pages were not part of the change. Do not move anything into a custom pixel to catch web purchases: website orders do not belong in AppsFlyer in-app revenue, and the migration is a good moment to remove any setup that was sending them there.

Checkout Extensibility → AppsFlyer · what breaks

Why this join usually fails — Checkout Extensibility → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Checkout Extensibility

    Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.

  2. 02

    Conversion tracking that silently stopped

    This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.

  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.

Checkout Extensibility → AppsFlyer · the fix

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

    Shopify Checkout Extensibility's own records are the reference, not either dashboard.

Checkout Extensibility → AppsFlyer · architecture

How Checkout Extensibility and AppsFlyer actually connect

  1. 1

    Shopify Checkout Extensibility holds the truth

    Additional Scripts and script tags on the order status page are gone. Any tracking that lived there has already stopped firing or will, and the store owner usually finds out from a revenue report rather than an error.

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

  4. 4

    The event source decides reliability

    Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.

  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.

Checkout Extensibility → AppsFlyer · normal or broken

Working vs. broken, side by side — Checkout Extensibility → AppsFlyer

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the order

    Visible on the record itself in Shopify Checkout Extensibility, not merely captured somewhere on the site.

  • Sent from the Shopify order webhook, server-side

  • 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

    AppsFlyer's count and Shopify Checkout Extensibility's records agree within a few percent over a closed window.

Actually broken

  • The AppsFlyer device identifier, appsflyer_id missing on most records

    Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.

  • Sent from the browser

    This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.

  • 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

    The dashboard shows a number and no one has compared it to Shopify Checkout Extensibility.

Checkout Extensibility → AppsFlyer · diagnose

Diagnostic order — Checkout Extensibility → AppsFlyer

  1. 01

    Count orders carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare Shopify order count against platform-reported conversions for the last 60 days

    A sharp divergence with no change in actual sales is the signature. Check what was in Additional Scripts before assuming anything else.

  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.

Checkout Extensibility → AppsFlyer · prove

How it gets proven — Checkout Extensibility → AppsFlyer

Against Shopify Checkout Extensibility's own records, not against either platform's dashboard.

Source of truth

Shopify orders by creation date, read from the order record rather than from anything rendered on a page.

  • 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.
  • Orders reconciled from the webhook against imported conversions for a settled week, with no dependence on anything rendered at checkout.

Checkout Extensibility → 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 Shopify order count against platform-reported conversions for the last 60 days
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Shopify orders by creation date, read from the order record rather than from anything rendered on a page.

Get my free conversion tracking audit

Free30 minutesNo obligation

Checkout Extensibility → AppsFlyer · when not to buy

When you don't need this — Checkout Extensibility → AppsFlyer

  • If AppsFlyer already reports conversions that reconcile against Shopify Checkout Extensibility's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you were already sending conversions server-side from the order webhook, this migration does not affect your tracking at all — which is exactly why server-side was worth doing before it was forced.
  • 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.

Checkout Extensibility → AppsFlyer · what we deliver

What gets built — Checkout Extensibility → AppsFlyer

  • Identifier capture into Checkout Extensibility

    Capture the identifier on your own storefront, persist it into cart or order attributes, and send the conversion server-side from the order webhook rather than from any page.

  • Event source: the Shopify order webhook, server-side

    Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.

  • 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 from their own webhooks.

Written guarantee

95%+ tracking accuracy

Measured against Shopify orders by creation date, read from the order record rather than from anything rendered on a page.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Checkout Extensibility → AppsFlyer questions, answered

If the app detected purchases through a script on the thank-you page, that script stopped loading. Send the order server-side from the webhook with the AppsFlyer ID stored on the cart.

Free · 30 min

Get Checkout Extensibility and AppsFlyer joined properly

Free30 minutesNo obligation