<?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: Get HubSpot form field values using Google Tag Manager (GTM) in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/747171#M60746</link>
    <description>&lt;P&gt;HI everyone, I know I'm late to the party, however if you want to use GTM, I finally found a video where everything works.&amp;nbsp; &amp;nbsp;&lt;A href="https://youtu.be/xd-4G0VSb2Y" target="_blank"&gt;https://youtu.be/xd-4G0VSb2Y&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 03:05:23 GMT</pubDate>
    <dc:creator>JMeroney1</dc:creator>
    <dc:date>2023-01-26T03:05:23Z</dc:date>
    <item>
      <title>Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/680543#M55858</link>
      <description>&lt;P&gt;Im trying to obrtain a value from embedded HubSpot form on the website using GTM at the moment of form submission.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im using this basic script as form submit listener&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;window.addEventListener("message", function(event) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;if(event.data.type === 'hsFormCallback' &amp;amp;&amp;amp; event.data.eventName === 'onFormSubmitted') {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;&amp;nbsp; window.dataLayer.push({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;&amp;nbsp; &amp;nbsp; 'event': 'hubspot-form-success',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;&amp;nbsp; &amp;nbsp; 'hs-form-guid': event.data.id,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;});&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;}});&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3" color="#808080"&gt;&amp;lt;/script&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;I've seen several instances of this same question but none of the solutions work for me - or maybe those solutions are outdated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Google-Tag-Manager-Push-Form-Data-to-dataLayer/m-p/526052" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/Google-Tag-Manager-Push-Form-Data-to-dataLayer/m-p/526052&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/How-can-I-access-to-a-form-data-after-submission/td-p/636765" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/How-can-I-access-to-a-form-data-after-submission/td-p/636765&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/CMS-Development/Field-Value-on-Form-Submit/m-p/462974" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/CMS-Development/Field-Value-on-Form-Submit/m-p/462974&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:37:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/680543#M55858</guid>
      <dc:creator>RBRESK</dc:creator>
      <dc:date>2022-08-15T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/681074#M55896</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/434293"&gt;@RBRESK&lt;/a&gt;&amp;nbsp;Thanks for reaching out. I think GTM gives many folks nightmares &lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/426475"&gt;@coldrickjack&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/193060"&gt;@JBeatty&lt;/a&gt;&amp;nbsp; do you have any experience or troubleshooting next steps you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/434293"&gt;@RBRESK&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 16:35:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/681074#M55896</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-08-16T16:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/682109#M56000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/434293"&gt;@RBRESK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I explained in a reply to another thread (that you also listed), if this is the script you're using :&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That won't work because the content of the submitted form is available within the data array only on the "&lt;STRONG&gt;onFormSubmit&lt;/STRONG&gt;" event (and &lt;STRONG&gt;not&lt;/STRONG&gt; onFormsubmitted).&lt;BR /&gt;&lt;BR /&gt;Which means your script should include the condition event.data.eventName === 'onFormSubmit' like below :&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 === 'onFormSubmit') {
      window.dataLayer.push({
        'event': 'hubspot-form-success',
        'hs-form-guid': event.data.id,
        'email' : event.data[3].value;
      });
    }
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, the email was the fourth element of the form so the fourth element of the data array, hence the event.data[3].value, but you will have to adapt based on your own form.&lt;BR /&gt;&lt;BR /&gt;If this still doesn't work, please do send the url of the page you're trying to track so I can have a look and give you a more precise answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps !&lt;BR /&gt;If it does, please consider marking this answer as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 14:02:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/682109#M56000</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-08-18T14:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/682550#M56035</link>
      <description>&lt;P&gt;Thank you for the effort Ludwig,&lt;BR /&gt;&lt;BR /&gt;unfortunately your solution proposal doesn't sove the problem. I get success event, I get guid data, but doesn't send field data or that field element value from the array (in my case its also [3]).&lt;BR /&gt;&lt;BR /&gt;This is the URL.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://bit.ly/3pr6hHg" target="_blank"&gt;https://bit.ly/3pr6hHg&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:58:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/682550#M56035</guid>
      <dc:creator>RBRESK</dc:creator>
      <dc:date>2022-08-19T08:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/683125#M56092</link>
      <description>&lt;P&gt;The moment I add this line, that moment script stops working. This form listener script is deployed through GTM.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'email' : event.data[3].value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 09:50:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/683125#M56092</guid>
      <dc:creator>RBRESK</dc:creator>
      <dc:date>2022-08-21T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/683286#M56110</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/434293"&gt;@RBRESK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried using the listenner via the dev console on google chrome and it does work for me :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_0-1661154632885.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/73300i7D03170DC9107CCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="LMeert_0-1661154632885.png" alt="LMeert_0-1661154632885.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I've used the listenner to push on the dataLayer the whole event data array instead of just the email.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I think the safest way for you to fix this is to get the whole data array and then have a dataLayer variable within GTM that will get the email value :&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 === 'onFormSubmit') {
      window.dataLayer.push({
        'event': 'hubspot-form-success',
        'event-data' : event.data;
      });
    }
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps !&lt;BR /&gt;If it does, please consider marking this answer as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ps: sorry for the multiple tests submitted with my email,&amp;nbsp; I was testing things out.&lt;BR /&gt;Please delete every form submission from any email @mi4.fr&lt;BR /&gt;&lt;BR /&gt;Best,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 08:04:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/683286#M56110</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-08-22T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/684152#M56194</link>
      <description>&lt;P&gt;I need field [3] from the form which isn't email but value from dropdown. Could that be the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 18:32:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/684152#M56194</guid>
      <dc:creator>RBRESK</dc:creator>
      <dc:date>2022-08-23T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/684978#M56261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/434293"&gt;@RBRESK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to get the value from every field on the form.&lt;/P&gt;
&lt;P&gt;I've visited your page and executed the listenner script I mentionned previously and this is the dataLayer event received :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_0-1661417639848.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/73577iED9B8577196881CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="LMeert_0-1661417639848.png" alt="LMeert_0-1661417639848.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see the event-data contains every field, including iznos_kredita_u__, which had a value of 6000 in my case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I've just realized I made a typo in the script I included, there's an extra ";" after event.data, so here's the corrected and working script :&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 === 'onFormSubmit') {
      window.dataLayer.push({
        'event': 'hubspot-form-success',
        'event-data' : event.data
      });
    }
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps !&lt;BR /&gt;If it does, please consider marking this answer as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 08:56:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/684978#M56261</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-08-25T08:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/713146#M58369</link>
      <description>&lt;P&gt;Hi Ludwig,&lt;/P&gt;&lt;P&gt;This article is very helpful however i think the concern is that you are stipulating array 2 by writing&amp;nbsp;event.data[3].value with the presumption that this array will always be the same field, but if you have many forms it is often not.&lt;/P&gt;&lt;P&gt;What could we put in the listener or probably more aptly in a piece of custom javascript variable or a datalayer variable or a javascript variable (In GTM) that says when the name = email, pull value?&lt;BR /&gt;&lt;BR /&gt;I saw this:&amp;nbsp;$('input[name="email"]').val() in another thread but it didnt seem to work in the listener or as a varaible.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;That would be far more helpful and scalable.&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:16:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/713146#M58369</guid>
      <dc:creator>PathfinderM</dc:creator>
      <dc:date>2022-11-02T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/747171#M60746</link>
      <description>&lt;P&gt;HI everyone, I know I'm late to the party, however if you want to use GTM, I finally found a video where everything works.&amp;nbsp; &amp;nbsp;&lt;A href="https://youtu.be/xd-4G0VSb2Y" target="_blank"&gt;https://youtu.be/xd-4G0VSb2Y&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 03:05:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/747171#M60746</guid>
      <dc:creator>JMeroney1</dc:creator>
      <dc:date>2023-01-26T03:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/747919#M60812</link>
      <description>&lt;P&gt;This video only talks about pushing events to GA and pushing the Hubspot form ID.&lt;BR /&gt;Not quite the same as collecting the data entry entered into your form fields.&lt;BR /&gt;The trick (which took me ages to figure out) is to build the listener on the submit event to collect the field data and then you can pass it to the submitted event.&lt;BR /&gt;Our use case was that we wanted to see if we could push the data into Google Ads to do enhanced conversions as i work for Pathfinder Marketing, a digital marketing agency.&lt;BR /&gt;I have had a developer build a listener that does collect this data so it can be picked up by GTM and then used however you need to.&lt;BR /&gt;I dont know about how the moderation works on these forums as i dont typically post, so i dont know if i can add my email or say msg me or what, but if your interested - msg me and if im allowed i will add my email for those who are interested &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Hope that lil trick above helps all the people who are trying to code it out!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 10:01:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/747919#M60812</guid>
      <dc:creator>PathfinderM</dc:creator>
      <dc:date>2023-01-27T10:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/759276#M61595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing mate, your solution really helped me to overcome a very similar challenge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't mind, could you link me to some documentation on how to use the listenner via dev console for HubSpot forms?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 22:38:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/759276#M61595</guid>
      <dc:creator>Haccount</dc:creator>
      <dc:date>2023-02-21T22:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/844444#M67134</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I've found this thread while looking for a solution for our client - maybe you'll be able to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a form with a custom dropdown property with 3 options. What we would like to do is to have an Analytics Event that would fire each time the form is submitted and would save the dropdown value in Event Label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the past we managed to successfully set up a custom event in GTM that would fire each time a form is submitted and the Label value was the submission page. Do you have a clue what we could use as a parameter in Label so that it would pass the chosen dropdown field value? Would something like {{contact.&lt;EM&gt;internalname&lt;/EM&gt;}} work? (assuming &lt;EM&gt;internalname&lt;/EM&gt; is the internal name of the said field)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 13:04:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/844444#M67134</guid>
      <dc:creator>yasiooy</dc:creator>
      <dc:date>2023-09-04T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/844896#M67158</link>
      <description>&lt;P&gt;Hey yasiooy,&lt;BR /&gt;&lt;BR /&gt;If im understanding you message and images correctly your looking to grab form data and pass it through GTM into GA.&lt;BR /&gt;&lt;BR /&gt;What you need is a piece of javascript running in GTM to grab the form fields on submission retain that data until confirmation is fired and then pass that data into GTM on confirmation so you can push it into GA as a custom dimension (in your case an Event Label).&lt;BR /&gt;&lt;BR /&gt;It isnt as simple as picking the hs form field internal value - from my understanding.&lt;BR /&gt;I have created some custom javascript to grab form fields to pass it into GA before, feel free to DM me.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 12:12:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/844896#M67158</guid>
      <dc:creator>PathfinderM</dc:creator>
      <dc:date>2023-09-05T12:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/876281#M68892</link>
      <description>&lt;P&gt;Hi Ludwig - I am trying your solution to capture email and phone from form submissions. The data layer is picking up all the values from the submission, but I'm struggling to identify the right structure to pull the data layer variable name into a GTM variable.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The event-data looks like this:&lt;BR /&gt;event-data: {&lt;BR /&gt;id: "50d7a2f4-35af-43de-9477-2f9508307a07",&lt;BR /&gt;type: "hsFormCallback",&lt;BR /&gt;eventName: "onFormSubmit",&lt;BR /&gt;data: [&lt;BR /&gt;{name: "firstname", value: "test"},&lt;BR /&gt;{name: "lastname", value: "test"},&lt;BR /&gt;{name: "email", value: "email@email.com"},&lt;BR /&gt;{name: "mobilephone", value: "6155551212"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using event-data.data.email doesn't work to capture the value. Do you have any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 22:42:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/876281#M68892</guid>
      <dc:creator>jlanier</dc:creator>
      <dc:date>2023-11-07T22:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get HubSpot form field values using Google Tag Manager (GTM)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/909849#M70483</link>
      <description>&lt;P&gt;You can follow this article to&amp;nbsp;Track HubSpot Form Submissions with Google Tag Manager and Google Analytics&lt;/P&gt;&lt;P&gt;&lt;BR /&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;</description>
      <pubDate>Tue, 23 Jan 2024 05:25:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-HubSpot-form-field-values-using-Google-Tag-Manager-GTM/m-p/909849#M70483</guid>
      <dc:creator>imtiazprotik</dc:creator>
      <dc:date>2024-01-23T05:25:08Z</dc:date>
    </item>
  </channel>
</rss>

