Skip to main content
Refersion → SnowflakeIntegration guide

Connecting Refersion to Snowflake

Refersion runs affiliate and influencer programmes on Shopify stores, which puts a commission-earning third party directly alongside your paid media on the same orders. 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 Refersion conversion 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

Refersion to Snowflake: run the double-payment query yourself

Load Refersion conversions with status, commission and affiliate ID, Shopify orders, and order-level ad platform conversions into Snowflake, joined on the Shopify order. Query orders with both an approved Refersion conversion and a paid conversion, summing commission. Keep status history, deduplicate on conversion ID plus status timestamp, and normalize numeric order IDs against order names.

Snowflake is where the overlap between affiliate and paid credit can actually be counted. Load Refersion conversions with status, commission and affiliate ID through Refersion's API or scheduled exports, whichever your plan includes; load Shopify orders into another table; and load each ad platform's attributed conversions wherever they can be exported at order level. The Shopify order is the join key across all three.

The query that matters is orders with an approved Refersion conversion and a paid-platform conversion, grouped by month and affiliate type, with commission summed. That number is what you pay twice. Keep Refersion statuses as history rather than overwriting them, since a pending conversion that turns denied changes last month's figure, and a table holding only current state cannot explain why the number moved.

Refersion records can change after export and API pulls retry, so deduplicate on the Refersion conversion ID plus status timestamp in a scheduled step. Shopify has two order identifiers, the internal numeric ID and the order name customers see; confirm which one Refersion stores and normalize before joining, or the overlap query returns zero and looks like good news.

Refersion → Snowflake · what breaks

Why this join usually fails — Refersion → Snowflake

  1. 01

    Whatever join key both parties agree on, usually a hashed identifier never reaches Refersion

    Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.

  2. 02

    Influencer codes claiming paid traffic's orders

    A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.

  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.

Refersion → Snowflake · the fix

What working looks like — Refersion → Snowflake

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

  • 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

Refersion → Snowflake · architecture

How Refersion and Snowflake actually connect

  1. 1

    Refersion holds the truth

    An affiliate order costs you a commission on top of whatever the ad click cost. If both systems claim it, the order is being paid for twice and neither report mentions the other.

  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 Refersion conversion.

  4. 4

    The event source decides reliability

    Send orders net of affiliate commission, with the affiliate-sourced share marked.

  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.

Refersion → Snowflake · normal or broken

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

Normal, not a fault

  • Whatever join key both parties agree on, usually a hashed identifier present on the conversion

  • Sent from the store order record with Refersion attribution attached

  • 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

Actually broken

  • Whatever join key both parties agree on, usually a hashed identifier missing on most records

    Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.

  • Sent from the browser

    A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.

  • 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

Refersion → Snowflake · diagnose

Diagnostic order — Refersion → Snowflake

  1. 01

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

  2. 02

    Follow one real conversion end to end

  3. 03

    Count orders appearing in both paid conversions and Refersion

    The overlap is the double payment. One query, rarely run.

  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.

Refersion → Snowflake · prove

How it gets proven — Refersion → Snowflake

Source of truth

Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.

  • Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live conversion.
  • Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
  • Non-affiliate orders reconciled against imported conversions, with the overlap measured and stated.

Refersion → Snowflake · free audit

What we check in the free audit

  • Count conversions carrying whatever join key both parties agree on, usually a hashed identifier
  • Follow one real conversion end to end
  • Count orders appearing in both paid conversions and Refersion
  • Write down both parties' conversion definitions before writing any query
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Refersion → Snowflake · when not to buy

When you don't need this — Refersion → Snowflake

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry whatever join key both parties agree on, usually a hashed identifier.
  • No affiliate programme means no conflict and this reduces to an ordinary store integration.
  • 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.

Refersion → Snowflake · what we deliver

What gets built — Refersion → Snowflake

  • Identifier capture into Refersion

    Set an explicit precedence rule between affiliate and paid parameters rather than letting last-write-wins decide, and record both on the order.

  • Event source: the store order record with Refersion attribution attached

    Send orders net of affiliate commission, with the affiliate-sourced share marked.

  • 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

    Refunds reverse and should claw back the commission.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Refersion → Snowflake questions, answered

Join Refersion conversions to ad-platform conversions on the Shopify order in your warehouse, filtered to approved Refersion status, and sum the commission.

Free · 30 min

Get Refersion and Snowflake joined properly

Free30 minutesNo obligation