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?
Help with GTM trigger firing on the meeting form submit
解決
Hmmm...I don't see anything immediately apparent. HubSpot has since updated their software to allow for conversion tracking on the meetings tool directly, so maybe you can try that route.
Help with GTM trigger firing on the meeting form submit
解決
Hello,
Do you think this still works ?
Because I tried on this page : https://www.toopixel.swiss/contact and I can not find why that is not working.
Here is what I have done :
1- Create a Tag to load the Custom Event Listener on this page
2 - Create a Custom Event Trigger when someone books a meeting
3- Create a Tag for GA to count the Custom Events
sorry for this bad picture but as i am a new user i only can upload 1 picture and 1 link ...
Help with GTM trigger firing on the meeting form submit
解決
@JonWeidberg we made it (more my CTO than I to be honest), but in the end it works!
Tag-Trigger-Tag
first a tag : “custom listener” that will create an event (meeting created)
than the trigger will be fired on that event
and than GTM pass the event to GA through normal event flow
Does that make sense? am I clear enough? hope it helps
Help with GTM trigger firing on the meeting form submit
解決
You don’t want to trigger your conversion code on the forms “Button Click” as it can and will produce false positives (e.g: user clicks button and form does not submit due to invalid data but your conversion code fires anyways).
Instead, what I suggest is using a Form Submission listener setup as follows:
The trigger will fire when any hubspot form is submitted - you can change the trigger to only fire for a specific form by using the forms id="" attribute value and modifying your trigger fires on settings.
It will make sure that the trigger only fires if the form passes validation - (NOTE: I have seen a strange issue appearing with GTM form triggers and HubSpot forms that use inline messages instead of redirects for submit actions: "Form submission canceled because the form is not connected" - console warning with embedded forms, for now the only way to avoid that issue I have found is to not use the inline message option for the HubSpot forms)
Help with GTM trigger firing on the meeting form submit
解決
Thanks Derek. The issue here is that we are trying to add tracking to the meeting tool in Hubspot Sales Pro. It is different from the standard Hubspot forms. Instead of using the form builder, it uses an iFrame that is hosted on Hubspot’s domain, app.hubspot.com/meeting.
We are testing using this tool embedded in a landing page instead of a demo request form since a user could choose to set a time directly instead of the painful back and forth after a form submit. However, we need tracking for GA and conversion pixels.
Help with GTM trigger firing on the meeting form submit
解決
Hey @JonWeidberg, your question is right on target. Have you found a solution?
Does Anybody know how to have meeting form being recognizied as event/lead/anything that can be used as a conversion?
Help with GTM trigger firing on the meeting form submit
解決
Hi @Antoine_potloc, my only solution was to move on to other challenges with lower hanging fruit. I think this one needs development from Hubspot to move forward.
In GTM I then created a trigger “custom event” with event name “step 2”. This is used as a firing trigger for a tag that does whatever the goal is (GA event, FB pixel conversion tag, etc)
Help with GTM trigger firing on the meeting form submit
解決
Thanks @troelsfeodor, I see how that will work for forms, but how do you use it with the meeting tool which uses the following code instead of forms.create?
<!-- Start of Meetings Embed Script -->
<div class="meetings-iframe-container" data-src="https://app.hubspot.com/meetings/[n`ame]?embed=true"></div>
<script type="text/javascript" src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js"></script>
<!-- End of Meetings Embed Script -->
Help with GTM trigger firing on the meeting form submit
解決
I have the same issue. The onFormSubmit solution doesn’t work with GTM because of the way GTM renames the tracker dynamically which means it will not recognize the ga(‘send’…
So far I’ve come to the conclusion that we instead need to send data to the GTM datalayer via dataLayer.push. I’m still trying to figure out what the correct code for that looks like.
Let me know if you find a solution