Support Google Consent Mode v2
Last updated: March 20, 2024
Available with any of the following subscriptions, except where noted:
All products and plans |
Google Consent Mode v2 is a framework designed to integrate website visitor consent preferences with Google's advertising and analytics tools. With it, your HubSpot-hosted site can adjust how these tools behave based on the consent status of website visitors, particularly regarding cookies and data collection. Even when visitors don’t consent to cookies, Google services can operate in a limited mode and collect basic interactions without breaching privacy expectations.
Please note: as of the March 2024 deadline set by Google, businesses that don’t integrate with Google Consent Mode v2 could experience measurement loss of tracked data from EEA/EU/UK visitors.
Before you get started
- To support Google Consent Mode v2 within HubSpot, you must:
- Have a HubSpot-hosted site
- Be integrated with Google Tag Manager or Google Analytics.
- Use HubSpot’s opt-in cookie consent banner.
- Due to Google’s explicit consent requirement, Consent Mode v2 will only work in the EEA, EU, and the UK if a HubSpot opt-in cookie consent banner (with or without categories) displays for those visitors.
Turn on Google Consent Mode v2
- Set up a HubSpot opt-in cookie consent banner. You can choose to allow opt-in by category or not. As you’re setting up your banner, in the Countries dropdown menu, select EU, EEA, and UK countries.
- Integrate with Google Analytics 4 (supports advanced consent mode) with your Measurement ID or Google Tag Manager (supports basic consent mode) with your GTM ID natively in your HubSpot account.
Please note: if you want to implement a basic version of consent mode for Google Analytics 4 instead of advanced, you can add Google Analytics as a tag to Google Tag Manager. Then, it will load with basic consent mode through HubSpot's Google Tag Manager integration.
Once these steps are completed, Google Consent Mode v2 will be supported worldwide on your HubSpot-hosted content.
Implement Google Consent Mode v2 manually
If you are not using a HubSpot cookie banner, or are not integrated with GTM or GA4 via a Measurement ID or GTM ID you will need to implement Google Consent Mode v2 manually.
External site
If you need to implement Consent Mode v2 manually because you use the HubSpot cookie banner on an external website, work with your developer to learn how to implement Consent Mode v2 manually.
Custom Google Tag Manager or Google Analytics
If you are not integrated with GTM or GA4 via a Measurement ID or GTM ID within HubSpot and use a code snippet to integrate, you must implement Consent Mode v2 manually. Work with your developer to learn how to implement Consent Mode v2 manually.
External cookie banner
If you use a non-HubSpot cookie banner on your HubSpot-hosted site or on your external website pages, consult with your external cookie banner provider or developer for guidance.