Skip to main content
Loop → SnowflakeIntegration guide

Connecting Loop Returns to Snowflake

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. Snowflake's distinguishing feature is that two organisations can join data without either copying it to the other, which turns measurement between partners from a legal negotiation into a query. The join between them succeeds or fails on one thing: whether whatever join key both parties agree on, usually a hashed identifier reaches the Loop return before the conversion happens, because Snowflake can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Loop Returns in Snowflake: net revenue by outcome

Load Loop returns into Snowflake with return ID, original order number, outcome, items, credit amount and status timestamps, joined to Shopify orders on order number, not email. Keep raw webhook events but build a scheduled current-state table using the latest status per return ID. Exclude Loop exchange orders from revenue, then share net-sales views with partners in a clean room.

Snowflake is the natural home for this pair, because the real question, net revenue by campaign after refunds, exchanges and store credit, needs orders, returns and ad data in one place. Load Loop returns with return ID, original order number, outcome, items, credit amount and status timestamps, and join to Shopify orders on order number, not on customer email.

Model returns as changing records. A Loop return moves through statuses and can switch outcome or be cancelled, so loading every webhook as a new row double counts. Keep the raw events, then build a current-state table that takes the latest status per return ID, and schedule the deduplication step rather than running it by hand.

Exclude the exchange orders Loop creates in Shopify from the order table used for revenue, or they count as new purchases. Once the model is right, this is also what you share with partners: a net-sales view that a media partner or retailer can query in a clean room without receiving raw customer data. Check whether Loop offers a direct data export on your plan; otherwise use its API or webhooks.

Loop → Snowflake · what breaks

Why this join usually fails — Loop → Snowflake

  1. 01

    Whatever join key both parties agree on, usually a hashed identifier 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

    A clean room that answers a question nobody agreed on

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  4. 04

    Nothing reconciles afterwards

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

Loop → Snowflake · the fix

What working looks like — Loop → Snowflake

  • Whatever join key both parties agree on, usually a hashed identifier on every return

  • Conversions arriving in Snowflake

    The row lands in a table you own, joinable to your own data and — through a share or clean room — to a partner's, without either party moving raw records.

  • Reconciled against the source

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

Loop → Snowflake · architecture

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

    Snowflake needs a click to match

    A schema both sides agree on, consistent types, and identifiers normalised identically before hashing. The failure mode is not rejection but silent divergence — a timestamp in the wrong zone or a trimmed-versus-untrimmed email produces answers that look plausible.

  3. 3

    The identifier is the bridge

    Whatever join key both parties agree on, usually a hashed identifier, 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

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

Loop → Snowflake · normal or broken

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

Normal, not a fault

  • Whatever join key both parties agree on, usually a hashed identifier 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. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

  • Reconciles with the source

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

Actually broken

  • Whatever join key both parties agree on, usually a hashed identifier 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

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  • Nobody has reconciled it

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

Loop → Snowflake · diagnose

Diagnostic order — Loop → Snowflake

  1. 01

    Count returns carrying whatever join key both parties agree on, usually a hashed identifier

  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

    Write down both parties' conversion definitions before writing any query

    Definition mismatch, not technology, is what makes most partner measurement projects produce numbers neither side trusts.

  5. 05

    Read the match rate, not the success message

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

Loop → Snowflake · prove

How it gets proven — Loop → Snowflake

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 both parties agree on, usually a hashed identifier confirmed present on a live return.
  • Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
  • Net revenue reconciled after the return window with the three outcomes adjusted separately.

Loop → Snowflake · free audit

What we check in the free audit

  • Count returns carrying whatever join key both parties agree on, usually a hashed identifier
  • Follow one real conversion end to end
  • Split returns by outcome — refund, exchange, store credit
  • Write down both parties' conversion definitions before writing any query
  • 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 → Snowflake · when not to buy

When you don't need this — Loop → Snowflake

  • If Snowflake 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 both parties agree on, usually a hashed identifier.
  • If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
  • If you have no partner to share data with and one cloud, a warehouse you already run does the same job. The sharing capability is what justifies this one.

Loop → Snowflake · what we deliver

What gets built — Loop → Snowflake

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

    Batch or streaming loads from your order system, with the raw event retained alongside anything 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Loop → Snowflake questions, answered

Keep raw webhook events, then build a current-state table with the latest status per return ID, joined to Shopify orders on order number. Exclude Loop-created exchange orders from revenue.

Free · 30 min

Get Loop and Snowflake joined properly

Free30 minutesNo obligation