Connecting Loop Returns to BigQuery
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. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Loop return before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Net revenue in BigQuery from Shopify orders and Loop outcomes
Load Loop returns into BigQuery keyed on Shopify order ID and line item, with outcome, refunded amount, exchange shipping and store-credit value as columns, plus status changes. Returns inherit click IDs and UTMs through the order ID, so net revenue by campaign is one query using a documented store-credit rule. Treat weeks as provisional until the return window passes.
BigQuery is where Loop's three outcomes become one net-revenue number per order and per campaign. Load Loop returns into their own table keyed on Shopify order ID and line item, with outcome, refunded amount, exchange shipping cost and store-credit value as separate columns. Check whether Loop's reporting export or API gives you line-level outcomes; order-level totals cannot assign a partial return to the right product.
Then the attribution join: orders already carry the click IDs and UTM values stored at checkout, and returns inherit them through the order ID. Net revenue by campaign is order revenue minus refunds, minus exchange shipping, minus whatever share of store credit you decide is lost. The query is simple; the store-credit rule is a business decision, so write it into the table description.
The trap is time. Returns keep arriving for weeks, so a week of net revenue is provisional until Loop's return window has passed for every order in it. Load status changes, not only final outcomes, because a return opened as a refund and resolved as an exchange changes the number. Net figures can then go back to Google Ads as conversion adjustments using the stored gclid.
Loop → BigQuery · what breaks
Why this join usually fails — Loop → BigQuery
- 01
Whatever join key you decide on 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
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Loop → BigQuery · the fix
What working looks like — Loop → BigQuery
Whatever join key you decide on on every return
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
Loop Returns's own records are the reference, not either dashboard.
Loop → BigQuery · architecture
How Loop and BigQuery 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
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, 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
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Loop → BigQuery · normal or broken
Working vs. broken, side by side — Loop → BigQuery
Normal, not a fault
Whatever join key you decide on 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
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
BigQuery's count and Loop Returns's records agree within a few percent over a closed window.
Actually broken
Whatever join key you decide on 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 not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Loop Returns.
Loop → BigQuery · diagnose
Diagnostic order — Loop → BigQuery
- 01
Count returns carrying whatever join key you decide on
- 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
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Loop → BigQuery · prove
How it gets proven — Loop → BigQuery
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.
- Whatever join key you decide on confirmed present on a live return.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Net revenue reconciled after the return window with the three outcomes adjusted separately.
Loop → BigQuery · free audit
What we check in the free audit
- Count returns carrying whatever join key you decide on
- Follow one real conversion end to end
- Split returns by outcome — refund, exchange, store credit
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Store orders net of returns, with exchanges and refunds distinguished.
Free30 minutesNo obligation
Loop → BigQuery · when not to buy
When you don't need this — Loop → BigQuery
- If BigQuery 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 whatever join key you decide on.
- If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
- If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
Loop → BigQuery · what we deliver
What gets built — Loop → BigQuery
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 BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
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 → BigQuery questions, answered
Join Loop return outcomes to Shopify orders on order ID in BigQuery, apply each outcome's own adjustment, and group by the campaign fields stored on the order.
Only after the return window has closed for every order in that week. Treat earlier figures as provisional.
Almost always because whatever join key you decide on 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.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
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.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on Loop → BigQuery
- 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 → BigQuery fits in the rest of your tracking
- Redo → BigQueryConnecting Redo to BigQuery
- Narvar → BigQueryConnecting Narvar to BigQuery
- AfterShip Returns → BigQueryConnecting AfterShip Returns to BigQuery
- Loop → SegmentConnecting Loop Returns to Segment
- Loop → SnowflakeConnecting Loop Returns to Snowflake
- Footwear ecommerceConversion tracking for footwear ecommerce, measured net of returns
Free · 30 min
Get Loop and BigQuery joined properly
Free30 minutesNo obligation
