Skip to main content
Loop → AppsFlyerIntegration guide

Connecting Loop Returns to AppsFlyer

Loop is built to turn returns into exchanges rather than refunds, which means the outcome of a return is a decision with three different revenue consequences. 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 Loop return 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

Loop Returns and AppsFlyer: netting app revenue after returns

Only for app-placed orders: store the appsflyer_id against the Shopify order at checkout, then post a refund server-to-server against that device when Loop closes the return. Check that your configuration and partner networks handle negative revenue before enabling it. Exchanges adjust shipping only or are skipped, and returns of web or desktop orders must never be sent.

This pair only matters if a share of your orders are placed in a mobile app and attributed through AppsFlyer. The purchase event from the app carries the appsflyer_id; the Loop return arrives weeks later through a web portal with no device context at all. The join therefore has to happen on your server: store the device ID against the Shopify order at checkout, then look it up when Loop closes the return.

With that join in place, a refund can be posted as a server-to-server event against the same device. Check whether your AppsFlyer configuration accepts negative revenue on a cancellation or refund event, and confirm how your partner networks treat it before turning it on, because AppsFlyer forwards events downstream and a mis-shaped refund propagates. Exchanges should adjust only the shipping cost, and many teams simply leave them out.

Orders placed on the mobile web or desktop must not be sent to AppsFlyer at all, refunded or not; they have no install to attach to. The common breakage here is the reverse: a webhook that posts every Loop return to AppsFlyer, most of them about web orders, landing on no device and inflating a refund count nobody can reconcile.

Loop → AppsFlyer · what breaks

Why this join usually fails — Loop → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches Loop

    Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.

  2. 02

    Every return treated as a full refund

    It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.

  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.

Loop → AppsFlyer · the fix

What working looks like — Loop → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every return

  • 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

    Loop Returns's own records are the reference, not either dashboard.

Loop → AppsFlyer · architecture

How Loop and AppsFlyer actually connect

  1. 1

    Loop Returns holds the truth

    An exchange keeps the revenue and costs you shipping. A refund reverses it entirely. Store credit sits in between. Treating all three as one reversal loses the distinction Loop exists to create.

  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 Loop return.

  4. 4

    The event source decides reliability

    Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.

  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.

Loop → AppsFlyer · normal or broken

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

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the return

    Visible on the record itself in Loop Returns, not merely captured somewhere on the site.

  • Sent from the store order record, adjusted by Loop outcomes

  • 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 Loop Returns's records agree within a few percent over a closed window.

Actually broken

  • The AppsFlyer device identifier, appsflyer_id missing on most records

    Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.

  • Sent from the browser

    It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.

  • 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 Loop Returns.

Loop → AppsFlyer · diagnose

Diagnostic order — Loop → AppsFlyer

  1. 01

    Count returns carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split returns by outcome — refund, exchange, store credit

    The mix differs by campaign and by product, and it changes the net revenue figure materially.

  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.

Loop → AppsFlyer · prove

How it gets proven — Loop → AppsFlyer

Against Loop Returns's own records, not against either platform's dashboard.

Source of truth

Store orders net of returns, with exchanges and refunds distinguished.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live return.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • Net revenue reconciled after the return window with the three outcomes adjusted separately.

Loop → AppsFlyer · free audit

What we check in the free audit

  • Count returns carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Split returns by outcome — refund, exchange, store credit
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

Store orders net of returns, with exchanges and refunds distinguished.

Get my free conversion tracking audit

Free30 minutesNo obligation

Loop → AppsFlyer · when not to buy

When you don't need this — Loop → AppsFlyer

  • If AppsFlyer already reports conversions that reconcile against Loop Returns'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 returns and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
  • 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.

Loop → AppsFlyer · what we deliver

What gets built — Loop → AppsFlyer

  • Identifier capture into Loop

    Join on the order identifier. There is no identifier to capture here — the work is carrying the order's through and reversing correctly.

  • Event source: the store order record, adjusted by Loop outcomes

    Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.

  • 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

    This is the whole integration. Three outcomes, three different adjustments.

Written guarantee

95%+ tracking accuracy

Measured against Store orders net of returns, with exchanges and refunds distinguished.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Loop → AppsFlyer questions, answered

Only for orders placed in your app, and only if you stored the appsflyer_id on the order. Check whether your setup accepts negative revenue before sending refunds, since AppsFlyer forwards events to ad networks.

Free · 30 min

Get Loop and AppsFlyer joined properly

Free30 minutesNo obligation