Cookie consent on HubSpot: HubSpot's banner or a separate CMP?

HubSpot has its own cookie banner, and under the right conditions it handles Google consent mode for you. Here's when it's enough, when a separate CMP fits better, and what happens to HubSpot tracking and your forms when visitors decline.

By Clark Frye4 minute read

The short answer

HubSpot's own banner is the simplest choice when the site is hosted on HubSpot and Google's tags come through HubSpot's own integrations. A separate CMP makes sense when the site isn't on HubSpot, Tag Manager runs your tags, or your organization already uses a CMP elsewhere. Either way, the visitor's choice has to reach HubSpot tracking and Google's tags, so test both.

On this page
  1. When HubSpot's banner handles Google consent mode
  2. When a separate CMP is the better fit
  3. What happens to HubSpot analytics and forms
  4. Choosing a CMP for a HubSpot site
  5. What to test after setup
  6. Questions people ask

When HubSpot's banner handles Google consent mode

HubSpot lists three requirements for turning on Google consent mode from its own settings.

Outside those conditions, consent mode has to be set up by hand. HubSpot says that applies on an externally hosted site, or when GA4 or Tag Manager is added with a code snippet, even with HubSpot's banner. The difference between basic and advanced consent mode is in A CMP and Google Consent Mode.

When a separate CMP is the better fit

A separate CMP tends to fit when the site isn't hosted on HubSpot, when Tag Manager runs most of your tags, when you need different rules for several regions, or when the rest of the company already uses a CMP. For a banner HubSpot didn't build, HubSpot tells you to consult the banner provider or a developer.

HubSpot's tracking can still follow another banner. HubSpot's cookie banner API lets a third-party banner turn off HubSpot's banner and pass the visitor's choice to HubSpot's tracking code. Make sure only one banner shows. OneTrust's HubSpot guide warns that otherwise you will have two banners on the site.

What happens to HubSpot analytics and forms

When a visitor declines, HubSpot's tracking code can still load, but it won't set cookies that identify the visitor across sessions. HubSpot still counts page views in an aggregated and anonymized manner and won't tie those visits to individual visitors or existing contacts.

That matters for lead counts. A visitor who declines can still fill out a form. HubSpot gets the submission, while GA4 may not record the key event, depending on how your tags follow the choice. So form submissions, new HubSpot contacts and GA4 key events can differ, and the gap tends to grow after a banner goes live. Decide which number your reports use, and note the date the banner changed.

Choosing a CMP for a HubSpot site

For the other platforms, see the full comparison, which CMPs Google certifies and which CMPs US sites use.

Whether your site needs a banner, and what it has to offer visitors, is a question for your counsel. I handle the setup and the testing.

What to test after setup

Here's a sample checklist. Run through it after accepting, after declining, and with Global Privacy Control turned on, starting each run in a fresh private window.

  1. Only one banner shows. If you use a separate CMP, HubSpot's own banner should be off.
  2. Google's tags follow consent mode. In Tag Assistant, the consent state should change with the visitor's choice.
  3. HubSpot tracking follows the choice. After declining, HubSpot's tracking cookies shouldn't appear in the browser.
  4. Form submissions still reach GA4 and HubSpot. Submit a test form after accepting and find it in both, as a contact in HubSpot and a key event in GA4.
  5. Declined visitors' forms are understood. Submit a test form after declining too, so you know how that lead shows up in each system.

Questions people ask

Does HubSpot's banner support Google consent mode?

Yes, when three requirements hold. The site is hosted on HubSpot, GA4 or Tag Manager is connected through HubSpot's own integration, and you use HubSpot's opt-in banner. Otherwise you set up consent mode by hand.

Can I use OneTrust or CookieYes with HubSpot?

Yes. Both publish HubSpot setup guides, and both add their script through HubSpot's site header HTML. Turn off HubSpot's own banner so visitors see only one, and make sure the choice reaches HubSpot's tracking code.

Why do HubSpot contacts and GA4 leads differ after adding a banner?

Visitors who decline can still submit forms. HubSpot records the submission, while GA4 may not record the key event for that visitor. Pick one system as the reference for lead counts and explain the gap in your reports.

Where the work goes from here

Bands of snow across a long rock ridge and peak, above a dark forested slope.

If this is happening on your site

The Measurement & Consent Audit tests each key form after accepting, after declining, and with Global Privacy Control turned on, and shows where GA4, HubSpot and your ad platforms lose the lead.