Connecting HubSpot to BigQuery
HubSpot knows which leads turned into money, weeks after the ad platforms have stopped paying attention. 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 HubSpot contact and deal 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
HubSpot to BigQuery: deals, associations and stage history
Load three HubSpot tables into BigQuery: contacts with click ID properties, deals with amount, close date and stage, and the deal-to-contact associations, plus property history so reopened deals and stage timing show. Join on HubSpot object IDs, not email, convert multi-currency amounts deliberately, and use the warehouse to measure click-to-close and send qualified deals onward.
BigQuery is where the question this source keeps raising gets answered: how long after the click do deals actually close, and what share land inside each ad platform's window. Answering it needs three tables, not one: contacts with your click ID properties, deals with amount, close date and stage, and the association rows linking deals to contacts. A deal row alone carries no click identifier at all.
Load property history, not just current values. HubSpot keeps the timeline of each deal's stage changes, and that history is what tells you when a deal entered each stage and whether it later left Closed Won. A warehouse that only snapshots today's stage cannot rebuild a funnel or detect a reopened deal. Check whether your HubSpot tier offers a direct warehouse export; otherwise a connector or a scheduled pull from the CRM API does the job.
Join on HubSpot object IDs, not email, since contacts merge and emails change. Watch currency: multi-currency portals record deal amounts in the deal's currency, so convert deliberately before summing. Once the tables are clean, the click-to-close distribution comes straight out of contact creation date versus deal close date, and the warehouse becomes the place you send qualified deals onward to ad platforms from.
HubSpot → BigQuery · what breaks
Why this join usually fails — HubSpot → BigQuery
- 01
Whatever join key you decide on never reaches HubSpot
The identifier has to be captured on the form and written to a contact property. HubSpot forms embedded in an iframe do not automatically see your page's cookies, so a hidden field has to be populated deliberately. Miss that and the contact is created clean, with nothing to join on ever again.
- 02
The deal closes long after the click
B2B sales cycles routinely run past the attribution window of every ad platform. Value uploaded on day 95 is value nobody will accept, so the timing question has to be answered before anything is built.
- 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.
HubSpot → BigQuery · the fix
What working looks like — HubSpot → BigQuery
Whatever join key you decide on on every deal
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
HubSpot → BigQuery · architecture
How HubSpot and BigQuery actually connect
- 1
HubSpot holds the truth
The deal carries the amount, the stage, the close date and the associated contact. That contact is where the original click identifier must live, because the deal is created much later by a salesperson who has no idea an ad was involved.
- 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 HubSpot contact and deal.
- 4
The event source decides reliability
Trigger when the deal reaches Closed Won and send the deal amount with the identifier stored on the associated contact. Sending on form submission instead means you optimize toward form fills, which is exactly the behavior that fills a pipeline with unqualified leads.
- 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.
HubSpot → BigQuery · normal or broken
Working vs. broken, side by side — HubSpot → BigQuery
Normal, not a fault
Whatever join key you decide on present on the deal
Sent from a HubSpot workflow or webhook on deal stage change
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 identifier has to be captured on the form and written to a contact property. HubSpot forms embedded in an iframe do not automatically see your page's cookies, so a hidden field has to be populated deliberately. Miss that and the contact is created clean, with nothing to join on ever again.
Sent from the browser
B2B sales cycles routinely run past the attribution window of every ad platform. Value uploaded on day 95 is value nobody will accept, so the timing question has to be answered before anything is built.
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
HubSpot → BigQuery · diagnose
Diagnostic order — HubSpot → BigQuery
- 01
Count deals carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Open a Closed Won deal and follow it back to its contact
Does that contact carry the identifier property, populated? Then check the date gap between the contact's creation and the deal's close — that gap decides whether this integration is possible at all.
- 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.
HubSpot → BigQuery · prove
How it gets proven — HubSpot → BigQuery
Source of truth
HubSpot's Deals report, filtered to Closed Won for the same window, by close date.
- Whatever join key you decide on confirmed present on a live deal.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- The click-to-close time distribution measured, so you know what share of deals close inside the destination's window.
HubSpot → BigQuery · free audit
What we check in the free audit
- Count deals carrying whatever join key you decide on
- Follow one real conversion end to end
- Open a Closed Won deal and follow it back to its contact
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
HubSpot's Deals report, filtered to Closed Won for the same window, by close date.
Free30 minutesNo obligation
HubSpot → BigQuery · when not to buy
When you don't need this — HubSpot → BigQuery
- Measure identifier coverage yourself first — pull your last hundred deals and count how many carry whatever join key you decide on.
- If your median deal closes well past the destination's upload window, the honest answer is a different measurement strategy, not this integration. We will tell you that on the call rather than sell you a build that cannot work.
- 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.
HubSpot → BigQuery · what we deliver
What gets built — HubSpot → BigQuery
Identifier capture into HubSpot
Create a custom contact property, populate a hidden form field from the persisted first-party cookie, and confirm the property lands on the contact rather than only on the form submission.
Event source: a HubSpot workflow or webhook on deal stage change
Trigger when the deal reaches Closed Won and send the deal amount with the identifier stored on the associated contact. Sending on form submission instead means you optimize toward form fills, which is exactly the behavior that fills a pipeline with unqualified leads.
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
A deal reopened or moved out of Closed Won can be retracted where the destination supports it, though most teams accept the small error here rather than wire it.
Written guarantee
95%+ tracking accuracy
Measured against HubSpot's Deals report, filtered to Closed Won for the same window, by close date.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
HubSpot → BigQuery questions, answered
Contacts with their click ID properties, deals with stage and close date, the deal-to-contact associations, and deal stage history. Without the associations there is no path from a deal back to a click.
In the warehouse, compare the associated contact's creation date, or click capture date, with the deal's close date, then read the distribution against each platform's window.
Almost always because whatever join key you decide on never reached the HubSpot contact and deal. The identifier has to be captured on the form and written to a contact property. HubSpot forms embedded in an iframe do not automatically see your page's cookies, so a hidden field has to be populated deliberately. Miss that and the contact is created clean, with nothing to join on ever again. 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.
A HubSpot workflow or webhook on deal stage change. Trigger when the deal reaches Closed Won and send the deal amount with the identifier stored on the associated contact. Sending on form submission instead means you optimize toward form fills, which is exactly the behavior that fills a pipeline with unqualified leads.
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 HubSpot → BigQuery
- Stripe → HubSpotConnecting Stripe to HubSpot
- Shopify → HubSpotConnecting Shopify to HubSpot
- WooCommerce → HubSpotConnecting WooCommerce to HubSpot
Using HubSpot for bookings? How HubSpot bookings get tracked end to end
RELATED GUIDES
Where HubSpot → BigQuery fits in the rest of your tracking
- GoHighLevel → BigQueryConnecting GoHighLevel to BigQuery
- Copper → BigQueryConnecting Copper to BigQuery
- Zoho → BigQueryConnecting Zoho CRM to BigQuery
- HubSpot → SnowflakeConnecting HubSpot to Snowflake
- HubSpot → SegmentConnecting HubSpot to Segment
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Pipedrive → BigQueryConnecting Pipedrive to BigQuery
- Nutshell → BigQueryConnecting Nutshell to BigQuery
Free · 30 min
Get HubSpot and BigQuery joined properly
Free30 minutesNo obligation
