<?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: Send events to Google Analytics from inline form in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/207239#M1748</link>
    <description>&lt;P&gt;No I hadn't. Thanks for pointing me in the right direction!&lt;BR /&gt;&lt;BR /&gt;For anyone else reading this, I'm posting the correct (in my case) answer here.&lt;BR /&gt;You can use the&amp;nbsp;&lt;EM&gt;hsvalidatedsubmit&amp;nbsp;&lt;/EM&gt;event that fires after the form is validated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I did this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;  $('body').on('hsvalidatedsubmit', '.hs-form', function (e) {
    ga('send', {
      hitType: 'X',
      eventCategory: 'Y',
      eventAction: 'Z',
    });
  });
  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Sep 2018 07:52:26 GMT</pubDate>
    <dc:creator>johdah</dc:creator>
    <dc:date>2018-09-17T07:52:26Z</dc:date>
    <item>
      <title>Send events to Google Analytics from inline form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/206922#M1729</link>
      <description>&lt;P&gt;Is there a way to send events to Google Analytics after submission of an inline form on HubSpot?&lt;BR /&gt;&lt;BR /&gt;On an external page, using the Javascript-snippet, there is the possibility to run whatever javascript you need, but when adding a form on the HubSpot platform, I see no option to send events or add custom code anywhere. Am I missing something or is this not possible?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:08:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/206922#M1729</guid>
      <dc:creator>johdah</dc:creator>
      <dc:date>2018-09-14T08:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Send events to Google Analytics from inline form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/207084#M1740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66380"&gt;@johdah&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you seen &lt;A href="https://integrate.hubspot.com/t/trigger-google-analytics-event-with-form-submission/5793" target="_blank"&gt;this resource&lt;/A&gt;? Let me know if that resolves the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Jenny&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 19:15:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/207084#M1740</guid>
      <dc:creator>jennysowyrda</dc:creator>
      <dc:date>2018-09-14T19:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Send events to Google Analytics from inline form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/207239#M1748</link>
      <description>&lt;P&gt;No I hadn't. Thanks for pointing me in the right direction!&lt;BR /&gt;&lt;BR /&gt;For anyone else reading this, I'm posting the correct (in my case) answer here.&lt;BR /&gt;You can use the&amp;nbsp;&lt;EM&gt;hsvalidatedsubmit&amp;nbsp;&lt;/EM&gt;event that fires after the form is validated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I did this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;  $('body').on('hsvalidatedsubmit', '.hs-form', function (e) {
    ga('send', {
      hitType: 'X',
      eventCategory: 'Y',
      eventAction: 'Z',
    });
  });
  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 07:52:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/207239#M1748</guid>
      <dc:creator>johdah</dc:creator>
      <dc:date>2018-09-17T07:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Send events to Google Analytics from inline form</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/339378#M4083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66380"&gt;@johdah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you add this to the form embed code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Petya&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 13:18:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Send-events-to-Google-Analytics-from-inline-form/m-p/339378#M4083</guid>
      <dc:creator>Petya</dc:creator>
      <dc:date>2020-05-15T13:18:12Z</dc:date>
    </item>
  </channel>
</rss>

