<?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 Tracking Hubspot forms in Google Analytics 4 for external web pages in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416676#M5502</link>
    <description>&lt;P&gt;Hello, does anyone have a solution for how to track Hubspot forms in Google Analytics 4? Forms are implemented on external web pages (not Hubspot pages).&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 07:43:27 GMT</pubDate>
    <dc:creator>JGajic</dc:creator>
    <dc:date>2021-03-11T07:43:27Z</dc:date>
    <item>
      <title>Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416676#M5502</link>
      <description>&lt;P&gt;Hello, does anyone have a solution for how to track Hubspot forms in Google Analytics 4? Forms are implemented on external web pages (not Hubspot pages).&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:43:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416676#M5502</guid>
      <dc:creator>JGajic</dc:creator>
      <dc:date>2021-03-11T07:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416905#M5512</link>
      <description>&lt;P&gt;I just use the Hubspot form listener. This just pushes an event to the data layer that I would use to trigger GTM to capture the custom event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;&amp;lt;script type="text/javascript"&amp;gt;
  window.addEventListener("message", function(event) {
    if(event.data.type === 'hsFormCallback' &amp;amp;&amp;amp; event.data.eventName === 'onFormSubmitted') {
      window.dataLayer.push({
        'event': 'hubspot-form-success',
        'hs-form-guid': event.data.id
      });
    }
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 00:44:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416905#M5512</guid>
      <dc:creator>Ben_M</dc:creator>
      <dc:date>2021-03-11T00:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416953#M5513</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, as I understood, I need to add this code to GTM? Or? If there is any tutorial on how to implement this code, could you send it to me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 08:10:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/416953#M5513</guid>
      <dc:creator>JGajic</dc:creator>
      <dc:date>2021-03-11T08:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/417278#M5520</link>
      <description>&lt;P&gt;There's 3 parts to this. &amp;nbsp;Setting up that script as Custom HTML is part 1. Part 2 is setting up a trigger in GTM to listen for that event. And then step 3 is to create a Tag for your GA4 event to listen for that event trigger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you tracking your form submissions today in Universal Analytics? &amp;nbsp;Your forms could be getting tracked this same way through UA, but Events are just setup differently in GA4. &amp;nbsp;So in UA you would have a category, action, and label to your events and in GA4 they are more flexible to be configured to your own parameters but those parameters have to be setup by you as many parts of this do not automatically populate. &amp;nbsp;If this already exists, you don't need to rebuild everything different for GA4, just replace the parts that are no longer relevant. &amp;nbsp;If you are not using this method today for event tracking, and are using something different we may be able to tie into that to prevent a disconnect from your old data to your new.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 20:56:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/417278#M5520</guid>
      <dc:creator>Ben_M</dc:creator>
      <dc:date>2021-03-11T20:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/512383#M6590</link>
      <description>&lt;P&gt;How does the GA4 event tag look in GTM? Do you have an example? Especially the Event Parameters are not clear to me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 11:56:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/512383#M6590</guid>
      <dc:creator>birdman</dc:creator>
      <dc:date>2021-10-19T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513583#M6607</link>
      <description>&lt;P&gt;Ok. I got it working. In the screenshot you see how I implemented this. Likely need to adjust for your own environment. {{LT - FormName}} is a lookup table with HubSpot formIDs.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-21 at 10.04.00.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/52434i2BE73D44BDD7D12F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-21 at 10.04.00.png" alt="Screen Shot 2021-10-21 at 10.04.00.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-21 at 10.05.11.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/52435i87E44566FE7F1730/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-21 at 10.05.11.png" alt="Screen Shot 2021-10-21 at 10.05.11.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-21 at 10.05.25.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/52436iAAE3297E20544DE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-21 at 10.05.25.png" alt="Screen Shot 2021-10-21 at 10.05.25.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-21 at 10.05.39.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/52437iB87F593AD96DEB26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-21 at 10.05.39.png" alt="Screen Shot 2021-10-21 at 10.05.39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 08:08:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513583#M6607</guid>
      <dc:creator>birdman</dc:creator>
      <dc:date>2021-10-21T08:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513694#M6611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/100896"&gt;@birdman&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've managed to create the tags, trigger and variables needed, which are working correctly, but now I'd like to know which forms are submitted, and it seems that you created LT - FormName variable in order to get this information. How did you manage to create it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Camille&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:22:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513694#M6611</guid>
      <dc:creator>CamiG</dc:creator>
      <dc:date>2021-10-21T11:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513699#M6612</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/160579"&gt;@CamiG&lt;/a&gt;&amp;nbsp;It's a variable of type LookUp table. Input side the HubSpot Form ID. Output side a name you can assign. For example: "9373475934759379573952" -&amp;gt; "Newsletter signup". I assume you know how to find the Form ID.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:31:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513699#M6612</guid>
      <dc:creator>birdman</dc:creator>
      <dc:date>2021-10-21T11:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513701#M6613</link>
      <description>&lt;P&gt;Yes indeed, thank you very much! I have added&amp;nbsp;{{Form ID}} as the Input Variable as well.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:38:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/513701#M6613</guid>
      <dc:creator>CamiG</dc:creator>
      <dc:date>2021-10-21T11:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/565445#M6995</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Super easy method&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://codeandtonic.com/blog/track-hubspot-forms-with-google-analytics-in-2-minutes" target="_blank" rel="noopener"&gt;This tutorial&lt;/A&gt; is the quickest way. I'd recommend Tag Manager but for most people it's too complex.&lt;BR /&gt;&lt;A title="Track Hubspot forms with Google analytics. No Google Tag Manager! " href="https://codeandtonic.com/blog/track-hubspot-forms-with-google-analytics-in-2-minutes" target="_blank" rel="noopener"&gt;Track Hubspot forms with Google analytics. No Google Tag Manager!&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 13:39:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/565445#M6995</guid>
      <dc:creator>codeandtonichq</dc:creator>
      <dc:date>2022-01-29T13:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/566136#M7000</link>
      <description>&lt;P&gt;Looking back to your previous post, your setup appears to be correct. &amp;nbsp;If the event parameters are not working, then you probably need to review your GA4 Custom Definitions to ensure that your custom dimensions are named and that their scope matches the scope of the form submission (event).&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 12:58:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/566136#M7000</guid>
      <dc:creator>Ben_M</dc:creator>
      <dc:date>2022-01-31T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/579238#M7100</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/100896"&gt;@birdman&lt;/a&gt;&amp;nbsp;thanks for these instructions - super helpful. However I can't seem to get it working. I'm stuck at the same point as CamiG - creating the LookUp table. I've created the LT variable as you described but think the Input Variable value might be wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/160579"&gt;@CamiG&lt;/a&gt;&amp;nbsp;did using the value {{Form ID}} work for you? Or did you need to create a new value/variable specifically for HS form IDs? When I go to preview mode in GTM I can't see the event firing on form submission.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 17:36:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/579238#M7100</guid>
      <dc:creator>Shep</dc:creator>
      <dc:date>2022-02-18T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/579555#M7104</link>
      <description>&lt;P&gt;&lt;STRONG&gt;TRACKING FORM NAMES - EASIER METHOD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can't get the name of the form. But if we listen for&amp;nbsp;"onFormSubmit" instead of the&amp;nbsp;'onFormSubmitted' we can get all the fields user has filled. It seems to be a superior way. &lt;A href="https://youtu.be/8dbryeqcIHI?t=110" target="_blank" rel="noopener"&gt;We can then create a hidden field and add the form name as the default value&lt;/A&gt; and track the form name without a lookup table in Google tag Manager.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://codeandtonic.com/blog/how-to-track-hubspot-form-submits-in-google-analytics-with-google-tag-manager-2022" target="_blank" rel="noopener"&gt;Tutorial here (not yet GA4 version but 98% the same)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 12:42:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/579555#M7104</guid>
      <dc:creator>codeandtonichq</dc:creator>
      <dc:date>2022-02-19T12:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/778015#M9107</link>
      <description>&lt;P&gt;This tutorial worked for us and is very straight forward with all above steps, hopefully, can help someone here too: &lt;A href="https://www.youtube.com/watch?v=xd-4G0VSb2Y" target="_blank"&gt;https://www.youtube.com/watch?v=xd-4G0VSb2Y&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 18:09:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/778015#M9107</guid>
      <dc:creator>jahlo</dc:creator>
      <dc:date>2023-04-04T18:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/778067#M9110</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/548471"&gt;@jahlo&lt;/a&gt;&amp;nbsp;thank you for sharing this tutorial with us!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly,&lt;/P&gt;
&lt;P&gt;Pam&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 19:48:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/778067#M9110</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2023-04-04T19:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/835581#M9911</link>
      <description>&lt;P&gt;Thanks! It definitely works but you need the form to be embedded in any of your site's pages&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 18:49:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/835581#M9911</guid>
      <dc:creator>aljawo</dc:creator>
      <dc:date>2023-08-16T18:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/851956#M10126</link>
      <description>&lt;P&gt;Hi, it's actually quite simple. I made a video tutorial on it here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=LA3t1jbCY3M" target="_blank"&gt;https://www.youtube.com/watch?v=LA3t1jbCY3M&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 21:49:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/851956#M10126</guid>
      <dc:creator>Revvmarketing</dc:creator>
      <dc:date>2023-09-19T21:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/1133979#M12746</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I’m using a HubSpot form embedded in WordPress, and I want to track the event sent to GA4 via GTM, but I'm having trouble because it's not working.&lt;BR /&gt;I followed the same method as shown in this YouTube video: &lt;A href="https://www.youtube.com/watch?v=xd-4G0VSb2Y" target="_blank"&gt;https://www.youtube.com/watch?v=xd-4G0VSb2Y&lt;/A&gt;, but the tracking doesn’t work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has this HTML snippet stopped working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript"&amp;gt; 
  window.addEventListener("message", function(event) {
    if(event.data.type === 'hsFormCallback' &amp;amp;&amp;amp; event.data.eventName === 'onFormSubmitted') {
      window.dataLayer.push({
        'event': 'hubspot-form-success',
        'hs-form-guid': event.data.id
      });
    }
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Apr 2025 08:17:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/1133979#M12746</guid>
      <dc:creator>agift112454</dc:creator>
      <dc:date>2025-04-09T08:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Hubspot forms in Google Analytics 4 for external web pages</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/1136069#M12774</link>
      <description>&lt;P&gt;I was able to resolve this issue myself. With the old HubSpot form, I was able to make the conversion event trigger properly.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 14:18:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Tracking-Hubspot-forms-in-Google-Analytics-4-for-external-web/m-p/1136069#M12774</guid>
      <dc:creator>agift112454</dc:creator>
      <dc:date>2025-04-14T14:18:02Z</dc:date>
    </item>
  </channel>
</rss>

