The __hstc cookie
__hstc is a cookie set by HubSpot, from HubSpot Inc. Main cookie for tracking visitors. Contains domain, initial timestamp, last timestamp, current session start, and session number.
Set by
HubSpotDuration
6 months
Category
Marketing
Needs consent
Yes
Does the __hstc cookie require consent?
__hstc is used for marketing, so under the GDPR and the ePrivacy rules it may only be set after the visitor has agreed. Showing a banner is not enough on its own: the cookie must not be set before the visitor clicks accept.
Does your site set __hstc before consent?
A free scan loads your site the way a new visitor sees it and lists every cookie that is set before anyone has said yes, __hstc included.
How to put __hstc behind consent
Remove the HubSpot snippet from your site and add your HubSpot ID under Integrations in Consentify instead. Consentify then loads HubSpot only after the visitor has accepted marketing, so __hstc is never set before consent.
View all integrationsNot sure what's running on your HubSpot site?
Scan it first and you'll know exactly which scripts need consent before you set up the banner. Takes about ten seconds.
- Results in about 10 seconds
- No account needed
- Shareable report link
Other cookies set by HubSpot
| Cookie | Purpose | Duration |
|---|---|---|
| hubspotutk | Stores a unique token for the visitor, used for deduplication in HubSpot form submissions. | 6 months |
| __hssc | Keeps track of sessions for analytics purposes. Contains domain, viewCount, and session start. | 30 minutes |
| __hssrc | Set whenever HubSpot changes the session cookie. Used to determine whether the visitor has restarted their browser. | Session |