GTM critic my setup and other questions
Hey people,
I'm newish to GTM but have done plenty of in-hand events now for some time, so its been mostly self learning, I would like to know any opinions on the setup and other general questions I would love to hear some answers or thoughts on.
1.- I share with you the setup I currently have for hubspot form submission tracking below. I have had some inconsistencies between the form submission number from GTM to GA4, looking at it with data studio.
This is the HS form listener:
<script type="text/javascript">
window.addEventListener("hs-form-event:on-submission:success", function(event) {
window.__hs_form_submitted = true;
try {
var formGuid = HubSpotFormsV4.getFormFromEvent(event).getFormId();
window.dataLayer.push({
'event': 'hubspot_form_success',
'hs-form-guid': formGuid
});
} catch(e) {
window.dataLayer.push({
'event': 'hubspot_form_success',
'hs-form-guid': 'unknown'
});
}
});
</script>
My event generate_lead: basically triggers in a custom event.
Custom event: hubspot_form_success // this trigger fires on: All custom Events.
I basically take all form submissions and with parameters i distinguish them by form names or types.
I also added, the parameter: transport_type beacon to reduce the possible issues with navegation and missing those form submissions.
In my mind the difference between GA4 Form submissions vs the pure number showed by Hubspot, can be affected by:
- Tracking: I switched it to all form submissions so that there is no form missing.
- Data filters: I have yet to completely check if this could be an issue, its pending on my tasks
- Ad blockers: nothing i can do to mitigate this
- Listener: I share it with you in case theres anything else i could do to improve it, i even added the "catch" and "try" to mitigate listener failing?
- User's closing the page too quickly: mitigated by the transport type beacon thing.
- Cookies: I have checked and even if people dont accept the analytics cookies the event in preview mode of hs form success is still triggered so i dont see a problem
More than welcome for any critics :)
2.- My forms are HS forms V4 so I think now I can not access lets say data field values when a form is submitted, but before with V3 forms, did you guys did any workaround in terms of GDPR? My understanding is we could not send it to ga4 given that would be personal information for 3rd party companies
3.- How would you go on to stablish dashboards or correct tracking from web to CRM, because i was thinking of using the previous personal information as a match key for ga4 web vs crm and see things like OI. But I'm not sure if there are better ideas here, as I mentioned, I'm a bit new in this digital world.
4.- Before there was an individual who configured server side tracking, anyone knows where i can read to better understand this as I have absolutely no idea and now theres no one I can ask. The only thing regarding this in my mind is that some data does not pass to ga4 so its more data compliant and apparently more clear in traffic sources and some metrics.
Any comments on any of the questions is much appreciated, I find tracking to be so interesting but a bit challenging for me to learn and implement as there are many errors in my experience setting things up :) thanks people!