Skip to main content
FirstPromoter → BigQueryIntegration guide

Connecting FirstPromoter to BigQuery

FirstPromoter is affiliate and referral tracking aimed at SaaS, where the referrer is frequently an existing customer — which makes the programme a retention mechanism as much as an acquisition one. 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 FirstPromoter 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

FirstPromoter in BigQuery: referral, paid click and commission rows

Load FirstPromoter referrals, promoters and commissions into raw BigQuery tables keyed on the billing subscription or customer ID, beside your own capture table of gclid, fbclid and UTMs from signup, then settle precedence in SQL. Split reports on promoter type, store commission as its own fact table, and append cancellations and refunds as new rows rather than overwriting.

BigQuery is where the precedence problem between referral links and paid clicks can actually be settled, because you keep every touch and choose the rule in SQL instead of letting whichever cookie was written last decide. Load FirstPromoter's referrals, promoters and commissions (via its API or webhooks; check what your plan exposes) into raw tables, keyed on the subscription or customer ID from your billing system.

Load your own capture table alongside: gclid, fbclid, UTM values and timestamps recorded at signup, keyed on the same account ID. A signup with both a paid click and a referral is then one row joined to two touches, and you can report paid acquisition with referred accounts excluded, referred accounts by promoter type, and the overlap between them. The promoter's customer-or-affiliate field is the column every acquisition report should split on.

Commission is a cost, so store it as its own fact table keyed on subscription ID, not as a reduction applied to revenue at load time. Net-of-commission revenue then stays a query you can rerun when rates change. Cancellations and refunds should arrive as new rows; FirstPromoter reverses commission on cancellation, and if you overwrite instead of append, last quarter's affiliate cost quietly changes after it was reported.

FirstPromoter → BigQuery · what breaks

Why this join usually fails — FirstPromoter → BigQuery

  1. 01

    Whatever join key you decide on never reaches FirstPromoter

    Referral links are shared privately — in Slack, in email, in conversation — and land with a parameter that may overwrite a paid identifier.

  2. 02

    Customer word of mouth billed as media

    When customer referrals and affiliate media share one programme, the acquisition report cannot distinguish a product that people recommend from a commission you paid. Those lead to opposite decisions.

  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.

FirstPromoter → BigQuery · the fix

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

FirstPromoter → BigQuery · architecture

How FirstPromoter and BigQuery actually connect

  1. 1

    FirstPromoter holds the truth

    A customer referring a colleague and a review site earning a commission are both referrals and are nothing alike. One indicates product satisfaction; the other is a media cost.

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

  4. 4

    The event source decides reliability

    Send new subscriptions with the referral type marked, net of commission.

  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.

FirstPromoter → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the referral

  • Sent from the subscription record 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 are shared privately — in Slack, in email, in conversation — and land with a parameter that may overwrite a paid identifier.

  • Sent from the browser

    When customer referrals and affiliate media share one programme, the acquisition report cannot distinguish a product that people recommend from a commission you paid. Those lead to opposite decisions.

  • 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

FirstPromoter → BigQuery · diagnose

Diagnostic order — FirstPromoter → BigQuery

  1. 01

    Count referrals carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Split referrers into customers and commercial affiliates

    It is a field on the promoter, and it changes what the whole programme is telling you.

  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.

FirstPromoter → BigQuery · prove

How it gets proven — FirstPromoter → BigQuery

Source of truth

New subscriptions flagged by referrer, with customer-referrers distinguished from professional affiliates.

  • 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 by referral type against imported conversions.

FirstPromoter → 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
  • Split referrers into customers and commercial affiliates
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

New subscriptions flagged by referrer, with customer-referrers distinguished from professional affiliates.

Get my free conversion tracking audit

Free30 minutesNo obligation

FirstPromoter → BigQuery · when not to buy

When you don't need this — FirstPromoter → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry whatever join key you decide on.
  • A purely commercial affiliate programme has no customer-referral component and this distinction does not arise.
  • 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.

FirstPromoter → BigQuery · what we deliver

What gets built — FirstPromoter → BigQuery

  • Identifier capture into FirstPromoter

    Record referral type and paid identifier separately on the account, with an explicit precedence rule.

  • Event source: the subscription record with referral attribution

    Send new subscriptions with the referral type marked, net of commission.

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

Written guarantee

95%+ tracking accuracy

Measured against New subscriptions flagged by referrer, with customer-referrers distinguished from professional affiliates.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

FirstPromoter → BigQuery questions, answered

Store gclid and the signup timestamp against the account ID at signup, load FirstPromoter referrals keyed on the same account or billing customer ID, and join on that.

Free · 30 min

Get FirstPromoter and BigQuery joined properly

Free30 minutesNo obligation