Connecting Loop Returns to Segment
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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Loop return before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Loop outcomes as Segment Order Refunded and exchange events
Send Loop refunds to Segment server-side as Order Refunded with order_id, products and total, and define custom Order Exchanged and Store Credit Issued events so exchanges never subtract revenue. Use the userId from the original Order Completed and a messageId from the Loop return ID plus outcome. Check each destination's mapping, and send all three outcomes to the warehouse.
Segment's ecommerce spec has an Order Refunded event, which fits Loop's refund outcome directly: order_id, the returned products and a total. It has no standard event for an exchange or for store credit, so define custom events in your tracking plan, such as Order Exchanged and Store Credit Issued, and decide what each destination should do with them. Without that, teams send exchanges as Order Refunded and every connected tool subtracts revenue that was never lost.
Send these server-side with the buyer's userId from the original Order Completed, and build the messageId from the Loop return ID plus the outcome. A Loop return can change outcome before it resolves, and you want one event per final outcome, not one per webhook. Check whether Loop has a native Segment source; if it does, look at what it emits and whether exchanges are kept distinct from refunds.
Then manage the fan-out deliberately. Some destinations map Order Refunded automatically and most ad destinations ignore it or need a mapping, so check each one. The warehouse destination should get all three outcomes unchanged; that is where net revenue gets calculated.
Loop → Segment · what breaks
Why this join usually fails — Loop → Segment
- 01
The userId and anonymousId never reaches Loop
Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.
- 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.
- 03
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Loop → Segment · the fix
What working looks like — Loop → Segment
The userId and anonymousId on every return
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
Loop Returns's own records are the reference, not either dashboard.
Loop → Segment · architecture
How Loop and Segment actually connect
- 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
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, captured at the visit and carried into the Loop return.
- 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
Deduplication at the destination
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Loop → Segment · normal or broken
Working vs. broken, side by side — Loop → Segment
Normal, not a fault
The userId and anonymousId 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
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Segment's count and Loop Returns's records agree within a few percent over a closed window.
Actually broken
The userId and anonymousId 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
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Loop Returns.
Loop → Segment · diagnose
Diagnostic order — Loop → Segment
- 01
Count returns carrying the userId and anonymousId
- 02
Follow one real conversion end to end
- 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.
- 04
Check identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Loop → Segment · prove
How it gets proven — Loop → Segment
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 userId and anonymousId confirmed present on a live return.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Net revenue reconciled after the return window with the three outcomes adjusted separately.
Loop → Segment · free audit
What we check in the free audit
- Count returns carrying the userId and anonymousId
- Follow one real conversion end to end
- Split returns by outcome — refund, exchange, store credit
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
Store orders net of returns, with exchanges and refunds distinguished.
Free30 minutesNo obligation
Loop → Segment · when not to buy
When you don't need this — Loop → Segment
- If Segment 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 userId and anonymousId.
- If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
Loop → Segment · what we deliver
What gets built — Loop → Segment
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 Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
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.
From $400 · See packages
FAQ
Loop → Segment questions, answered
Not Order Refunded. Define a custom exchange event in your tracking plan, because the sale stands and only the shipping cost changes.
Check Loop's integrations directory. If one exists, confirm it separates exchanges from refunds before relying on it.
Almost always because the userId and anonymousId never reached the Loop return. Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase. Measure coverage before debugging the dispatch.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
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.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on Loop → Segment
- Loop → Google AdsConnecting Loop Returns to Google Ads
- Loop → MetaConnecting Loop Returns to Meta Conversions API
- Loop → GA4Connecting Loop Returns to GA4
RELATED GUIDES
Where Loop → Segment fits in the rest of your tracking
- Narvar → SegmentConnecting Narvar to Segment
- AfterShip Returns → SegmentConnecting AfterShip Returns to Segment
- Redo → SegmentConnecting Redo to Segment
- Loop → BigQueryConnecting Loop Returns to BigQuery
- Footwear ecommerceConversion tracking for footwear ecommerce, measured net of returns
- Redo → SnowflakeConnecting Redo to Snowflake
- AfterShip Returns → BigQueryConnecting AfterShip Returns to BigQuery
- Narvar → SnowflakeConnecting Narvar to Snowflake
Free · 30 min
Get Loop and Segment joined properly
Free30 minutesNo obligation
