Connecting CartHook to BigQuery
CartHook does post-purchase one-click upsells specifically, which means every pound it adds arrives after the order was created and after any checkout-time conversion already fired. 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 CartHook post-purchase order 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
CartHook orders in BigQuery: store checkout and settled totals
In BigQuery, load each Shopify order at creation and again after the post-purchase window, keeping checkout and settled totals, CartHook upsell lines and stored click identifiers like gclid or GA4 client_id. Load every webhook version with updated_at and pick the latest per order ID in a view, since raw sums double-count. Keep refunds as line-item rows.
BigQuery is where the CartHook gap can actually be measured, because you can keep both numbers side by side. Load the Shopify order as it was created, which is the checkout total, and again once the post-purchase window has closed, which is the settled total with any accepted offers. A table holding order ID, both totals, the upsell line items and the click identifiers captured on the order lets you compute take rate by campaign. No ad platform will show you that.
The order webhook fires on creation and again on each update, so the same order will arrive several times. Load every version with its updated_at timestamp and pick the latest per order ID in a view. Don't try to overwrite rows in place. A plain sum over the raw table counts each upsold order once per update, and the result looks believable because upsell orders really are larger.
For attribution, the join key is what you stored on the order: gclid, fbclid, ttclid or a GA4 client_id passed through cart attributes before checkout. CartHook adds nothing to that, since it runs after the identifiers were already captured. Keep refunds as their own rows tied to the line item, so an upsell-only refund lowers the order total instead of wiping it out.
CartHook → BigQuery · what breaks
Why this join usually fails — CartHook → BigQuery
- 01
Whatever join key you decide on never reaches CartHook
The offer runs after order creation, so anything that fired at checkout has already gone.
- 02
Upsell revenue that no campaign ever gets credit for
If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.
- 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.
CartHook → BigQuery · the fix
What working looks like — CartHook → BigQuery
Whatever join key you decide on on every order
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
CartHook → BigQuery · architecture
How CartHook and BigQuery actually connect
- 1
CartHook holds the truth
A one-click upsell charges the stored payment method and appends to the same order. The order total changes; the checkout total does not.
- 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 CartHook post-purchase order.
- 4
The event source decides reliability
Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.
- 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.
CartHook → BigQuery · normal or broken
Working vs. broken, side by side — CartHook → BigQuery
Normal, not a fault
Whatever join key you decide on present on the order
Sent from the Shopify order webhook
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 offer runs after order creation, so anything that fired at checkout has already gone.
Sent from the browser
If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.
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
CartHook → BigQuery · diagnose
Diagnostic order — CartHook → BigQuery
- 01
Count orders carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Compare checkout total against final settled total
The gap is the revenue your conversion reporting is currently discarding.
- 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.
CartHook → BigQuery · prove
How it gets proven — CartHook → BigQuery
Source of truth
The final Shopify order total after the post-purchase sequence completes.
- Whatever join key you decide on confirmed present on a live order.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Settled order totals reconciled against imported conversions for a closed week.
CartHook → BigQuery · free audit
What we check in the free audit
- Count orders carrying whatever join key you decide on
- Follow one real conversion end to end
- Compare checkout total against final settled total
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
The final Shopify order total after the post-purchase sequence completes.
Free30 minutesNo obligation
CartHook → BigQuery · when not to buy
When you don't need this — CartHook → BigQuery
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
- Stores without post-purchase offers can report checkout value and the timing question 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.
CartHook → BigQuery · what we deliver
What gets built — CartHook → BigQuery
Identifier capture into CartHook
Send the conversion from the order webhook once the post-purchase window closes, rather than at checkout.
Event source: the Shopify order webhook
Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.
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; an upsell-only refund should reduce rather than reverse the order.
Written guarantee
95%+ tracking accuracy
Measured against The final Shopify order total after the post-purchase sequence completes.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
CartHook → BigQuery questions, answered
Store each order's checkout total and its settled total after the post-purchase window, plus the upsell line items, then group by the campaign identifiers stored on the order.
Shopify sends the order again on every update, including each accepted upsell. Keep only the latest version per order ID before you sum.
Almost always because whatever join key you decide on never reached the CartHook post-purchase order. The offer runs after order creation, so anything that fired at checkout has already gone. 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.
The Shopify order webhook. Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.
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 CartHook → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where CartHook → BigQuery fits in the rest of your tracking
- ReConvert → BigQueryConnecting ReConvert to BigQuery
- Zipify OCU → BigQueryConnecting Zipify OneClickUpsell to BigQuery
- Rebuy → BigQueryConnecting Rebuy to BigQuery
- CartHook → SnowflakeConnecting CartHook to Snowflake
- CartHook → SegmentConnecting CartHook to Segment
- SupplementsConversion tracking for supplement brands, built around subscription value
- AfterSell → BigQueryConnecting AfterSell to BigQuery
Free · 30 min
Get CartHook and BigQuery joined properly
Free30 minutesNo obligation
