Connecting CJ Affiliate to BigQuery
CJ operates at enterprise scale with sophisticated commissioning rules, which means the same publisher can be paid differently by product, by customer status or by placement — and getting those inputs wrong pays real money incorrectly. 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 CJ transaction 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
CJ transactions in BigQuery: auditing commissions against your orders
Load CJ Affiliate's transaction-level commission data into its own BigQuery table, keyed by the order ID you pass to CJ, and join it against your order and customer tables. Compare CJ's customer status and commission to your first-order dates, flag unreversed refunds, and reload a rolling window covering CJ's locking period instead of appending once.
BigQuery is the right place to catch CJ commissioning errors, because it can hold both sides: your own order and customer tables and CJ's transaction records for the same orders. Load CJ's transaction-level commission data (through CJ's reporting API or scheduled exports; check which your account has access to) into its own table, keyed by the order ID you pass to CJ.
The join that pays for itself: CJ's recorded customer status and commission per order against your own first-order date for that customer. Every row where CJ paid a new-customer rate and your table shows an earlier order is a quantified overpayment. Repeat it for product or category rules if your program commissions them differently, and for refunds: an order refunded in your system but still carrying an unreversed commission in CJ is money owed back to you.
Store the CJ click identifier and any paid click IDs (gclid, fbclid, ttclid) on the order row too, so you can see how often a CJ publisher and a paid ad touched the same order. Commission status changes after the first load as CJ's locking period runs, so reload a rolling window that covers it rather than appending once, and keep CJ's timestamps in UTC next to yours.
CJ → BigQuery · what breaks
Why this join usually fails — CJ → BigQuery
- 01
Whatever join key you decide on never reaches CJ
The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.
- 02
Commissioning rules fed the wrong inputs
A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.
- 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.
CJ → BigQuery · the fix
What working looks like — CJ → 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
CJ Affiliate's own records are the reference, not either dashboard.
CJ → BigQuery · architecture
How CJ and BigQuery actually connect
- 1
CJ Affiliate holds the truth
Rules commonly commission new customers differently from returning ones. If your order does not carry customer status correctly, publishers are paid the wrong rate systematically and neither side notices for months.
- 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 CJ transaction.
- 4
The event source decides reliability
Send orders net of commission, carrying the fields the commissioning rules depend on.
- 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.
CJ → BigQuery · normal or broken
Working vs. broken, side by side — CJ → BigQuery
Normal, not a fault
Whatever join key you decide on present on the conversion
Visible on the record itself in CJ Affiliate, not merely captured somewhere on the site.
Sent from your order record with CJ 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
BigQuery's count and CJ Affiliate's records agree within a few percent over a closed window.
Actually broken
Whatever join key you decide on missing on most records
The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.
Sent from the browser
A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.
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
The dashboard shows a number and no one has compared it to CJ Affiliate.
CJ → BigQuery · diagnose
Diagnostic order — CJ → BigQuery
- 01
Count conversions carrying whatever join key you decide on
- 02
Follow one real conversion end to end
From the ad click through CJ and into BigQuery.
- 03
Verify that new-versus-returning status reaches CJ correctly
Sample recent transactions and compare against your own customer records. Mismatches are money.
- 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.
CJ → BigQuery · prove
How it gets proven — CJ → BigQuery
Against CJ Affiliate's own records, not against either platform's dashboard.
Source of truth
Orders flagged by publisher, with the commissioning inputs recorded on the order.
- Whatever join key you decide on confirmed present on a live conversion.
- A real conversion followed from click through CJ to BigQuery.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Transactions reconciled per order with commissioning inputs verified against your own customer data.
CJ → 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
- Verify that new-versus-returning status reaches CJ correctly
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Orders flagged by publisher, with the commissioning inputs recorded on the order.
Free30 minutesNo obligation
CJ → BigQuery · when not to buy
When you don't need this — CJ → BigQuery
- If BigQuery already reports conversions that reconcile against CJ Affiliate's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry whatever join key you decide on.
- Simple flat-rate programmes have no commissioning inputs to get wrong.
- 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.
CJ → BigQuery · what we deliver
What gets built — CJ → BigQuery
Identifier capture into CJ
Capture the identifier and the customer status on the order, and verify both across every checkout path you operate.
Event source: your order record with CJ attribution
Send orders net of commission, carrying the fields the commissioning rules depend on.
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 reverse the commission.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by publisher, with the commissioning inputs recorded on the order.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
CJ → BigQuery questions, answered
Load CJ's transaction-level data keyed by order ID next to your own orders and customers, then flag rows where CJ's customer status or sale amount disagrees with yours. Those mismatches are commission paid at the wrong rate.
Reload a rolling window that covers your locking period, because transactions get corrected or reversed after the first load. Append-only loads leave stale commission states in the table.
Almost always because whatever join key you decide on never reached the CJ transaction. The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths. 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 record with CJ attribution. Send orders net of commission, carrying the fields the commissioning rules depend on.
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 CJ → BigQuery
- CJ → Google AdsConnecting CJ Affiliate to Google Ads
- CJ → MetaConnecting CJ Affiliate to Meta Conversions API
- CJ → GA4Connecting CJ Affiliate to GA4
RELATED GUIDES
Where CJ → BigQuery fits in the rest of your tracking
- Rakuten Advertising → BigQueryConnecting Rakuten Advertising to BigQuery
- FirstPromoter → BigQueryConnecting FirstPromoter to BigQuery
- Post Affiliate Pro → BigQueryConnecting Post Affiliate Pro to BigQuery
- CJ → SegmentConnecting CJ Affiliate to Segment
- CJ → SnowflakeConnecting CJ Affiliate to Snowflake
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- ShareASale → BigQueryConnecting ShareASale to BigQuery
- LeadDyno → BigQueryConnecting LeadDyno to BigQuery
Free · 30 min
Get CJ and BigQuery joined properly
Free30 minutesNo obligation
