Skip to main content
Rewardful → BigQueryIntegration guide

Connecting Rewardful to BigQuery

Rewardful reads directly from Stripe, which makes it unusually accurate about revenue and unusually blind to everything that happened before the customer reached checkout. 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 Rewardful 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

Rewardful in BigQuery: measuring affiliate and paid overlap

Load Stripe customers, subscriptions, invoices and refunds plus Rewardful referrals and commissions into BigQuery, joined on Stripe customer ID. Add paid click IDs and capture times from Stripe metadata to count customers with both a referral and a paid click. Replace changed commission rows on each load and deduplicate invoices on invoice ID.

BigQuery is where the overlap Rewardful hides becomes a query. Load Stripe customers, subscriptions, invoices and refunds, and load Rewardful's referrals and commissions, through its API or exports. Check what your plan exposes. The join key is the Stripe customer ID, which both sides carry, and it is the only key that connects a commission to the revenue it was paid on.

The overlap only becomes visible if the paid click IDs are already in Stripe customer metadata, with the time each was captured: gclid, fbclid, ttclid and whatever else you run. Add those as columns from metadata, then count customers with both a referral and a paid click, and which came first. That table tells you how much commission went to customers you had already paid an ad network to acquire, a figure neither Rewardful nor any ad platform will produce for you.

Rewardful commissions change after the fact. A refund or chargeback in Stripe can void a commission, and a renewal can create a new one months later. Load commissions with their status and updated time, and replace changed rows on each load rather than appending, or voided commissions will sit in the table at full value. Deduplicate Stripe invoice rows on invoice ID too, since webhook-driven loads can deliver the same event twice.

Rewardful → BigQuery · what breaks

Why this join usually fails — Rewardful → BigQuery

  1. 01

    Whatever join key you decide on never reaches Rewardful

    The referral cookie is set on click and read at checkout; a paid identifier stored earlier is invisible to Rewardful entirely.

  2. 02

    Accurate revenue, invisible overlap

    Rewardful will tell you exactly what an affiliate earned and nothing about whether you also paid Google for the same customer. Putting both identifiers in Stripe metadata is the cheapest fix available and almost nobody does it.

  3. 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.

  4. 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.

Rewardful → BigQuery · the fix

What working looks like — Rewardful → 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

Rewardful → BigQuery · architecture

How Rewardful and BigQuery actually connect

  1. 1

    Rewardful holds the truth

    Because it reads Stripe, the revenue figure is right. What it cannot see is the paid click that preceded the referral link, which is exactly the overlap you need to measure.

  2. 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. 3

    The identifier is the bridge

    Whatever join key you decide on, captured at the visit and carried into the Rewardful referral.

  4. 4

    The event source decides reliability

    Send new subscriptions net of commission, with the referral flag from Stripe metadata.

  5. 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.

Rewardful → BigQuery · normal or broken

Working vs. broken, side by side — Rewardful → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the referral

  • Sent from the Stripe subscription with Rewardful 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

    The referral cookie is set on click and read at checkout; a paid identifier stored earlier is invisible to Rewardful entirely.

  • Sent from the browser

    Rewardful will tell you exactly what an affiliate earned and nothing about whether you also paid Google for the same customer. Putting both identifiers in Stripe metadata is the cheapest fix available and almost nobody does it.

  • 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

Rewardful → BigQuery · diagnose

Diagnostic order — Rewardful → BigQuery

  1. 01

    Count referrals carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether Stripe customer metadata holds both identifiers

    If it holds only one, the overlap between affiliate and paid is unmeasurable after the fact.

  4. 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.

  5. 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.

Rewardful → BigQuery · prove

How it gets proven — Rewardful → BigQuery

Source of truth

Stripe subscriptions flagged by referral, with commission calculated on actual Stripe revenue.

  • 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.
  • New subscriptions reconciled in Stripe with both referral and paid identifiers present, and the overlap stated.

Rewardful → 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
  • Check whether Stripe customer metadata holds both identifiers
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Stripe subscriptions flagged by referral, with commission calculated on actual Stripe revenue.

Get my free conversion tracking audit

Free30 minutesNo obligation

Rewardful → BigQuery · when not to buy

When you don't need this — Rewardful → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry whatever join key you decide on.
  • If you run no paid media alongside the affiliate programme, there is no overlap to measure.
  • 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.

Rewardful → BigQuery · what we deliver

What gets built — Rewardful → BigQuery

  • Identifier capture into Rewardful

    Store the paid identifier in Stripe customer metadata alongside the referral, so the overlap is visible in one place.

  • Event source: the Stripe subscription with Rewardful attribution

    Send new subscriptions net of commission, with the referral flag from Stripe metadata.

  • 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

    Cancellations and refunds reverse in both systems.

Written guarantee

95%+ tracking accuracy

Measured against Stripe subscriptions flagged by referral, with commission calculated on actual Stripe revenue.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Rewardful → BigQuery questions, answered

On the Stripe customer ID, which both Rewardful referrals and Stripe records carry.

Free · 30 min

Get Rewardful and BigQuery joined properly

Free30 minutesNo obligation