*Note from the moderator: This content appears to be created with the help of AI tools and might be of low relevance or could contain incorrect information. We recommend fact-checking the content. Please use AI responsibly going forward (see Community Guidelines).
Yes, adding both the GA4 Measurement ID and GTM ID separately in HubSpot can cause duplicate tracking issues.
Here’s why and how to fix it:
Why This Causes Duplicate Tracking
Tracking via GTM:
If you’ve already connected GA4 via Google Tag Manager (GTM), it means GA4 is firing through GTM.
Direct GA4 Integration in HubSpot:
If someone manually added the GA4 Measurement ID directly in HubSpot, it may be sending duplicate pageview events to GA4—one from GTM and one from HubSpot.
Double Events & Skewed Data:
You may see double pageviews, inflated metrics, and potential issues with conversions.
How to Check if You Have Duplicate Tracking
Step 1: Use GA4 DebugView
Go to GA4 > Admin > DebugView
Open your website in incognito mode and click around.
If you see two identical pageviews per page load, you have a duplicate tracking issue.
Step 2: Use Tag Assistant or GTM Preview Mode
Open Google Tag Manager and click Preview.
Navigate through your website and check if GA4 pageviews are firing twice.
Alternatively, use Google Tag Assistant Chrome extension.
How to Fix It
Option 1: Remove Direct GA4 Integration in HubSpot
If you’re managing GA4 via GTM, remove the direct GA4 Measurement ID from HubSpot.
Go to Settings > Tracking & Analytics > Google Analytics
If GA4 is manually connected here, remove it and rely on GTM instead.
Option 2: Remove GA4 Tag from GTM (Not Recommended)
If you prefer using HubSpot’s built-in GA4 tracking, you can remove GA4 from GTM and let HubSpot send events instead.
However, GTM gives more flexibility and control over tracking, so this isn’t ideal.
Option 3: Use GTM to Block Duplicate Events
If you must keep both GTM and HubSpot tracking, modify your GTM settings:
Add a trigger exception in GTM to prevent GA4 pageviews from firing twice.
Use custom variables to detect existing tracking and block duplicates.
Best Practice Recommendation
Use only GTM to handle GA4 tracking. Avoid adding GA4 directly in HubSpot if GTM is already used.