<?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: Connect GA3 Tag to track form submission in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Connect-GA3-Tag-to-track-form-submission/m-p/1123936#M80960</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could usie Google Tag Manager to track HubSpot form submissions in Google Analytics....Google Tag Manager can pass those events to Google Analytics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Harsh&lt;BR /&gt;&lt;A href="https://farioconsulting.com" target="_blank" rel="noopener"&gt;Fario Consulting&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2025 16:41:53 GMT</pubDate>
    <dc:creator>FarioConsulting</dc:creator>
    <dc:date>2025-03-18T16:41:53Z</dc:date>
    <item>
      <title>Connect GA3 Tag to track form submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Connect-GA3-Tag-to-track-form-submission/m-p/1123868#M80955</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to track form submission from Google Analytics, and the HubSpot form is embedded in the tracked website. I wonder if anyone can advise me on how to do this. I tried this method, and it's not working. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Custom HTML tag with the Listener Code&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;script&lt;/SPAN&gt;&lt;SPAN&gt; type=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"text/javascript"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window.addEventListener(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;, function(event) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(event.data.type === &lt;/SPAN&gt;&lt;SPAN class=""&gt;'hsFormCallback'&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; event.data.eventName === &lt;/SPAN&gt;&lt;SPAN class=""&gt;'onFormSubmitted'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window.dataLayer.push({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;'event'&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;'hubspot-form-success'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;'hs-form-guid'&lt;/SPAN&gt;&lt;SPAN&gt;: 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;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 14:53:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Connect-GA3-Tag-to-track-form-submission/m-p/1123868#M80955</guid>
      <dc:creator>ALe48</dc:creator>
      <dc:date>2025-03-18T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connect GA3 Tag to track form submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Connect-GA3-Tag-to-track-form-submission/m-p/1123936#M80960</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could usie Google Tag Manager to track HubSpot form submissions in Google Analytics....Google Tag Manager can pass those events to Google Analytics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Harsh&lt;BR /&gt;&lt;A href="https://farioconsulting.com" target="_blank" rel="noopener"&gt;Fario Consulting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 16:41:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Connect-GA3-Tag-to-track-form-submission/m-p/1123936#M80960</guid>
      <dc:creator>FarioConsulting</dc:creator>
      <dc:date>2025-03-18T16:41:53Z</dc:date>
    </item>
  </channel>
</rss>

