Skip to main content
Loop → AmplitudeIntegration guide

Connecting Loop Returns to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Loop return before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Loop return outcomes as Amplitude revenue adjustments

Send Loop outcomes server-side to Amplitude as revenue events on the purchase's user ID, usually the Shopify customer ID: negative item price for a refund, negative shipping cost or nothing for an exchange, and a tagged store-credit event valued by your rule. Include outcome, original order ID and product IDs, with insert_id from the Loop return ID plus outcome.

Amplitude suits Loop data because its revenue events can carry a negative price for refunds, so cohort revenue nets out; confirm the current behavior in Amplitude's revenue documentation. The three outcomes then map differently: a refund sends the negative item price, an exchange sends only the negative shipping cost (or nothing, if shipping sits outside revenue), and store credit gets its own tagged event valued by a rule you set, because credit is money you still hold.

Identity is the hard part. The return happens weeks later in Loop's portal, with no Amplitude SDK session. The server-side event must use the same user ID Amplitude had at purchase, typically your Shopify customer ID, or the negative revenue lands on a new user and cohorts show refunds with no purchase. Guest checkouts have no customer ID; use an email-derived ID only if the purchase used exactly the same rule.

Send outcome as a property with the original order ID and product IDs, and set insert_id from the Loop return ID plus outcome so a webhook retry cannot double the reversal. Cohorts by acquisition channel then show which campaigns bring customers who exchange rather than refund.

Loop → Amplitude · what breaks

Why this join usually fails — Loop → Amplitude

  1. 01

    The user ID and device ID pair 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

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Loop → Amplitude · the fix

What working looks like — Loop → Amplitude

  • The user ID and device ID pair on every return

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

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

Loop → Amplitude · architecture

How Loop and Amplitude 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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Loop → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

    Amplitude's count and Loop Returns's records agree within a few percent over a closed window.

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

    The dashboard shows a number and no one has compared it to Loop Returns.

Loop → Amplitude · diagnose

Diagnostic order — Loop → Amplitude

  1. 01

    Count returns carrying the user ID and device ID pair

  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 a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Loop → Amplitude · prove

How it gets proven — Loop → Amplitude

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 user ID and device ID pair confirmed present on a live return.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Net revenue reconciled after the return window with the three outcomes adjusted separately.

Loop → Amplitude · free audit

What we check in the free audit

  • Count returns carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Split returns by outcome — refund, exchange, store credit
  • Check a purchase event for the price and quantity fields specifically
  • 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 → Amplitude · when not to buy

When you don't need this — Loop → Amplitude

  • If Amplitude 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 user ID and device ID pair.
  • If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Loop → Amplitude · what we deliver

What gets built — Loop → Amplitude

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

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

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

Send a server-side revenue event with a negative price under the original buyer's user ID, with outcome and order ID as properties. Confirm negative revenue handling in Amplitude's docs.

Free · 30 min

Get Loop and Amplitude joined properly

Free30 minutesNo obligation