
HubSpot Forms Not Showing in GA4? Track Forms & Meetings with GTM

Quick answer
HubSpot forms load inside an iframe on your page, and Google Tag Manager cannot see inside an iframe. GTM’s built-in Form Submission trigger listens for the browser’s native submit event on your own page — that event never crosses the iframe boundary, so your GA4, Google Ads and Meta tags stay silent while leads keep arriving in HubSpot. The fix is a small listener tag in GTM that catches the message HubSpot itself sends when a form is submitted, and pushes a form_submission event into the dataLayer. From there a generated container takes over: a GA4 generate_lead event, a Google Ads conversion and a Meta Lead event all fire on that one trigger. Meetings need a second listener, because a booked meeting sends a different message — meetingBookSucceeded — and the form listener never sees it. Generate the container with the GA4 HubSpot form submission recipe, import it, add both listeners, and test one real form submission and one real booking in Preview before you trust the numbers.
Why HubSpot forms never reach GA4
The setup looks finished. GTM is installed, the HubSpot embed works, people complete the form, and the submissions land in HubSpot. But GA4 shows no generate_lead events, Google Ads reports no conversions, and Meta Events Manager is empty. Nothing is broken in the usual sense — the tracking was built for a form that does not exist on your page.
A normal HTML form lives in your page’s document. When someone submits it, the browser fires a submit event that GTM’s built-in Form Submission trigger can hear. A HubSpot form is different: HubSpot renders it inside an iframe, a small window on your page that belongs to HubSpot’s domain. Browsers deliberately stop one origin from reading another, so your page cannot see the submit happening, the URL never changes, and no native submit event fires. The trigger has nothing to hear. The same shape of problem sits behind the Typeform tracking guide and the Calendly guide on this site — embedded widgets that live in iframes, invisible to GTM’s standard triggers.
What HubSpot does instead is announce each submission. When a form is submitted, the iframe sends a message to the parent page. Your listener catches that message and turns it into a dataLayer event your tags can fire on. That is the whole fix — everything else is wiring.
Two generations of HubSpot forms — and why it matters
HubSpot has two form systems, and they announce submissions differently. If you build a listener for one generation and your form is the other, nothing fires and you will spend an afternoon checking the wrong thing. Work out which generation you have before you write any code.
| Generation | How to tell | What it announces | What your listener catches |
|---|---|---|---|
| Legacy forms (v3) | Built in the legacy forms editor; embed code loads js.hsforms.net |
A postMessage with type: 'hsFormCallback' and eventName: 'onFormSubmitted' |
A message event on window |
| Updated forms editor (v4) | Built in the updated forms editor; open the browser console and type HubSpotFormsV4 — if it returns an object, your form is v4 |
A DOM event called hs-form-event:on-submission:success |
The hs-form-event:on-submission:success event, read through HubspotFormsV4.getFormFromEvent(event) |
The listener in step 3 covers both generations in one tag, so you do not need to choose — but knowing which one you have tells you which half of the listener should be firing when you test, and it explains the most common failure: a v3-only listener pasted from an old guide, on a form HubSpot built with the new editor. HubSpot’s own community threads are full of this exact case, with the built-in Form Submission trigger tried first, then a listener that still does nothing because it listens for the wrong generation’s message.
Diagnose first: four checks before you change anything
Do not rebuild the container yet. Four checks take five minutes and tell you which half of the setup is actually broken — the container half or the listener half.
| Check | What to look for | What it tells you |
|---|---|---|
| 1. Is the form embedded on your page? | Open the page and inspect it. An embedded form sits in an iframe on your domain. A bare link to meetings.hubspot.com or a HubSpot-hosted form page has no parent page at all. |
If there is no embed on your page, no GTM setup can track it — the booking has to happen on a page your container runs on. |
| 2. Which generation is the form? | In the browser console, type HubSpotFormsV4. An object means v4; undefined means a legacy form. |
Tells you which half of the listener should fire, and whether an old v3-only listener can ever work. |
| 3. Does Preview show the event after a submit? | Open GTM Preview, submit the form, and watch the event list on the left. Look for form_submission. |
If the event appears, the listener works and the problem is downstream — a tag, a trigger condition, or Consent Mode. If it never appears, the listener is missing or wrong. |
| 4. Is a listener tag even in the container? | In GTM, look for a Custom HTML tag that mentions hsFormCallback or hs-form-event. |
No listener means no push, which means no event for any tag to fire on — the most common starting position, and the one this guide fixes. |
If check 3 shows form_submission in Preview but GA4 still shows nothing, skip to the verification checklist — your problem is a tag, a variable or a consent setting, not the form. If the event never appears, work through the fix below.
The fix, step by step
The fix has two halves. The builder generates the container — the GA4, Google Ads and Meta tags, already wired to a Custom Event trigger for the HubSpot form submission event. The listener supplies the push that trigger is waiting for. Neither half works without the other: the container listens for an event nothing pushes, and a listener pushing an event no tag is wired to changes nothing. The recipe pages say this outright: the container “listens for it, it doesn’t generate it”.
Step 1 — Generate the container for the HubSpot form submission event
Open the builder and pick WordPress as the platform — HubSpot is not a platform in the builder, because the form lives on your WordPress page, so WordPress is the platform that owns the container. The WordPress hub lists every event the builder offers for the platform. Then pick Google Analytics 4, Google Ads and Meta as the tools, and HubSpot Form Submission as the event. Enter your own tracking IDs — the GA4 measurement ID, the Google Ads conversion ID and label, and the Meta pixel ID. The figures below walk through the flow with sample IDs only.







Step 2 — Import the container (Merge, never Overwrite)
In GTM, go to Admin → Import Container, choose the downloaded file, and pick Merge with Overwrite conflicting tags, triggers, and variables. Overwrite instead of Merge would wipe every tag already in the container. After importing, open the Triggers list and confirm the form submission trigger exists and is a Custom Event trigger listening for the HubSpot form submission event name. The figures below show the site’s own live container (Tag Manager Builder, GTM-5NF3RF2P), read-only, so you can see what the same pattern looks like once imported: one configuration tag, then event tags on the Custom Event trigger.




Step 3 — Add the form listener tag
This is the half the builder cannot generate, because it belongs to your page, not to the container template. Create a Custom HTML tag in GTM, set it to fire on All Pages (or limit it to the pages that carry HubSpot forms), and paste in this listener. It covers both form generations in one tag:
<script>
window.dataLayer = window.dataLayer || [];
// Listener for legacy HubSpot forms (v3)
window.addEventListener('message', function(event) {
if (event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') {
window.dataLayer.push({
event: 'form_submission',
form_id: event.data.id,
conversion_id: event.data.data.conversionId
});
}
});
// Listener for forms built in the updated editor (v4)
window.addEventListener('hs-form-event:on-submission:success', function(event) {
var hsform = HubspotFormsV4.getFormFromEvent(event);
if (hsform) {
window.dataLayer.push({
event: 'form_submission',
form_id: hsform.getFormId(),
conversion_id: hsform.getConversionId()
});
}
});
</script>
Two details decide whether this works. First, the event name pushed — form_submission — must match the event name the generated container’s trigger listens for, exactly. The message HubSpot sends (onFormSubmitted, or the v4 hs-form-event:on-submission:success) and the dataLayer event name are two different things; the listener translates one into the other, and a mismatch here is the single most common reason a listener “does nothing”. Second, fire on the success callback, not the submit callback. HubSpot announces the submit before it has finished processing it; a listener that fires on the earlier onFormSubmit message counts submissions that then fail. The code above listens for onFormSubmitted — after HubSpot confirms the submission worked.
One deliberate omission: the listener does not push the submitted field values. HubSpot’s message carries them, and it is tempting to pass them along — do not. They contain what the visitor typed, including their email address, and GA4 must never receive personally identifiable information. Use the values only through a separate, hashed route if you need them for Google Ads Enhanced Conversions, and never as GA4 event parameters.
Step 4 — Variables: tell tags which form was submitted
The listener pushes two values with every submission. Create a Data Layer Variable for each — form_id (the form’s GUID) and conversion_id (HubSpot’s ID for that single submission) — and attach form_id as a parameter on the GA4 tag. Then you can tell a quote-form lead from a newsletter signup in GA4, and you can add a condition to the trigger so only one form fires the conversion: fire the quote-form Google Ads conversion only when form_id equals that form’s GUID, so a feedback survey never counts as a lead. The conversion_id doubles as the Meta event ID, which is how you stop Meta counting the same lead twice when the browser pixel and a server event both report it.
Step 5 — Meetings: a second listener, because the form listener never sees them
If you also use HubSpot Meetings — the scheduler widget where a visitor picks a time and books a call — do not expect the form listener to catch it. The meetings embed is a different widget, and it announces a booking with a different message. Analytics Mania’s own meetings guide says this plainly: tracking already set up for HubSpot lead forms will not capture meeting bookings; you need a different setup. The booking message is a postMessage from the meetings iframe with meetingBookSucceeded set to true. Add a second Custom HTML tag with this listener:
<script>
window.dataLayer = window.dataLayer || [];
window.addEventListener('message', function(event) {
if (event.origin !== 'https://meetings.hubspot.com' && event.origin !== 'https://meetings-eu1.hubspot.com') {
return;
}
if (event.data.meetingBookSucceeded === true) {
window.dataLayer.push({
event: 'hubspot_meeting_success',
form_id: event.data.meetingsPayload ? event.data.meetingsPayload.formGuid : ''
});
}
});
</script>
The origin check matters: only trust messages from HubSpot’s meetings domains, so a message from any other iframe on the page cannot fake a booking. If your meeting link uses a custom domain, check for that origin as well — the message then comes from your domain, not HubSpot’s. The builder’s WordPress picker lists the HubSpot Form Submission event; it does not list a meetings event, so the meeting tags are added by hand: a Custom Event trigger for hubspot_meeting_success, a GA4 event tag sending the same event name, and a Google Ads conversion and a Meta Schedule event on that trigger. In GA4, mark hubspot_meeting_success as a key event, then import it into Google Ads as a conversion — booked meetings are the outcome your campaigns should learn from, and importing from GA4 keeps one definition of the conversion everywhere. Keep the two conversions separate: a form submission and a booked meeting are different outcomes, and firing the same conversion on both would double-count every visitor who does both.
One more HubSpot-specific detail, for the day the deal closes: store the Google click ID on the contact record — HubSpot captures gclid on forms when the tracking code is present, or you can add it as a hidden field. When that contact becomes a customer weeks later, you can upload the closed deal as an offline conversion against the original click, and bid on closed revenue instead of booked calls.
Step 6 — Google Ads and Meta: one trigger, three destinations
With the container imported and the listeners in place, the three destinations are already wired to the same trigger — that is the point of generating the container instead of building the tags by hand, and the same one-trigger pattern sits behind the WooCommerce purchase fix. The Google Ads HubSpot form submission recipe and the Meta HubSpot form submission recipe describe exactly what each tag sends. Check each destination rather than assuming it: in Google Ads, the conversion action should show recent activity after a test submission, and if you imported the conversion from GA4, confirm it is set as a primary conversion — a secondary conversion trains nothing. In Meta Events Manager, the Lead event should appear in Test Events with the conversion_id as its event ID; that shared ID is what lets Meta deduplicate the browser event against a server event reporting the same lead. For meetings, Meta’s standard event is Schedule, again with a unique event ID. If any destination stays silent while the others fire, the problem is that destination’s tag — its ID, its trigger condition, or its conversion setting — not the form, and the diagnosis table below is the fastest way to find it. The full catalogue of WordPress recipes is on the recipe index.
The other ways to track HubSpot — and when to use them
| Method | How it works | When to use it | Watch out for |
|---|---|---|---|
| Listener + generated container (this guide) | The listener catches HubSpot’s own success message and pushes form_submission; the generated container fires GA4, Google Ads and Meta on it. |
Embedded forms and meetings on your own pages — the recommended route. | The pushed event name must match the trigger exactly; v3 and v4 need different listeners. |
| Thank-you page redirect | Set the form to redirect to a thank-you page on your domain after submission, and count that page view as the conversion. | When you cannot add code to GTM, or as a backup alongside the listener. | Reloads and bookmarks over-count; add noindex to the page and keep it out of the sitemap. |
| HubSpot’s own reporting | HubSpot records every submission and booking in the CRM — lists, workflows and meeting links all see them. | For reporting inside HubSpot itself; it is where the lead already lives. | It does not feed GA4, Google Ads or Meta — your ad platforms still need the GTM route. |
| Pop-up forms | HubSpot pop-up forms render inside an iframe on another origin, with no submission message the parent page can reliably catch. | Do not rely on GTM for these. Switch to an embedded form, or use a thank-you redirect. | Click triggers on the pop-up’s button cannot see inside the iframe either. |
Common errors
| Error | Symptom | Fix |
|---|---|---|
| Event-name mismatch | The listener pushes hubspot-form-success (or form-submit) but the container’s trigger listens for form_submission. Preview shows the push; no tag fires. |
Make the pushed name and the trigger name identical. The HubSpot message name and the dataLayer event name are different things — the listener translates one into the other. |
| v3-only listener on a v4 form | Nothing fires at all, on a form built in the updated editor. | Use the combined listener from step 3, which covers both generations, and test with the console check from the diagnosis section. |
| Firing on the submit event, not the success event | Conversions counted for submissions that then failed validation or were never saved. | Fire conversions only on onFormSubmitted / hs-form-event:on-submission:success — after HubSpot confirms the submission. |
| Pop-up forms | No submission ever appears in Preview, whatever listener you paste in. | Pop-up forms have no reliable GTM route. Switch to an embedded form or a thank-you redirect. |
| Submitted values sent to GA4 | Emails or other personal data arriving as event parameters — a privacy violation, not a tracking win. | Never push field values to GA4. Use them only through a hashed Enhanced Conversions route. |
| Using the form listener for meetings | Meetings book fine; GA4 shows zero bookings. | Meetings need their own listener on meetingBookSucceeded (step 5). The form listener cannot see them. |
| Listener fires on the wrong pages | Forms on one page track; forms on another do not. | Fire the listener tag on All Pages, or check the page condition covers every page that carries a HubSpot form. |
| Import with Overwrite instead of Merge | Existing tags vanish from the container after import. | Always import with Merge and overwrite only conflicting tags, triggers and variables. |
Verification checklist
| Check | Pass looks like |
|---|---|
| GTM Preview, submit the form | form_submission appears in the event list, and the GA4, Google Ads and Meta tags all show as fired on it. |
| GA4 DebugView, submit the form | generate_lead arrives with the form_id parameter attached. |
| Google Ads, after a test submission | The conversion action shows recent activity; if imported from GA4, it is a primary conversion. |
| Meta Test Events, submit the form | A Lead event arrives with the conversion_id as its event ID. |
| GTM Preview, book a test meeting | hubspot_meeting_success appears, and the meeting tags fire on it. |
| GA4 reports, 24 hours later | generate_lead and hubspot_meeting_success appear in Events, with source and medium attached — and the counts match HubSpot’s own submission totals for the same day. |
That last check is the one that matters. A tag firing in Preview proves the wiring; matching HubSpot’s own totals the next day proves the tracking. If the numbers disagree, work backwards from the checklist — the row that fails names the broken link.
Frequently asked questions
Why doesn’t GTM’s Form Submission trigger work with HubSpot forms?
Because the trigger listens for the browser’s native submit event on your page, and a HubSpot submission happens inside an iframe on HubSpot’s domain. The submit event never crosses the iframe boundary, so the trigger has nothing to hear. The fix is a listener that catches HubSpot’s own submission message and turns it into a dataLayer event the trigger can match.
How do I know if my HubSpot form is v3 or v4?
Open the page, open the browser console and type HubSpotFormsV4. If it returns an object, your form was built in the updated forms editor (v4). If it returns undefined, it is a legacy form (v3). The listener in this guide covers both, so you do not need to choose — but the check tells you which half of the listener should be firing when you test.
My listener pushes events but GA4 shows nothing. Why?
Check three things in order: the event name pushed must match the trigger exactly (form_submission, not form-submit or hubspot-form-success); Consent Mode must not be holding the tag; and the measurement ID must be the right one — a single wrong character sends the data to a property nobody watches. If the event never appears in GTM Preview at all, the listener itself is the problem: wrong generation, wrong pages, or a pop-up form.
Can I track HubSpot pop-up forms with GTM?
Not reliably. Pop-up forms render inside a cross-origin iframe and do not send a submission message the parent page can catch, so no listener can see them. Switch to an embedded form on your own page, or set the form to redirect to a thank-you page on your domain and count that page view instead.
Do I need a different setup for HubSpot Meetings?
Yes. Meetings send a different message — meetingBookSucceeded — and the form listener never sees it. Add the second listener from step 5, create a Custom Event trigger for hubspot_meeting_success, and fire your GA4, Google Ads and Meta tags on it. Mark the event as a key event in GA4 and import it into Google Ads.
How do I track only one HubSpot form and ignore the rest?
Use the form_id the listener pushes. Create a Data Layer Variable for it, and add a condition to the trigger — for example, fire the quote-form conversion only when form_id equals that form’s GUID — so a feedback survey or newsletter signup never counts as a lead.