Skip to main content
ReferralCandy → SnowflakeIntegration guide

Connecting ReferralCandy to Snowflake

ReferralCandy serves smaller stores where the referral programme is often the second-largest acquisition channel and is almost never measured against paid media properly. 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 ReferralCandy referral 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

ReferralCandy in Snowflake: real cost per referred customer

Load store orders with referral cookie and coupon evidence, plus ReferralCandy referral and reward data from an export or API, into Snowflake, joined on a normalized store order ID. Keep reward state history with a latest-state view, mark recent months provisional until waiting periods pass, and apply your referral-versus-paid precedence rule in SQL against orders with paid click IDs.

Only a warehouse can put the referral program's real cost next to paid media on equal terms: the friend's discount, the referrer's reward, rewards reclaimed after refunds, and what referred customers spend over the following year. ReferralCandy's dashboard reports referral revenue; it does not report what that revenue cost or how long it lasts.

Load store orders with acquisition evidence, the referral cookie and the friend's coupon, plus ReferralCandy's referral and reward data from whatever your plan exposes, whether an export or an API; check which. Join on the store order ID, normalized to one format on both sides. Rewards change state, from pending to issued, reclaimed or cancelled, and at-least-once loads produce several rows per reward, so keep the history and build a view with the latest state per referral.

Rewards often clear after a waiting period, so referral cost for a month is not final until that period has passed; label recent months as provisional. With paid conversions in the same warehouse, count orders carrying both a referral and a paid click ID, and apply your precedence rule in SQL rather than in each platform's dashboard. That one table settles which channel actually acquired whom.

ReferralCandy → Snowflake · what breaks

Why this join usually fails — ReferralCandy → Snowflake

  1. 01

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

    Referral links land with their own parameters on a store that may already hold a paid identifier.

  2. 02

    Referral and paid competing for the same orders

    Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.

  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.

ReferralCandy → Snowflake · the fix

What working looks like — ReferralCandy → Snowflake

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

  • 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

ReferralCandy → Snowflake · architecture

How ReferralCandy and Snowflake actually connect

  1. 1

    ReferralCandy holds the truth

    At small-store scale the referral programme can rival paid acquisition in volume. Pooling them means neither channel's true cost per acquisition is knowable.

  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 ReferralCandy referral.

  4. 4

    The event source decides reliability

    Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.

  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.

ReferralCandy → Snowflake · normal or broken

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

Normal, not a fault

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

  • Sent from your order feed with referral attribution

  • 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

    Referral links land with their own parameters on a store that may already hold a paid identifier.

  • Sent from the browser

    Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.

  • 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

ReferralCandy → Snowflake · diagnose

Diagnostic order — ReferralCandy → Snowflake

  1. 01

    Count referrals 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 carrying both a referral and a paid parameter

    It is usually a meaningful share, and every one of them is currently credited by luck.

  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.

ReferralCandy → Snowflake · prove

How it gets proven — ReferralCandy → Snowflake

Source of truth

Store orders flagged by referral, net of both rewards.

  • Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live referral.
  • 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-referral orders reconciled against imported conversions, with referral volume and reward cost stated.

ReferralCandy → Snowflake · free audit

What we check in the free audit

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

Checked against

Store orders flagged by referral, net of both rewards.

Get my free conversion tracking audit

Free30 minutesNo obligation

ReferralCandy → Snowflake · when not to buy

When you don't need this — ReferralCandy → Snowflake

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry whatever join key both parties agree on, usually a hashed identifier.
  • No referral programme, no conflict.
  • 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.

ReferralCandy → Snowflake · what we deliver

What gets built — ReferralCandy → Snowflake

  • Identifier capture into ReferralCandy

    Set precedence explicitly and record both identifiers on the order.

  • Event source: your order feed with referral attribution

    Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.

  • 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 reclaim rewards.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by referral, net of both rewards.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ReferralCandy → Snowflake questions, answered

Sum friend discounts and issued rewards minus reclaimed ones, per referred order, joined on the store order ID. Treat months inside the reward waiting period as provisional.

Free · 30 min

Get ReferralCandy and Snowflake joined properly

Free30 minutesNo obligation