Hotjar cookiesAll need consent
Hotjar sets 10 cookies we know of. Every one may only be set after the visitor opts in.
Reviewed · Provider: Hotjar Ltd.
List of Hotjar cookies
_hjidAnalyticsConsent required1 yearSet by Hotjar when a user first lands on a page. Persists the Hotjar User ID, unique to that site on the browser.
_hjSessionUser_*AnalyticsConsent required1 yearSet so Hotjar can track the beginning of the user's journey for each session.
_hjFirstSeenAnalyticsConsent requiredSessionIdentifies a new user's first session, helping Hotjar distinguish first-time visitors from returning ones in funnels and recordings.
_hjAbsoluteSessionInProgressAnalyticsConsent required30 minutesDetects whether a Hotjar user session is already in progress so that a single visit is not counted as multiple sessions.
_hjTLDTestAnalyticsConsent requiredSessionLets Hotjar determine the most generic cookie path it can use by trying to store the cookie on different URL substrings until it fails.
_hjSession_*AnalyticsConsent required30 minutesHolds the current session's data, so later requests in the same session are attributed to it.
_hjIncludedInSessionSample_*AnalyticsConsent required30 minutesRecords whether the visitor's session is included in the data sample defined by the site's session limit.
_hjIncludedInPageviewSampleAnalyticsConsent required30 minutesRecords whether the visitor is included in the data sample defined by the site's pageview limit.
_hjCachedUserAttributesAnalyticsConsent requiredSessionStores user attributes sent through the Hotjar Identify API while the user isn't in the sample yet.
_hjUserAttributesHashAnalyticsConsent requiredSessionDetects when an attribute sent through the Identify API changes and needs updating.
How to handle Hotjar cookies
- 1Load it only after consent
Hold the Hotjar script until the visitor accepts analytics cookies. Blocking the script is what stops the cookies; hiding them in a banner does not.
- 2Make Reject work
After a visitor rejects, none of the 10 consent-requiring cookies below may be set or kept.
- 3Name every cookie in your policy
List each cookie by name with its purpose, provider (Hotjar Ltd.) and lifetime.
- 4Check the result, not the settings
Open your site in a private window, reject cookies, and look at what was stored. Or run a scan and compare the three stages.
Tools that help: tracking script blocker · Consent Mode v2 generator
Other vendorsAnd the cookies they set
Does Hotjar wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept