I have Hubspot embedded form, and my colleagues don't use UTMs. Since I have the same LP for all ad platforms, my custom events listeners and ad platforms tags fire on any form submission. Is there a way I can identify the ad network from which the user has landing on the lp with GTM, GA4 and my other ad platform tags, without needing to change the trigger? Is there a way to customise my Hubspot custom code listener for identifying the ad platform?
Hubspot, by default, has an original source and latest source field that does this for you and tries to identify the traffic. I think there should be some level of tracking in the URL even if they are not adding UTMs (ie: google ads sends some tags, an email platform could add custom tagging, etc.). However, if they are truly blocking all tagging it could end up just showing as direct traffic to your site which isn't good and doesn't allow you to evaluate the traffic either in which case you really have no options.
Personally speaking I would raise these gaps to your team telling them that without collaborating on link tracking, that you won't be able to highlight the successes of their campaigns the way that you should and it could end up attributing the traffic to other sources. Or if you have to support a landing page version for every source that it will add time to the development of the campaign and could lead to their campaigns not launching on time because you will have to build and test different versions of the same page for them.
Thanks for the answer, but I have further realised that the issue might not be UTMs, but the referrer parameter, that Hubspot Lps do not sent to GTM debug. Let me explain:
I have Hubspot Lp with Hubspot embedded form ( no manual UTMs, but some Automatic URL append for the Linkedin campaings). I have setup a custom event listener for GTM, just like in the below link: https://codeandtonic.com/blog/how-to-track-hubspot-form-submits-in-google-analytics-with-google-tag-... This custom event + custom trigger work perfectly. I wanted to understand how would GAds tags + Linkedin tags and Facebook tags work with the same custom event trigger ( the one that pulls the form-name when the user successfuly submits their details). So I have created GA tags + Linkedin + Facebook tags that are triggered upon the submit of the form.
However, even though my LP is from insights.companyname.com all tags fire when the user completes the form submission proces.
My latest discovery in terms of this tags behaviour is the fact that even though I have appeneded the utms to the linkedin ad that was running, and I have went trough GTM debug, all tags fire, no matter the UTMS that are appended to the link.
So I would like to know, how I can make only the Linkedin tag fire /only the GAds / only the Facebook tags to fire, while keeping my form submit trigger.
I need to mention that through GTM I cannot track Hubspot embedded forms without custom HTML tag, which, I assume can be customised to understand where does the user come from. Like a source/medium parameter that should be pushed forward in such a way that my tags fire only on the right refferer (source/medium). Any help in order to customize this, either by event, by trigger or variables, would be amazing.
The problem with trying to do the source through GTM is that the source needs to be accessible via the data layer for GTM to reference it in a trigger. For instance, in your example if you wanted a different GTM Tag on different forms, you woud fire a trigger where the hs-form-guid is equal to a particular value. This is further complicated if your landing page could allow your visitor to visit other pages. Is your landing page contained, or could a visitor click a linkedin ad, view your landing pages, and then view other pages before submitting a form? If the latter, this could greatly complicate what you are trying to do.
If you are looking for session attribution, I would typically recommend in this instance, that instead of trying to fire a different Google Tag, that you instead add hidden fields to your forms to capture all of the custom values that you wish to retain. This data would be captured then with the form submission data in Hubspot. It could be possible with subsequent submissions that these values will be overwritten, but the submission data would remain the same if you exported or used for reports down the road.
If you need to fire other code depending on the source (beyond attribution), then you would need to add triggers that look for a form submit with referring data variables that you can define in Google Analytics. There is no rule that you cannot fire multiple events. For instance, I have LinkedIn conversion tracking and upon a form submit, I will also fire the LinkedIn conversion pixel on the form submit, as well as a Google Analytics event. The Hubspot form submit Tag is simply used to tell whether a form has been submitted so those other tags can be triggered if additional parameters are met. But I do not necessarily use the original form submit in any reporting. All of my reporting is based on the subsequent tags/triggers.
Thanks for the answer, indeed my lp is connected through different button clicks with the main domain. I am not sure how I can add the source/medium field as hidden in the embedded form.
Is there a way that the custom listener that I have found in the tutorial link could be appeneded to include dataLayer variables souch as HTTP refferer? What sort of field can I call from HB environment in such a way I can parce the values in my individual ad platform tags. It is rather sad, that that custom event listener for hubspot forms actually triggers on all button submit within the site. Earlier I was setting up in site search with GA4, and even then I had it triggered. Now I have amended this, but it's rather annoying. So let's say I am going to renounce the custom event trigger for Google Ads tags, FB tags and Linkedin tags. What would be your recommended way to identify the source of the user arriving on my LPs. Also, please note, that form submit / clicks / dom ready/ and CSS selector do not work with HP Lps and its embedded form. I am not sure if URL variable described in the below mode https://www.analyticsmania.com/post/url-variable-google-tag-manager/ would work with my current setup. What I mean, for future campaings, to ask my colleagues to set up utms for the Hubspot Landing pages, and I use the URL variables as triggers for each specific ad platform in such a way that it sends the data back to Linkedin, Facebook, Google Ads. What do you think?
The event listener works the way it is intended, I wouldn't say it's sad. It's also not developed by Hubspot it is an outside third party. The short of it is, the Hubspot form uses Javascript to put the form on your site, it's not actually on your page which is the reason this type of listener is required. If you want to trigger events based on a particular form for instance, you could create a subsequent tag on your GTM that looks at the hs-form-guid that is created from this script. I personally use this to tell me whether visitors are submitting forms that are top of funnel or bottom of funnel to help with reporting.
When it comes to form submits and tracking that data I typically use two a few things. First, I always append UTMs and use hidden field to capture that data on my pages. Second, I reference the original/latest source fields that are default to the Hubspot system. And lastly, I cross reference that with source data from my web analytics platform to look at the converting source it tracks and compare it with influencing sources. To get that conversion data to the analytics platform for a Hubspot LP, I would insert your data layer event manually into the thank you copy or on the thank you page as javascript which you can include via the Hubspot editor. This type of redundancy will help provide confidence in your reporting.
Thanks very much for your support. I have managed to have the right tags fire with the right UTM variable/Query, and thus, I should have everything in place.
Just a side note question related to this -> Will I be able to have those conversions sent to linkedin? If I have customised my insight tag (Linkedin) with custom event point?
Any info/source to further read into this, would me more than welcome 🙂
Yes - Linkedin unfortunately moved this recently so in the new view, if you click on Analyze --> Conversion Tracking from the left menu you can setup a conversion pixel/event to fire. I would set this up as a custom code tag that fires when your hubspot-form-success event fires. So basically they fire one after the other triggering the conversion in LinkedIn after your form success.
Hubspot, by default, has an original source and latest source field that does this for you and tries to identify the traffic. I think there should be some level of tracking in the URL even if they are not adding UTMs (ie: google ads sends some tags, an email platform could add custom tagging, etc.). However, if they are truly blocking all tagging it could end up just showing as direct traffic to your site which isn't good and doesn't allow you to evaluate the traffic either in which case you really have no options.
Personally speaking I would raise these gaps to your team telling them that without collaborating on link tracking, that you won't be able to highlight the successes of their campaigns the way that you should and it could end up attributing the traffic to other sources. Or if you have to support a landing page version for every source that it will add time to the development of the campaign and could lead to their campaigns not launching on time because you will have to build and test different versions of the same page for them.