deeply digital Blog

How cookie consent tracking can misalign your HubSpot and Google Analytics

Written by Deeply Digital | Oct 31, 2025

Why doesn’t HubSpot analytics match my Google Analytics (GA)? It’s a common question, especially when a company starts using HubSpot for the first time, or if they’ve chosen to build a new website in HubSpot.

Accurate website data and analytics is key for most marketing teams, and not understanding the data or the differences in data can lead to false conclusions and incorrect data. 

In this case, we’re going to focus on an often underlying cause for data misalignment between HubSpot and GA: HubSpot cookie consent and cookie tracking. 

But before going into that, a few basics to check or think about:

  • If you’re not seeing any data in GA, check if the GA4 code is properly integrated with HubSpot (via HubSpot settings > Content > Pages > Integrations).

  • If you’re seeing a slight misalignment with one of the platforms showing more or less sessions, this is normal as the two platforms track sessions differently - see more information here.

  • If Google Analytics is showing a lot more traffic or users, check if there are other sources of information that HubSpot doesn’t have access to. While HubSpot might have website data, the GA4 code might be used on multiple channels and if not configured correctly, might combine the data.

  • Bots and IP filtering - similar to how each platform tracks sessions differently, they each also track bots and IP filtering differently, as per this article.

Misalignment due to cookie consent

If you’re using a combination of HubSpot for website hosting, the HubSpot cookie consent banner and tracking via Google Analytics, then there’s a strong chance you’ll see a difference in user and session traffic in Google Analytics compared to HubSpot’s traffic analytics. 

Root Cause

In a best-practice set-up that supports GDPR and EU cookie law compliance for HubSpot-hosted websites, the Google Analytics tracking script only fires when a visitor explicitly opts in to cookie tracking via the HubSpot banner. 

This is managed by the use of both the cookie consent banner and the Google Analytics (GA4) Integration. 

The impact on tracking in Google Analytics

Although it’s a best practice set-up, the traffic and user numbers reported in Google Analytics will likely be lower than in HubSpot (in some cases significantly).

This takes into account some key user behaviours, in which HubSpot cannot share the data with Google Analytics:

  • The visitor outright declined cookie tracking
  • The visitor didn’t interact with the cookie banner at all (leaving it open on screen)
  • The visitor picked which cookies to accept and declined performance and tracking analytics
  • The visitor has an ad-blocker which hides the cookie consent banner

In the case of the above, the data will not be passed to Google Analytics and the numbers reported will differ to what’s reported in HubSpot.

How does HubSpot report the additional numbers if someone doesn’t opt in to cookie tracking?

While HubSpot can only pass the data to Google Analytics in the event that a user explicitly opts in to cookie tracking, the platform can still record an anonymous visit to the website if someone has visited the website and declined cookie tracking. This visit would still count as a session in HubSpot’s traffic analytics. 

In the case of tying this data back to contacts in the CRM, there are limits to how far the HubSpot tracking will work if someone hasn’t accepted cookies. Essentially, it can only attribute the original source data (meaning the visitor’s very first point of entry) to an individual contact if that contact has accepted cookies. Otherwise, the cookie isn’t set to track the visitor until the point that they convert, and the conversion can’t be attributed back to the first entry point.

Where a contact has declined cookies or simply ignored the cookie banner, there isn’t a mechanism to tie their conversion back to the original source because the individual didn’t opt in for this tracking to be linked to their visit.

HubSpot vs. Google Analytics tracking

As mentioned, HubSpot and Google Analytics track website data in slightly different ways. While both tools cover the basics, how each platform approaches tracking is slightly different. 

For example, in HubSpot, it’s possible to track traffic analytics (sessions and new sessions) and break the data down by country, device, browser, source/channel etc. This closely aligns with Google Analytics. 

If you’re also using HubSpot Smart CRM or any of the other Hubs (Marketing, Content, Sales, Service, Commerce or Data), then the website data is also applied to different object records i.e. contacts, companies, deals etc. 

What HubSpot can’t do is GA-style user metrics like “new users” or “total users” as defined in GA4. HubSpot’s model is session and contact-based, not user-based. Google Analytics also has some additional advanced segmentation: combining filters such as hostname, country, and new/returning visitor status is more limited and less flexible than what GA4 allows.

If you do want to track new user data in HubSpot, here’s a way to get close to the GA4-style insights:

  1. Navigate to Reports > Website traffic analysis > Sources
  2. Click the ‘Countries’ Option
    • Select the countries that you want to be included in the report (e.g. United Kingdom) 
    • Choose the analytics view you want to see (applicable if tracking multiple domains or views in HubSpot)
    • Review the “Dimensions” on the right hand side, to select options like  returning visitor sessions and new sessions

Bridging the gap in GA with Google Consent Mode

For those looking to use Google Analytics with minimal data loss, while remaining compliant, Google offers an advanced solution.

If a user declines cookies, the standard integration simply blocks the GA4 script entirely. However, by properly implementing Google Consent Mode (GCM v2) alongside your HubSpot banner, you can inform Google Analytics of the user's consent choice without setting tracking cookies.

Instead of blocking tracking completely, GCM uses this consent signal to enable behavioral and conversion modeling. This means:

  1. Compliance Maintained: If a user declines, no identifying cookies are placed, respecting their choice.
  2. Data Recovered: Google’s machine learning estimates the behavior and conversions of the non-consented users, allowing GA4 to present a more complete picture of your traffic volume and performance based on a statistical model.

This is the most effective technical path to align your GA4 reporting with the higher traffic metrics seen in HubSpot.

Actions to take

While you can’t force users to consent to cookie tracking (at least not in compliance with GDPR and EU regulations), you can take steps to improve the chances of visitors accepting cookies.

Review your cookie banner

Test whether changing the consent banner design/wording/positioning can improve acceptance rates (even small lifts can recover lost attribution), and therefore pass more data to Google Analytics, or even track more accurately in HubSpot. 

Review your marketing activity and website content

Visitors to the website are more likely to accept the cookie policy if they know and trust the brand. Don’t expect first time visitors to just accept cookies, and instead, ensure that the content you have on your website is highly relevant to your audience. 

Whether the main driver is organic search, social media, ads, email, the intention should be to align the call to actions with the content that the user sees. This helps to build trust and context. 

It might be that you can never quite close the gap between HubSpot and Google Analytics, so you’ll need to decide on a source of truth that aligns with your reporting and stick with it. At least with a main source of truth, you can benchmark the data and then track and analyse it in a way that aligns with your goals and KPIs.