Connecting ReferralCandy to BigQuery
ReferralCandy serves smaller stores where the referral programme is often the second-largest acquisition channel and is almost never measured against paid media properly. 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 ReferralCandy referral 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
ReferralCandy plus ad clicks in BigQuery: auditable precedence
Load store orders into BigQuery with every acquisition signal on the row: the ReferralCandy coupon or referral flag, gclid, fbclid, ttclid, UTMs and landing timestamps. Load referrer reward costs from ReferralCandy exports keyed on the referrer and triggering order. Write precedence as a SQL view, and query orders carrying both a referral and a paid click to decide upload exclusions.
BigQuery is where the referral-versus-paid conflict gets settled with evidence. Load store orders with every acquisition signal on the row: the ReferralCandy coupon or referral flag, gclid, fbclid, ttclid, UTM fields and landing timestamps for each. Then the precedence rule becomes a SQL view you can change and rerun, rather than a decision buried in whichever tracking script wrote last.
Load reward costs too. The friend's discount is visible on the order, but the referrer's reward lives in ReferralCandy. Check whether your ReferralCandy plan offers an export or API for rewards, and load them keyed on the referring customer and the order that triggered them. Cost per referred order is reward plus discount; without both, comparing it with paid cost per acquisition is guesswork.
The first query to run: orders carrying both a referral code and a paid click identifier, grouped by which came first. If most paid clicks precede the referral, the friend was already in market and the reward discounted a sale paid media started. If most follow, your ad platforms are retargeting people a friend brought in and claiming them. Either way, the result tells you which orders to exclude from each platform's conversion uploads.
ReferralCandy → BigQuery · what breaks
Why this join usually fails — ReferralCandy → BigQuery
- 01
Whatever join key you decide on never reaches ReferralCandy
Referral links land with their own parameters on a store that may already hold a paid identifier.
- 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.
- 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.
ReferralCandy → BigQuery · the fix
What working looks like — ReferralCandy → BigQuery
Whatever join key you decide on on every referral
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
ReferralCandy → BigQuery · architecture
How ReferralCandy and BigQuery actually connect
- 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
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 ReferralCandy referral.
- 4
The event source decides reliability
Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.
- 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.
ReferralCandy → BigQuery · normal or broken
Working vs. broken, side by side — ReferralCandy → BigQuery
Normal, not a fault
Whatever join key you decide on present on the referral
Sent from your order feed with referral attribution
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
Actually broken
Whatever join key you decide on 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
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
ReferralCandy → BigQuery · diagnose
Diagnostic order — ReferralCandy → BigQuery
- 01
Count referrals carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 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.
- 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.
ReferralCandy → BigQuery · prove
How it gets proven — ReferralCandy → BigQuery
Source of truth
Store orders flagged by referral, net of both rewards.
- Whatever join key you decide on confirmed present on a live referral.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Non-referral orders reconciled against imported conversions, with referral volume and reward cost stated.
ReferralCandy → BigQuery · free audit
What we check in the free audit
- Count referrals carrying whatever join key you decide on
- Follow one real conversion end to end
- Count orders carrying both a referral and a paid parameter
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Store orders flagged by referral, net of both rewards.
Free30 minutesNo obligation
ReferralCandy → BigQuery · when not to buy
When you don't need this — ReferralCandy → BigQuery
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry whatever join key you decide on.
- No referral programme, no conflict.
- 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.
ReferralCandy → BigQuery · what we deliver
What gets built — ReferralCandy → BigQuery
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 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
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.
From $400 · See packages
FAQ
ReferralCandy → BigQuery questions, answered
Load orders, reward costs and ad spend into BigQuery and divide each channel's cost by the orders it wins under one precedence rule. Count the friend's discount as a referral cost.
Check whether your plan offers an export or API. Referral flags can also come from your store's orders, which carry the coupon code.
Almost always because whatever join key you decide on never reached the ReferralCandy referral. Referral links land with their own parameters on a store that may already hold a paid identifier. 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.
Your order feed with referral attribution. Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.
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 ReferralCandy → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where ReferralCandy → BigQuery fits in the rest of your tracking
- Talkable → BigQueryConnecting Talkable to BigQuery
- Extole → BigQueryConnecting Extole to BigQuery
- Friendbuy → BigQueryConnecting Friendbuy to BigQuery
- ReferralCandy → SnowflakeConnecting ReferralCandy to Snowflake
- ReferralCandy → SegmentConnecting ReferralCandy to Segment
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
Free · 30 min
Get ReferralCandy and BigQuery joined properly
Free30 minutesNo obligation
