Book your free review Book a free GTM Health Check: Find Where Your Pipeline Leaks Book a Slot
Analytics & Tracking

GA4 HubSpot Integration: What Works Natively and What Needs GTM

Ankur Pandey 15 min read Updated

Key takeaways

  • The native GA4 HubSpot integration is one way. You paste a GA4 Measurement ID into HubSpot and GA4 records visits to pages HubSpot hosts. HubSpot’s article describes no setting that sends HubSpot data back.
  • Form submissions are the gap. Listen for HubSpot’s form events in Google Tag Manager and send a generate_lead event to GA4, then mark it as a key event.
  • UTMs reach HubSpot contacts through HubSpot’s own source properties or hidden form fields. GA4 does not pass them over.
  • The two tools will never match exactly. GA4 counts sessions and events. HubSpot counts contacts.

The GA4 HubSpot integration is a one-way setup. You add your GA4 Measurement ID to HubSpot, and GA4 records visits to the pages HubSpot hosts. It does not sync contacts or form data between the two tools. To see form submissions in GA4, send an event from HubSpot’s form events through Google Tag Manager.

Most teams discover the limit of the GA4 HubSpot integration the same week. Someone connects the two tools, opens GA4, and cannot find a single lead. The tools are connected, but the GA4 HubSpot integration only covers page traffic. This guide shows what the connection does, how to close the gaps, and why the numbers still will not match. Checked against HubSpot and Google documentation on 5 Nov 2026.

How we researched this: we read the vendor documents linked below and wrote the recipe from them. We did not run a fresh test in a live portal for this article, so run every step in GTM Preview first. We work with GA4, Google Tag Manager and HubSpot, but we are not a HubSpot or Google partner.

What GA4 and HubSpot each know about a visitor

GA4 knows behaviour, and HubSpot knows people. GA4 records events from a browser. HubSpot stores contacts, companies and deals, and ties web visits to a contact once that contact submits a form.

That difference explains most of the confusion later in this guide.

Question GA4 HubSpot
What it counts Events, sessions and users Contacts, companies and deals
Source logic Attribution models such as data-driven and paid and organic last click. Direct visits get no credit unless the whole path is direct. Original Traffic Source (first known source) and Latest Traffic Source
Personal data Google policy forbids sending data it could recognise as personally identifiable, such as email addresses A CRM, so it stores names and emails by design
Best question to ask it Which pages and channels bring engaged visits? Which sources create contacts that become customers?

Sources for the table: Google’s pages on GA4 attribution models and its personally identifiable information policy, plus HubSpot’s guide to traffic source properties.

SOUND FAMILIAR?Not sure your numbers are right? We audit and fix your tracking.See Analytics & Tracking →

How the native GA4 HubSpot integration works

The native GA4 HubSpot integration sends visits on HubSpot-hosted pages to your GA4 property. You paste the Measurement ID into HubSpot and nothing else is needed. These are the steps from HubSpot’s Google Analytics integration article:

  1. In HubSpot, go to Settings, then Content, then Pages.
  2. Choose a domain, or “Default settings for all domains”.
  3. Open the Integrations tab and select “Integrate with Google Analytics 4”.
  4. Enter your Measurement ID and click Save.

You find the ID in GA4 under Admin, Data streams, then your web stream. It starts with “G-“. Google says data can take up to 30 minutes to appear, so check the Realtime report before you assume it failed.

Which plans and pages it covers

The Measurement ID method is available on all HubSpot plans. Pasting a tracking code into header HTML for a domain needs Marketing Hub Professional or Enterprise. A Marketing Hub Starter account without Content Hub can only use the Measurement ID method, per HubSpot’s article. A domain-level setting tracks every blog and page hosted on that domain, and it also covers the payment checkout page.

What the GA4 HubSpot integration does not do

Be clear about the limits of the GA4 HubSpot integration before you promise anything to your sales team.

You might expect What happens
GA4 shows HubSpot form submissions Not by itself. The article covers page tracking only.
Contacts and deals appear in GA4 No. GA4 receives page data, not CRM records.
Pages on your WordPress or Webflow site are tracked Only if you tag them separately. The setting covers pages hosted in HubSpot.
The cookie banner controls every GA4 tag Only the Measurement ID script. Code pasted into header HTML cannot be controlled by the HubSpot consent banner, so it records data regardless of opt-in by default.

That last row is a legal question, not only a technical one. Ask whoever owns privacy at your company before you pick the header HTML route.

Two sites, one property

With a GA4 HubSpot integration, many B2B teams run the main site elsewhere and keep landing pages or forms on a HubSpot domain. Then one visitor crosses between two domains. Without cross-domain measurement, GA4 counts that person as two users and two sessions. Google explains the fix, which passes a _gl parameter between domains, in its cross-domain measurement guide. You set it in the web stream under Configure tag settings, then Configure your domains. Subdomains can also cause self-referrals if their cookie domains differ.

Can GA4 see HubSpot form submissions?

Yes, but only after you send them. GA4’s enhanced measurement can log form_start and form_submit events, and Google notes that their parameters only appear in reports if you create custom dimensions. We do not build lead reporting on it. A lead event you cannot audit is a risk, and HubSpot offers a clearer signal.

Method Strength Weakness
Enhanced measurement form events No code Generic. You must verify it fires once per real submission.
HubSpot form events via GTM Fires on a successful submission and carries the form ID Needs a GTM tag and a test for each form type
Thank-you page view as key event Simple, easy to explain Breaks when a form uses an inline message instead of a redirect

For a GA4 HubSpot integration we prefer the second method. For the wider picture, see our guide to GA4 conversion tracking for lead-gen sites.

The GTM recipe for HubSpot form events

The GA4 HubSpot integration recipe has one listener, one trigger and one GA4 tag. HubSpot documents these browser events in its global form events guide. The event hs-form-event:on-submission:success fires after a successful submission. The page says it applies to forms built in the updated forms editor, so older forms need a second listener.

  1. Create a Custom HTML tag in Google Tag Manager with the code below. Fire it early, on the Initialization trigger, because HubSpot warns that some listeners must exist before the form embed code runs.
  2. Create a Custom Event trigger named hubspot_form_submit. Google’s custom event trigger article explains that the trigger matches the event value pushed to the data layer.
  3. Create a data layer variable for hs_form_id.
  4. Create a GA4 event tag named generate_lead, with hs_form_id as a parameter, fired by that trigger.
  5. Test in Preview and DebugView, submit a real test form, and confirm exactly one event arrives.
  6. Mark the event as a key event. Google’s key event tutorial uses generate_lead as its example, and notes it can take minutes to hours to apply.
// Updated forms editor
window.addEventListener('hs-form-event:on-submission:success', function (e) {
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({ event: 'hubspot_form_submit', hs_form_id: e.detail.formId });
});

// Legacy forms
window.addEventListener('message', function (e) {
  if (e.data && e.data.type === 'hsFormCallback' && e.data.eventName === 'onFormSubmitted') {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({ event: 'hubspot_form_submit', hs_form_id: e.data.id });
  }
});

The legacy listener follows HubSpot’s legacy forms documentation. Push the form ID only. Do not push field values such as an email address, because Google’s policy forbids sending data it could recognise as personally identifiable. DebugView, covered in Google’s DebugView guide, also stays empty if the visitor denied analytics consent, so test with consent granted.

Process diagram showing a GA4 HubSpot integration recipe: form event, data layer push, GTM trigger, GA4 generate_lead key event

Want this audited, not just explained? We review GA4, GTM and HubSpot tracking as part of our analytics and conversion tracking service. If you already have a GTM container, see when to bring in a GTM consultant. For the HubSpot side of the setup, see our HubSpot integration service.

How do UTMs get into HubSpot contacts?

UTMs reach HubSpot in two ways: through HubSpot’s own traffic source properties, and through hidden form fields you set up yourself. GA4 plays no part in either.

HubSpot’s built-in source properties

HubSpot sets Original Traffic Source, Latest Traffic Source and their Drill-Down 1 and 2 properties automatically. Per its traffic source properties article, utm_campaign feeds Drill-Down 1 for Email marketing, Paid search and Other campaigns, and Drill-Down 2 for Organic social, Paid social and AI Referrals. You cannot edit these by hand. Ad blockers can block HubSpot’s tracking cookies and change the values.

Note what is missing. That page does not say utm_source, utm_content or utm_term are stored as their own contact properties. If sales needs them, you need hidden fields.

Hidden fields for raw UTM values

HubSpot’s hidden fields article says hidden fields can capture URL parameters such as UTM values and save them to contact properties on submission. It is available on all plans. Two catches from the same article: a required field cannot be hidden, and the “pre-populate fields for returning visitors” setting can overwrite a hidden value.

  1. Create text properties such as UTM Source, UTM Medium, UTM Campaign, UTM Content and UTM Term.
  2. Add each one to the form as a hidden field and set it to read the matching URL parameter.
  3. Test a repeat submission with a different UTM. Decide whether you want first-touch or latest-touch, then build the properties for that choice.

Our opinion: keep one set of UTM fields for the first form fill and one for the latest, so sales can see how a lead returned. Whatever you pick, keep tags lowercase and consistent, and never put personal data in a UTM. Google’s policy lists UTM parameters among the places PII must not appear.

Why do GA4 and HubSpot show different numbers?

They answer different questions with different rules, so a gap is normal. A gap you cannot explain is the real problem.

Cause What to check
Different units Compare GA4 key events with new HubSpot contacts from the same form, not with sessions
Attribution rules HubSpot keeps a first-touch Original Source. GA4 attributes by model and gives direct visits no credit unless the path is all direct.
Consent With the Measurement ID method, the script runs only for opt-in visitors when a banner requires opt-in
Ad blockers and cookies HubSpot says blockers can affect its traffic source values
Internal traffic GA4 filters take 24 to 36 hours to apply and, once active, are permanent for that data
Retention GA4 keeps event data for 2 or 14 months on standard properties, which affects explorations, not standard reports

The consent, filter and retention rows come from HubSpot’s article and Google’s pages on internal traffic filters and data retention.

A practical rule: pick one number per question and write it down. We use GA4 for traffic quality and HubSpot for pipeline, and we reconcile them monthly using form IDs. If you also want a clean setup list, see our GA4 setup checklist for B2B websites.

Can you send HubSpot data back to GA4?

Yes, with the GA4 Measurement Protocol, but it is rarely worth it. The protocol sends events from a server, such as an offline sale. Google says it is meant to augment tag-based collection, not replace it, so tagging must already be in place.

You would need to store the visitor’s GA4 client_id on the HubSpot contact at form time, then fire an event when a deal closes. Google also says events carrying a session_id must be sent within 24 hours of the session start, and recommends the Data Manager API for new server-to-server work. Details are in the Measurement Protocol overview.

Disclosure: Nevion builds automations on Make and n8n, and a workflow tool is a natural carrier for this job. Compare them in our n8n vs Zapier vs Make guide. For most B2B teams, reporting closed revenue from HubSpot is simpler and more honest than pushing it into GA4.

GA4 HubSpot integration troubleshooting checklist

Symptom Likely cause Fix
No data after saving the ID Mismatched Measurement ID, or you are not waiting long enough Compare IDs in both tools, then watch Realtime for up to 30 minutes
Event fires in Preview, not in GA4 Consent denied, or a filter is active Test with consent granted and check DebugView
Event fires twice Two listeners, or two ways of tagging the same page Use one method per domain and remove duplicate tags
Own domains show as referrals Cross-domain not configured Add the domains in the web stream settings
No event on some forms Form is built in the older editor Add the legacy listener

Comparison table for the GA4 HubSpot integration showing what the native setup covers and what needs Google Tag Manager

Common GA4 HubSpot integration mistakes to avoid

A GA4 HubSpot integration usually breaks quietly: reports still load, but the numbers stop agreeing with each other. These are the mistakes worth checking before you trust any dashboard.

  • Assuming the native GA4 HubSpot integration tracks everything. The native route covers the basics, but custom events and cross-domain journeys usually need extra setup in Google Tag Manager.
  • Inconsistent UTM naming. If campaign parameters differ between ads, email and HubSpot forms, your GA4 HubSpot integration will split one campaign across several rows.
  • Not testing forms in DebugView. Submit a real test form and confirm the event reaches GA4 with the parameters you expect.
  • Counting every form submission as a key event. Mark only the actions that matter to revenue, otherwise a GA4 HubSpot integration will overstate success.
  • Ignoring consent and duplicate tags. Two tracking scripts firing on the same page can double count, so check it with a tag preview.

Write the checks above down and rerun them after every site or form change. A GA4 HubSpot integration that is tested regularly is easier to trust than one that was configured once and never revisited.

To review your GA4 HubSpot integration in under an hour, list every form and call to action on the site, mark which ones should be key events, and confirm each fires once in DebugView. Then compare form submissions in HubSpot with key events in GA4 for the same date range. Small differences are normal, but a large gap suggests the GA4 HubSpot integration is missing events or counting twice. Finally, document the tracking plan, so anyone who changes a form knows the GA4 HubSpot integration depends on it.

Frequently asked questions

Does HubSpot integrate with Google?

For analytics, yes, in a limited way. HubSpot lets you enter a GA4 Measurement ID, and GA4 then records visits to pages HubSpot hosts. It does not sync contacts, deals or form submissions between the two tools. Other Google products are outside this guide, which covers GA4 only.

Is Google Analytics 4 the same as Google Analytics?

GA4 is the current version of Google Analytics. Google says it replaced Universal Analytics, the older version, which stopped processing new data for standard properties on 1 July 2023. GA4 records everything as events, so its reports and numbers differ from the older version.

What is Google Analytics 4 used for?

GA4 records behaviour from a browser: events, sessions and users. Teams use it to see which pages and channels bring engaged visits, and to measure key events such as form submissions and booked calls. It holds no CRM data, so it cannot tell you which sources create customers. HubSpot answers that, because it stores contacts and deals.

How do I add GA4 tracking to HubSpot?

In HubSpot, go to Settings, Content, Pages, choose a domain, open the Integrations tab and select Integrate with Google Analytics 4. Enter your Measurement ID, which starts with G-, and save. This works on all plans. Pasting a tracking code into header HTML needs Marketing Hub Professional or Enterprise. Data can take up to 30 minutes to appear.

Can GA4 see HubSpot form submissions?

Only if you send them. HubSpot fires a browser event after a successful submission. Listen for it in Google Tag Manager, push the form ID to the data layer, and send a generate_lead event to GA4. Then mark that event as a key event so it appears in key event reports.

Why do HubSpot and GA4 show different numbers?

GA4 counts events, sessions and users, while HubSpot counts contacts. They also use different attribution rules, consent handling and filters. HubSpot keeps a first-touch Original Source. GA4 uses attribution models and gives direct visits no credit unless the path is entirely direct.

How do I pass UTMs into HubSpot contacts?

Add hidden fields to your forms and set each one to read a URL parameter, such as utm_campaign. HubSpot saves the value to a contact property on submission. HubSpot also fills its own traffic source properties automatically, but it does not store every UTM as a separate property.

Bottom line

The native GA4 HubSpot integration answers one question: did people visit my HubSpot pages? Everything about leads in a GA4 HubSpot integration needs a GTM event, a hidden field or both. Build the form event first, then UTM fields, then agree with sales which tool owns which number.

Facts here are dated 5 Nov 2026. Re-check the HubSpot and Google pages linked above before you change a live container.

  • Analytics & Tracking
  • ga4
  • Google Tag Manager
  • HubSpot
  • lead tracking
  • UTM tracking
Ankur Pandey
Written byAnkur Pandey

Founder and Lead Engineer at Nevion Labs. Ankur sets up the go-to-market systems, CRMs, automations and tracking described on this blog for B2B teams in India and the US.

Want this set up for your team?

Tell us where leads, data or follow-up break down. We reply within one business day and send a fixed quote after a short call.

Discuss Your Project

Want This Set Up for Your Team?

Tell us where leads, data or follow-up break down. We’ll reply within one business day and send a fixed quote after a short call.

Discuss Your Project