Reports

What cookies does HubSpot set in a visitor's browser?

Last updated: March 29, 2017

HubSpot's tracking code sets the following cookies, when a user visits your site:

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

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

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

__hssrc
Whenever HubSpot changes the session cookie, this cookie is also set. We set it simply to the value "1", and use it to determine if the user has restarted their browser. If this cookie does not exist when we manage cookies, we assume it is a new session.
(Expires: None. Session cookie)

__hs_opt_out
This cookie is used by the opt-in privacy policy to remember not to ask the user to accept cookies again. This cookie is set when you give users the choice to opt out of cookies.
(Expires: 2 years)

__hs_do_not_track
This cookie is set when you give users the choice to opt out of cookies and they choose to do so. It disables tracking and personalization.
(Expires: 2 years)

__hs_testcookie
This cookie used to test whether the visitor has support for cookies enabled.
(Expires: Session cookie)

hsPagesViewedThisSession
This cookie used to keep track of page views in a session.
(Expires: Session cookie)

 

If you are logged in to HubSpot, HubSpot will set additional authentication cookies. You can see a complete list of cookies set by HubSpot's app, here.

Was this article helpful?