GuideHow toMarketing HubContent Hub

HubSpot cookies and the consent banner: default and domain banners, cookie list, Google Consent Mode and GPC

HubSpot's banner controls HubSpot's cookies, not every script on your site. What it covers, which cookies load before consent, and how it connects to Google Consent Mode.

Subscription
All plans
Permissions
Super Admin or privacy and consent settings access
Time
8 min · Intermediate
Last verified

Short answer

Consent banners are set in Settings, Privacy & Consent, Cookies. A default banner shows on every site that runs your HubSpot tracking code, including external sites, and a domain banner overrides it on one domain. HubSpot's banner controls HubSpot's cookies only (__hstc, hubspotutk, __hssc, __hssrc), not other scripts on the page. Google Consent Mode through HubSpot only works for EEA, EU and UK visitors if a HubSpot opt-in banner shows to them; with any other banner or setup, implement Consent Mode yourself. Each banner has its own Global Privacy Control switch.

1. Default and domain banners

Open Settings, Privacy & Consent, Cookies (1). Add external domain (2) adds a site that is not hosted on HubSpot, and the default banners are listed below (3).

Cookies settings with Add external domain and the Default consent banners section highlighted
Cookies (1), Add external domain (2), and default banners (3).
  • Default banners show on every website linked to your account, including external sites with your tracking code.
  • A banner for a specific domain overrides the default on that domain.
  • HubSpot needs to verify a domain before you add a banner for it with the new editor.
  • Accounts created after November 2022 have the new (v2) banner editor; older accounts are being migrated.
  • Turning off data privacy settings does not turn off the banner. See GDPR settings.

The banner works on HubSpot pages and on external pages with the tracking code. To check a site has the code, see installing the tracking code.

2. What HubSpot's cookies are

CookiePurposeExpires
__hstcMain visitor tracking cookie: domain, hubspotutk, first, last and current visit timestamps, session number6 months
hubspotutkVisitor identity, passed on form submission and used to deduplicate contacts6 months
__hsscSession tracking: page view count and session start30 minutes
__hssrcDetects a browser restart for a new sessionSession
__hs_opt_outRemembers not to ask the visitor againSee KB
__cf_bm, __cfruid, __cfuvidSet by HubSpot's CDN provider for bot protection and rate limiting. Necessary, no consent needed.30 minutes or session

On November 15, 2026 I requested the home page of a site hosted on HubSpot's CMS with no cookies. The server response set __cf_bm and _cfuvid straight away, before any banner, which matches HubSpot listing them as necessary cookies. The tracking cookies are set by the tracking script in the browser.

Accepting HubSpot's banner covers HubSpot's cookies only. Third-party scripts on the page, such as other analytics or ad pixels, need their own consent handling. Visitors from before you added the banner already have tracking cookies.

3. Google Consent Mode

HubSpot can pass banner choices to Google as Consent Mode signals. HubSpot's KB says this only works in the EEA, EU and UK if a HubSpot opt-in banner shows to those visitors. My demo portal's page integration settings carry HubSpot's Consent Mode notice (1):

Pages integrations settings with a Notice for Google Integration users about Consent Mode V2
The Consent Mode notice (1).

Implement Consent Mode yourself if:

  • your site is not hosted on HubSpot,
  • you do not connect Google Tag Manager or GA4 through HubSpot, or
  • you use a cookie banner that is not HubSpot's.

Google set a March 2024 deadline. Sites without Consent Mode can lose measured data from those regions. HubSpot's developer docs cover implementing it with HubSpot's banner API.

4. Global Privacy Control

Global Privacy Control lets visitors send a privacy preference from their browser. Turn on Respond to Global Privacy Control signaling in the banner settings. It is set per banner, so check each default and domain banner. HubSpot notes your legal team is the right source for compliance advice.

5. Report on consent

Banner interactions are logged on contact records. Notify-style banner interactions appear in segments and reports only with the new banner editor.

6. What is changing for 2027

  • Old banner editor migration. Accounts from before November 2022 are being moved to the new editor. Check your banners after the move, including domain overrides and the GPC switch.
  • External domains need verifying. Domain banners in the new editor need a verified domain, so add and verify each external site.
  • Consent signals feed reporting. In the EEA, EU and UK, Consent Mode decides how much Google can measure. A missing or misconfigured banner shows up as gaps in analytics and ad conversion data.

Common questions

Does HubSpot's banner block Google Analytics?

Not by itself. It controls HubSpot's cookies. Google's tags follow Consent Mode signals if you set them up through HubSpot or yourself.

Why do some cookies appear before the visitor accepts?

HubSpot's CDN sets necessary cookies such as __cf_bm for bot protection. HubSpot lists them as not requiring consent.

The banner shows on my WordPress site. Why?

Default banners show on every site with your tracking code. Add a domain banner for that site to change it.

Where do I turn on Global Privacy Control?

In each banner's settings: Respond to Global Privacy Control signaling.

Sources

New field notes by email

One email when a new article publishes.

Still stuck?

If this did not fix it, the problem is probably specific to your setup. Book a call and we will look at it together.

Book a call with Sam