Reports

Cookies set in a visitor's browser by HubSpot

Last updated: December 11, 2018

free
HubSpot's tracking code sets a number of tracking cookies when a visitor lands on your site. These cookies fall into two general categories: 
  • Essential/necessary cookies: essential cookies which do not require consent. 
  • Consent banner cookies: cookies included in the consent banner under GDPR.

Essential/necessary cookies

__hs_opt_out
This cookie is used by the opt-in privacy policy to remember not to ask the visitor to accept cookies again. This cookie is set when you give visitors the choice to opt out of cookies.
(Expires: 13 months)

__hs_do_not_track
This cookie can be set to prevent the tracking code from sending any information to HubSpot. Setting this cookie is different from opting out of cookies, as it still allows anonymized information to be sent to HubSpot.
(Expires: 13 months)

hs_ab_test
This cookie is used to consistently serve visitors the same version of an A/B test page they’ve seen before.
(Expires: end of session)

<id>_key
When visiting a password-protected page, this cookie is set so future visits to the page from the same browser do not require login again. The cookie name is unique for each password-protected page.   

hs-messages-is-open
This cookie is used to determine and save whether the chat widget is open for future visits. It resets to re-close the widget after 30 minutes of inactivity.
(Expires: 30 minutes) 

hs-messages-hide-welcome-message
This cookie is used to prevent the welcome message from appearing again for one day after it is dismissed.
(Expires: 1 day) 

__hsmem
This cookie is set when visitors log in to a HubSpot-hosted site.
(Expires: 1 year) 

Consent banner cookies 

__hstc
The main cookie for tracking visitors. It contains the domain, utk, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).
(Expires: 13 months) 

hubspotutk
This cookie is used to keep track of a visitor's identity. This cookie is passed to HubSpot on form submission and used when deduplicating contacts.
(Expires: 13 months

__hssc
This cookie keeps track of sessions. This is used to determine if HubSpot should increment the session number and timestamps in the __hstc cookie. It contains the domain, viewCount (increments each pageView in a session), and session start timestamp. 
(Expires: 30 min) 

__hssrc
Whenever HubSpot changes the session cookie, this cookie is also set to determine if the visitor has restarted their browser. If this cookie does not exist when HubSpot manages cookies, it is considered a new session.
(Expires: end of session) 

messagesUtk
This cookie is used to recognize visitors who chat with you via the messages tool. If the visitor leaves your site before they're added as a contact, they will have this cookie associated with their browser. If you chat with a visitor who later returns to your site in the same cookied browser, the messages tool will load their conversation history.
(Expires: 13 months)

If you are logged in to HubSpot, HubSpot will set additional authentication cookies. Learn more about cookies set in the HubSpot product.

Ads tracking 

If you have the Facebook pixel code installed on your website, Facebook may set a cookie on your visitor's browser.

If you use the HubSpot ads tool to select and install your Facebook pixel on pages with the HubSpot tracking code, HubSpot will link the placing of that pixel code to the cookie notification banner. If you require opt-in consent via this banner, the Facebook pixel will not be able to set any cookies on a visitor until they have opted in. 

If you have manually placed the pixel code on pages (e.g., by editing your site header HTML), HubSpot will not be able to control which visitors Facebook is able to set cookies on.

For additional information, refer to Facebook's business tools terms and Facebook's cookie consent guide

How are cookies from third-party systems handled? 

HubSpot isn’t able to control the cookies placed by other scripts included on your website. However, you can still choose to use the cookie consent banner to know when a visitor has given consent to place cookies in their browser. Learn more about using the banner for third-party scripts.

Learn more about removing the cookies created by the HubSpot tracking code that are included in the consent banner under GDPR. When cookies are removed, the visitor will be considered a new visitor and will see the cookie consent banner the next time they visit your site.

Was this article helpful?

If you still need help you can get answers from the , or to contact support.