<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: New Forms dont Push Frm Submit to the Data Layer in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242879#M13523</link>
    <description>&lt;P&gt;Hey Tim,&lt;BR /&gt;&lt;BR /&gt;This is exactly the Code we tested it out ourselves&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Interestingly enough, we are trying to Insert it through GTM (Google Tag Manager)&amp;nbsp;&lt;BR /&gt;as our Forms are exported with "Advanced HTML" so we can properly style them in Web Environment (This is what our web team requested)&lt;BR /&gt;&lt;BR /&gt;So I am still thinking is there any way to insert this listener through Google Tag Manager&amp;nbsp;&lt;BR /&gt;Or should I insist CSS styling on the form to happen directly in Hubspot - instead of styling it in Web Environment&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks to all, much appreciated&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jan 2026 09:27:40 GMT</pubDate>
    <dc:creator>Andrey5rov</dc:creator>
    <dc:date>2026-01-19T09:27:40Z</dc:date>
    <item>
      <title>New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1241958#M13517</link>
      <description>&lt;P&gt;Hello Folks,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am experiencing issues with tracking the new Hubspot Forms which works differently to Legacy forms&lt;BR /&gt;&lt;BR /&gt;So in order to properly track the "form Submit" event, I need to create an event listener to the post message&lt;BR /&gt;&lt;BR /&gt;Anyone can help me with some javascript that could be utilized for that ?&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 15:10:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1241958#M13517</guid>
      <dc:creator>Andrey5rov</dc:creator>
      <dc:date>2026-01-15T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242013#M13518</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/519511"&gt;@Andrey5rov&lt;/a&gt;&lt;/SPAN&gt; &amp;nbsp;— thanks for posting this!&lt;/P&gt;
&lt;P&gt;I’ll bring in a few folks who are strong on &lt;STRONG&gt;new Forms, postMessage listeners, and event tracking&lt;/STRONG&gt;.&lt;BR /&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/781425"&gt;@Gaurav_Aggarwal&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/577159"&gt;@GiantFocal&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/472298"&gt;@Whathcock&lt;/a&gt;&lt;/SPAN&gt; &amp;nbsp;— have you implemented reliable JS tracking for the new HubSpot Forms submit event (via postMessage or another supported hook)? Any snippet or best-practice approach you can share would be awesome.&lt;/P&gt;
&lt;P&gt;Best, Victor&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 16:57:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242013#M13518</guid>
      <dc:creator>Victor_Becerra</dc:creator>
      <dc:date>2026-01-15T16:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242233#M13519</link>
      <description>&lt;P&gt;I am dealing with my Web Team but this is exactly what I Need. If I manage to create the Listener, I will post it here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 09:19:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242233#M13519</guid>
      <dc:creator>Andrey5rov</dc:creator>
      <dc:date>2026-01-16T09:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242301#M13520</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/519511"&gt;@Andrey5rov&lt;/a&gt;&amp;nbsp;the new forms editor has it's own set of event listeners, looks like submit isn't one of them:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api-reference/global-form-events/guide" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/global-form-events/guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the moment this currently isn't supported, it might be a good idea to post this to the &lt;A href="https://developers.hubspot.com/docs/api-reference/global-form-events/guide" target="_blank" rel="noopener"&gt;feature requests board&lt;/A&gt; to bring this up with the product team!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 13:01:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242301#M13520</guid>
      <dc:creator>TomM2</dc:creator>
      <dc:date>2026-01-16T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242489#M13522</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="74" data-end="310"&gt;Hey! Yeah, the newer HubSpot forms (especially the ones embedded via the HubSpot Forms API or using newer iframes) don’t trigger the same events as legacy forms, so it makes sense that your old tracking setup isn’t working the same way.&lt;/P&gt;
&lt;P data-start="74" data-end="310"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="312" data-end="517"&gt;To track form submissions, you’ll need to listen for the &lt;CODE data-start="369" data-end="378"&gt;message&lt;/CODE&gt; event that HubSpot sends from the iframe when a form is submitted. Here’s a basic example of JavaScript you can use to capture that event:&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl/main:top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;LI-CODE lang="javascript"&gt;window.addEventListener("message", function(event) {
  // Make sure it's coming from HubSpot
  if (event.data &amp;amp;&amp;amp; event.data.type === "hsFormCallback" &amp;amp;&amp;amp; event.data.eventName === "onFormSubmit") {
    console.log("HubSpot form submitted");
    
    // You can trigger any other tracking logic here
    // For example, pushing to GTM or Google Analytics
    // dataLayer.push({ event: "hubspotFormSubmit" });
  }
});
&lt;/LI-CODE&gt;
&lt;DIV class="contain-inline-size rounded-2xl corner-superellipse/1.1 relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl/main:top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"&gt;&lt;SPAN&gt;You can drop this script on the page where your embedded form lives. Just make sure your form is embedded using HubSpot's standard embed code (not as raw HTML), since this message event comes from the iframe.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="1163" data-end="1319" data-is-last-node="" data-is-only-node=""&gt;Let me know if you’re trying to do something specific with the submission; like fire a GA4 event or trigger something in GTM.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 21:04:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242489#M13522</guid>
      <dc:creator>tjones</dc:creator>
      <dc:date>2026-01-16T21:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242879#M13523</link>
      <description>&lt;P&gt;Hey Tim,&lt;BR /&gt;&lt;BR /&gt;This is exactly the Code we tested it out ourselves&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Interestingly enough, we are trying to Insert it through GTM (Google Tag Manager)&amp;nbsp;&lt;BR /&gt;as our Forms are exported with "Advanced HTML" so we can properly style them in Web Environment (This is what our web team requested)&lt;BR /&gt;&lt;BR /&gt;So I am still thinking is there any way to insert this listener through Google Tag Manager&amp;nbsp;&lt;BR /&gt;Or should I insist CSS styling on the form to happen directly in Hubspot - instead of styling it in Web Environment&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks to all, much appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 09:27:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1242879#M13523</guid>
      <dc:creator>Andrey5rov</dc:creator>
      <dc:date>2026-01-19T09:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1246994#M13548</link>
      <description>&lt;P&gt;I'm catching up here. I need to add java script to my site to have my G4 track these new forms? I'm having to recreate all of my forms since they are no longer supported and I don't want to not do them right and find out I have no data. I thought the idea of Hubspot was to lessen the need for programming? What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 22:38:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1246994#M13548</guid>
      <dc:creator>sberry11</dc:creator>
      <dc:date>2026-01-30T22:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1255345#M13597</link>
      <description>&lt;P&gt;Is there any progress here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen a lot of complaints about the new forms, including on our account. We're experiencing the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 04:26:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1255345#M13597</guid>
      <dc:creator>tugravci</dc:creator>
      <dc:date>2026-03-03T04:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: New Forms dont Push Frm Submit to the Data Layer</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1255816#M13600</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1048433"&gt;@tugravci&lt;/a&gt;&lt;/SPAN&gt; and welcome, we are so glad you are here!&lt;BR /&gt;&lt;BR /&gt;Thanks for reaching out to the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;For &lt;A href="https://developers.hubspot.com/docs/cms/start-building/features/forms/forms" target="_blank" rel="noopener"&gt;new forms&lt;/A&gt; created with the updated forms editor, you can easily track form events using window.addEventListener with HubSpot’s global form events.&lt;BR /&gt;&lt;BR /&gt;Here’s a quick example for capturing successful form submissions:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;window.addEventListener("hs-form-event:on-submission:success", event =&amp;gt; {&lt;BR /&gt;&amp;nbsp;const { formId, instanceId } = event.detail;&lt;BR /&gt;&amp;nbsp;console.log("Form submitted!", formId);&lt;BR /&gt;&amp;nbsp;// Add your tracking logic here&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;Other helpful events you can use include:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hs-form-event:on-ready – when the form has finished loading&lt;BR /&gt;hs-form-event:on-submission:failed – when a submission fails&lt;BR /&gt;hs-form-event:on-interaction:navigate – for multi-step form navigation&lt;BR /&gt;&lt;BR /&gt;Pro tip: For best results, define any on-ready listeners before your form embed code runs to ensure everything’s captured smoothly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you’d like to access form data after a submission, you can leverage HubSpotFormsV4 like this:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;window.addEventListener("hs-form-event:on-submission:success", event =&amp;gt; {&lt;BR /&gt;&amp;nbsp;const form = HubSpotFormsV4.getFormFromEvent(event);&lt;BR /&gt;&amp;nbsp;const conversionId = form.getConversionId();&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;You’ll find more details on the &lt;A href="https://developers.hubspot.com/docs/api-reference/global-form-events/guide" target="_blank" rel="noopener"&gt;Global form events&lt;/A&gt; documentation page.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;BR /&gt;Bérangère&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;This post was created with the assistance of AI tools&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 11:31:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/New-Forms-dont-Push-Frm-Submit-to-the-Data-Layer/m-p/1255816#M13600</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2026-03-04T11:31:10Z</dc:date>
    </item>
  </channel>
</rss>

