Tracking Integrations

Hi everyone - we’ve been in the process of setting up our hubspot account and had some questions re: the tracking integrations within the settings.

Basically we have an external site that’s connected to our GA4 account via GTM.

Since we have a new hubspot account, we wanted to see some of the data come through so have connected this via GTM also.

I noticed that someone’s added our GA4 measurement ID and also added our GTM ID.

Could this cause duplicate tracking?

*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

  1. Tracking via GTM:

    • If you’ve already connected GA4 via Google Tag Manager (GTM), it means GA4 is firing through GTM.
  2. 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.
  3. 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 :rocket:

:white_check_mark: Use only GTM to handle GA4 tracking.
:cross_mark: Avoid adding GA4 directly in HubSpot if GTM is already used.

Let me know if you need help debugging!