Marketing vendor · HubSpot, Inc.

HubSpot Cookies: List With Purpose and Retention

Last verified 2026-10-16 · Updated 2026-10-16

On this page
  1. Cookies HubSpot sets
  2. Scripts, pixels, and endpoints
  3. Does HubSpot need consent?
  4. How to add HubSpot to a consent banner
  5. Who runs HubSpot
  6. HubSpot cookie FAQs
  7. Sources

Scripts, Pixels, and Endpoints HubSpot Loads

HubSpot loads 5 known scripts, pixels, and data endpoints. Each row gives the host to look for in the Network tab of Chrome DevTools or in a cookie scanner report.

TypeResourceHostWhat it does
ScriptHubSpot tracking code loader (js.hs-scripts.com)js.hs-scripts.com
js-na1.hs-scripts.com
The loader named after your Hub ID adds the HubSpot analytics, chat, and pop-up scripts to the page.
ScriptHubSpot analytics script (js.hs-analytics.net)js.hs-analytics.netThe analytics script writes the hubspotutk, __hstc, __hssc, and __hssrc cookies and records page views.
PixelHubSpot page view pixel (__ptq.gif)track.hubspot.comThe page view pixel sends each page view to HubSpot with the visitor ID from the hubspotutk cookie.
ScriptHubSpot forms script (js.hsforms.net)js.hsforms.netThe forms script renders an embedded HubSpot form and reads the hubspotutk cookie at submission.
PixelHubSpot forms counter pixel (counters.gif)forms-na1.hsforms.com
perf-na1.hsforms.com
The counter pixel reports form loads and performance to HubSpot, and the auditor scans found the pixel before consent on a scanned site.

Who Runs HubSpot

HubSpot, Inc. runs HubSpot from the United States. HubSpot combines a CRM with marketing, sales, and service tools, so the tracking code on your site feeds the contact records your sales and marketing teams work with.

Read how HubSpot, Inc. handles the data in the HubSpot privacy policy, and sign the HubSpot Data Processing Agreement before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.

HubSpot Cookie FAQs

Does HubSpot need consent?

Yes, the HubSpot cookies need consent in the EU and the UK, and need no prior opt-in in California. Firstly, the ePrivacy Directive requires consent before a site sets the marketing cookies of HubSpot. Secondly, the UK PECR requires consent before a site sets the marketing cookies of HubSpot. Thirdly, the CCPA sets no general opt-in requirement for the marketing cookies of HubSpot, and the table gives the opt-out right of visitors. The consent section of this page gives the table for each law.

How long do HubSpot cookies last?

The cookies of HubSpot last up to 180 days (6 months), and 1 cookie lasts for the browser session. A session cookie such as __hssrc has no expiry date, and the __hs_cookie_cat_pref cookie lasts longest. The retention column of the cookie list gives the lifetime of each cookie.

How do I block HubSpot cookies?

Block the HubSpot cookies by holding back the HubSpot tracking code until the visitor accepts marketing cookies. Tag the HubSpot tracking code with data-cookie-consent="targeting" in TermsFeed Free Cookie Consent, or add HubSpot as a vendor in TermsFeed Privacy Consent. The page of the hubspotutk cookie gives the full steps and the settings of HubSpot.

Sources for the HubSpot Cookies

The facts on this page come from the documentation HubSpot publishes, checked on 2026-10-16. The list gives every source, so you check each fact yourself.