APIs & Integrations

Not applicable

Help with GTM trigger firing on the meeting form submit

Hello! We’re currenting using the Hubspot meeting form to have users signup for demos with our service. We’d like to track ‘conversions’ or essentially form submissions. I’m having trouble getting GTM setup to recognize the form submission.

I’ve tried having a GTM trigger recognize the click_class of the ‘Confirm’ button, used the form class, no luck. Any suggestions? Seems like this is compounded by the fact that the ‘Confirm’ button doesn’t highlight until the form is completely filled out.

Any suggestions or thoughts, I’d appreciate it! Read the GTM docs and everything, feel like i’m close, just can’t get the trigger to fire on the form submission.


Additionally, read some more docs and have the following embedded meeting code in my landing page. Trying to get the push to a GA event working, any help? :slight_smile:

Landing page code:

<!-- Start of Meetings Embed Script -->`
    <div class="meetings-iframe-container" data-src="https://app.hubspot.com/meetings/dan58?embed=true"></div>
    <script type="text/javascript" src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js">


    hbspt.forms.create({
          portalId: '2098073',
          formId: 'DEMO',
          onFormSubmit: function($form) {
              ga('send', {
                hitType: 'event',
                eventCategory: 'DEMO',
                eventAction: 'DEMOSUBMIT',
                eventLabel: 'Demo Page'
              });
          } 
    });


</script>
  <!-- End of Meetings Embed Script -->

http://try.fitli.com/demo-signup-full-gtmtest/

21 Replies 21
Not applicable

Help with GTM trigger firing on the meeting form submit

Ahh that makes a lot of sense. Seems like everything I’m doing to try and
send a GA event just isn’t being recognized. I tried out a few datalayer
push code variations, but either i’m not correct with the syntax or don’t
know what I’m doing. A bit of both. :slight_smile: Thx for the reply.

0 Upvotes