Skip to main content
Tapfiliate → BigQueryIntegration guide

Connecting Tapfiliate to BigQuery

Tapfiliate handles affiliate programmes for SaaS and subscription businesses, where the commission recurs and therefore so does the cost of getting the attribution wrong. 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 Tapfiliate conversion 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

Tapfiliate to BigQuery: reconciling commissions to billing

Load Tapfiliate conversions and commissions through its API into BigQuery next to billing subscriptions and invoices, joined on the customer ID you pass to Tapfiliate, ideally your billing customer ID. Query monthly for commissions on cancelled, refunded or downgraded accounts. Store paid click IDs and referrals with timestamps to audit precedence, and keep commission tables as append-only snapshots.

BigQuery is where Tapfiliate's commission ledger gets checked against reality. Load Tapfiliate conversions and commissions through its API, checking which endpoints your plan includes, next to subscriptions and invoices from billing, joined on the customer ID you pass to Tapfiliate when creating the customer. If that ID is not your billing customer ID, fix that first; every other join depends on it.

The query that pays for the setup lists commissions approved or paid for periods when the subscription was cancelled, refunded or downgraded. Tapfiliate only knows what you send it, so any cancellation path you never wired shows up here as commission on dead accounts. Run it monthly and send the list to whoever approves payouts.

Also store each account's paid click IDs (gclid, fbclid and others) and the Tapfiliate referral with timestamps, so the precedence rule can be audited: how many conversions did both an affiliate and a paid ad claim, and who was credited. Keep commission tables as append-only snapshots, because commission statuses change over time and overwriting rows loses when a commission moved from pending to paid, or was reversed.

Tapfiliate → BigQuery · what breaks

Why this join usually fails — Tapfiliate → BigQuery

  1. 01

    Whatever join key you decide on never reaches Tapfiliate

    Affiliate cookies and paid identifiers coexist in the same browser through a trial period that can run weeks.

  2. 02

    Commission continuing on cancelled subscriptions

    Most implementations wire the signup and forget the cancellation, so affiliates keep earning on customers who left months ago. This is money leaving the business quietly and indefinitely.

  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.

Tapfiliate → BigQuery · the fix

What working looks like — Tapfiliate → BigQuery

  • Whatever join key you decide on on every conversion

  • 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

Tapfiliate → BigQuery · architecture

How Tapfiliate and BigQuery actually connect

  1. 1

    Tapfiliate holds the truth

    Recurring commission means an attribution error does not cost you once. It costs you every month until somebody notices, and nobody notices because the amounts are individually small.

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

  4. 4

    The event source decides reliability

    Send new subscriptions net of commission, with affiliate-sourced ones marked.

  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.

Tapfiliate → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the conversion

  • Sent from the subscription record with affiliate 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

    Affiliate cookies and paid identifiers coexist in the same browser through a trial period that can run weeks.

  • Sent from the browser

    Most implementations wire the signup and forget the cancellation, so affiliates keep earning on customers who left months ago. This is money leaving the business quietly and indefinitely.

  • 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

Tapfiliate → BigQuery · diagnose

Diagnostic order — Tapfiliate → BigQuery

  1. 01

    Count conversions carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether cancellations reach the affiliate platform

    Usually they do not, because only the signup path was interesting to build.

  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.

Tapfiliate → BigQuery · prove

How it gets proven — Tapfiliate → BigQuery

Source of truth

Subscriptions flagged by affiliate, with recurring commission recorded against recognized revenue.

  • Whatever join key you decide on confirmed present on a live conversion.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Commissionable recurring revenue reconciled against active subscriptions, with cancellations proven to reverse.

Tapfiliate → BigQuery · free audit

What we check in the free audit

  • Count conversions carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Check whether cancellations reach the affiliate platform
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Subscriptions flagged by affiliate, with recurring commission recorded against recognized revenue.

Get my free conversion tracking audit

Free30 minutesNo obligation

Tapfiliate → BigQuery · when not to buy

When you don't need this — Tapfiliate → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry whatever join key you decide on.
  • One-off sales programmes do not have the recurring exposure and need only the signup path.
  • 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.

Tapfiliate → BigQuery · what we deliver

What gets built — Tapfiliate → BigQuery

  • Identifier capture into Tapfiliate

    Record both identifiers with timestamps on the account and apply a written precedence rule at conversion rather than at click.

  • Event source: the subscription record with affiliate attribution

    Send new subscriptions net of commission, with affiliate-sourced ones marked.

  • 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 must reverse and stop the recurring commission.

Written guarantee

95%+ tracking accuracy

Measured against Subscriptions flagged by affiliate, with recurring commission recorded against recognized revenue.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Tapfiliate → BigQuery questions, answered

Load Tapfiliate commissions and your billing subscriptions into BigQuery, join on the customer ID, and list commissions dated after cancellation.

Free · 30 min

Get Tapfiliate and BigQuery joined properly

Free30 minutesNo obligation