So we have multiple HubSpot landing pages where paid campaigns are run by agencies through their ad accounts. I want to install the Tag Manager on these landing pages which are hosted in HubSpot.
So do I need to create multiple tag Manager account for each of the landing pages? How should I install GTM so that on it. Would be great if someone can help me on it.
Also, for GA4 what should I do, do I need to create multiple GA4 for each landing pages?
Yes, I would create a new GTM account and that GTM code would live on all 3 landing pages. You can send your GA4 from GTM or you can add GA4 directly to the template. Once GTM is on all 3 landing pages, you can set up your triggers and associated tags on the GTM side.
Using Google Tag Manager on HubSpot Landing Pages:
Single GTM Account: You do not need to create multiple GTM accounts for each landing page. A single GTM account can manage tags for all your HubSpot landing pages.
Installing GTM on HubSpot:
Go to your HubSpot account and navigate to Settings > Website > Pages > Templates.
Add the GTM container code (JavaScript snippet) in the header or body section of your website's master template, ensuring it loads across all pages.
If you need GTM to run only on specific landing pages, create a condition in GTM to load tags based on URL patterns.
GA4 Integration:
Single GA4 Property: Like GTM, you do not need multiple GA4 properties for each landing page. Create a single GA4 property to track all your pages.
Tag Setup in GTM:
In GTM, create a new tag for GA4.
Use the GA4 Configuration tag and set up the measurement ID from your GA4 property.
Use triggers to define where the tag fires (e.g., on all pages or specific URLs).
Setting Up Retargeting:
Use GTM to add remarketing tags (e.g., Google Ads Remarketing).
In GTM, configure triggers for pages where you want to run retargeting campaigns.
For dynamic retargeting, pass relevant page data (e.g., user behavior) to the tags.
Additional Tips:
Test Your Setup: Use the GTM preview mode and GA4 debug view to verify data collection and tag firing.
Custom Tags: For agency-specific needs, consider creating folders in GTM to organize tags by campaign or client.
HubSpot Integration: Ensure HubSpot tracking and analytics are not conflicting with GTM or GA4 tags.
By following this setup, you’ll have a unified system for managing GTM and GA4 across all landing pages while enabling robust retargeting capabilities.
If the tags you're deploying from Google Tag Manager are in one account, you should be able to manage using one one tag for all templates and then managing what tag is triggered in GTM, not HubSpot.
For you GA4 question, it really depends on how you want to report the data. Again, in theory you could just have 1 GA4 but you break down the report based on landing page URL. Alternatively, if you deploy your GA4 script from GTM, you could send different GA4 account scripts per landing page, similar to the above.
There are multiple ways to accomplish what you're trying to do. With more specifics, my response may be different, but from your original note, the above is how I would handle this.
Josh
Did this post help solve your problem? If so, please mark it as a solution.
Josh Curcio HubSpot support and inbound marketing for OEMs, contract manufacturers, and industrial suppliers. HubSpot Diamond Partner & HubSpot Certified Trainer
So I have three landing pages hosted in HubSpot and none of them has GA4 and GTM on it. So what's the best way I should go for?
I have GTM account but those are being used for different websites. So should I create new GTM & GA4 for HubSpot landing pages? Can you please guide me
Yes, I would create a new GTM account and that GTM code would live on all 3 landing pages. You can send your GA4 from GTM or you can add GA4 directly to the template. Once GTM is on all 3 landing pages, you can set up your triggers and associated tags on the GTM side.
So while creating new tag Manager account what should be container I should be using. HubSpot landing pages are hosted on subdomains. So the actual three pages I have is,
abc.xyz.com/landingpage1
abc.xyz.com/landingpage2
abc.xyz.com/landingpage3
Our main domain xyz.com website is on WordPress and it has already GA4 and GTM so for these three landing pages I have created new GTM account. Please help me what container should I add and after adding it where do I need to copy the GTM code.
Also should I create new GA4 for these landing pages or create separate GA4 for landing pages.
Sorry for too many questions but really need help.