<?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: Unable to track form submission in GTM for Hubspot form in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1155037#M12913</link>
    <description>&lt;P&gt;Thanks for replying. The link you provided suggested the same method with the one I mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the below HTML tag. However, there was no '&lt;SPAN&gt;hubspot-form-success' event pushed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window.addEventListener("message", function(event) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(event.data.type === 'hsFormCallback' &amp;amp;&amp;amp; event.data.eventName === 'onFormSubmitted') {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window.dataLayer.push({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'event': 'hubspot-form-success',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'hs-form-guid': event.data.id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Would it be possible that the way I embedded the form causes this to not work?&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 07:13:45 GMT</pubDate>
    <dc:creator>TTran33</dc:creator>
    <dc:date>2025-05-21T07:13:45Z</dc:date>
    <item>
      <title>Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154665#M12904</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to track form submissions of a Hubspot form embedded on my Wordpress website, but it doesn't work. I can't seem to find an official document about this from Hubspot. Could you please let me know how can I set this up correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the form being embedded to my website:&lt;/P&gt;&lt;P&gt;&amp;lt;div class="custom-hs-form"&amp;gt;&amp;lt;script src="&lt;A href="https://js.hsforms.net/forms/embed/47139258.js" target="_blank"&gt;https://js.hsforms.net/forms/embed/47139258.js&lt;/A&gt;" defer&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;div class="hs-form-frame" data-region="na1" data-form-id="70988fc1-c644-45a8-9c0d-9c148f4ceb52" data-portal-id="47139258"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 11:46:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154665#M12904</guid>
      <dc:creator>TTran33</dc:creator>
      <dc:date>2025-05-20T11:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154709#M12905</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some questions:&lt;/P&gt;
&lt;P&gt;What do you mean that you try to track it in GTM? As GTM is more like a middle man towards other software.&lt;BR /&gt;&lt;BR /&gt;I think this topic should help you out with an accepted solution:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/Reporting-Analytics/Tracking-forms-in-GTM/m-p/646263" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/Reporting-Analytics/Tracking-forms-in-GTM/m-p/646263&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:27:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154709#M12905</guid>
      <dc:creator>Sjardo</dc:creator>
      <dc:date>2025-05-20T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154711#M12906</link>
      <description>&lt;P&gt;Have you tried creating a custom event in GTM to track the form submissions? You’ll also need to set up a GA4 event tag for it. Just checking if you've already tried this.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:28:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154711#M12906</guid>
      <dc:creator>VPathania</dc:creator>
      <dc:date>2025-05-20T13:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154713#M12907</link>
      <description>&lt;P&gt;I mean I tried to set up conversion tracking with Google Tag Manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean the link provided in the topic might help (&lt;A href="https://nettlesnet.com/track-hubspot-forms-with-google-tag-manager-analytics/" target="_blank"&gt;https://nettlesnet.com/track-hubspot-forms-with-google-tag-manager-analytics/&lt;/A&gt;), I actually followed that instruction but it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying to my question. Please let me know if you need any further clarification from me.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:31:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154713#M12907</guid>
      <dc:creator>TTran33</dc:creator>
      <dc:date>2025-05-20T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154775#M12910</link>
      <description>&lt;P&gt;The above shared link is not accessible to me. But, below links contain information on this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://fizzypop.nz/digital-marketing-insights/track-hubspot-form-submissions-with-google-tag-manager-and-analytics/" target="_blank"&gt;https://fizzypop.nz/digital-marketing-insights/track-hubspot-form-submissions-with-google-tag-manager-and-analytics/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.markestac.com/blog/hubspot-form-tracking-gtm-ga4" target="_blank"&gt;https://www.markestac.com/blog/hubspot-form-tracking-gtm-ga4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 15:13:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1154775#M12910</guid>
      <dc:creator>VPathania</dc:creator>
      <dc:date>2025-05-20T15:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1155037#M12913</link>
      <description>&lt;P&gt;Thanks for replying. The link you provided suggested the same method with the one I mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the below HTML tag. However, there was no '&lt;SPAN&gt;hubspot-form-success' event pushed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window.addEventListener("message", function(event) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(event.data.type === 'hsFormCallback' &amp;amp;&amp;amp; event.data.eventName === 'onFormSubmitted') {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window.dataLayer.push({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'event': 'hubspot-form-success',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'hs-form-guid': event.data.id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Would it be possible that the way I embedded the form causes this to not work?&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 07:13:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1155037#M12913</guid>
      <dc:creator>TTran33</dc:creator>
      <dc:date>2025-05-21T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to track form submission in GTM for Hubspot form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1169043#M13013</link>
      <description>&lt;P&gt;Hello, did you manage to find a solution? I have the same problem&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 11:36:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Unable-to-track-form-submission-in-GTM-for-Hubspot-form/m-p/1169043#M13013</guid>
      <dc:creator>labriana</dc:creator>
      <dc:date>2025-06-25T11:36:23Z</dc:date>
    </item>
  </channel>
</rss>

