Hotjar

Hotjar

Session recording and behavioral analytics tool widely used by product and UX teams. Hotjar captures heatmaps, scroll maps, and full session replays. Sets cookies to identify returning users and records clicks, taps, and mouse movements across the page.

Overview

Hotjar is a behavioral analytics and user feedback platform used by product and UX teams to understand how visitors interact with websites. It provides heatmaps, scroll maps, session recordings, and on-site surveys. Hotjar is one of the most widely deployed analytics tools and processes significant volumes of user interaction data.

What This Script Does

  • Session recording: Captures full session replays including mouse movements, clicks, taps, scrolling behavior, and DOM changes. Records what users see and do on every page during a session.
  • Heatmaps and scroll maps: Aggregates click, tap, and scroll position data across all visitors to generate visual heatmaps showing interaction hotspots.
  • Form analytics: Tracks form field interactions including time spent per field, drop-off points, and refill rates.
  • User feedback: Renders on-site survey widgets, feedback polls, and incoming feedback buttons.
  • Cookies set:
    • _hjSessionUser_* — persistent cookie (365 days) that assigns a unique Hotjar User ID to identify returning visitors
    • _hjSession_* — session cookie that tracks the current session
    • _hjIncludedInSessionSample — controls session recording sampling
    • _hjAbsoluteSessionInProgress — detects the first pageview of a session
    • _hjFirstSeen — identifies new vs. returning visitors
  • Network requests: Sends recorded session data, heatmap coordinates, and survey responses to Hotjar's servers (*.hotjar.com). Data is transmitted continuously during a session.
  • DOM observation: Uses MutationObserver to track DOM changes in real time for accurate session replay rendering.
  • Keystrokes: By default, Hotjar suppresses keystroke recording in input fields, but this can be configured per-site. When suppression is disabled, typed content is captured.

Consent & Compliance

  • Consent category: Analytics
  • GDPR/ePrivacy: Hotjar sets persistent cookies that identify returning visitors and captures detailed behavioral data. Requires explicit opt-in consent under both the ePrivacy Directive (cookie consent) and GDPR (processing of personal data). Hotjar acts as a data processor; a Data Processing Agreement (DPA) is available and should be signed.
  • CCPA: Session recordings, heatmap data, and visitor identification constitute personal information. Must be disclosed in your privacy policy. Honor opt-out requests.
  • Data residency: Hotjar processes data in the EU (Ireland), which simplifies GDPR compliance but does not eliminate the consent requirement.
  • Sensitive data risks: Session recordings may inadvertently capture sensitive information displayed on screen (personal details, financial data, health information). Configure Hotjar's suppression rules to mask sensitive page elements.

Should You Block This Without Consent?

Yes. Hotjar sets persistent identification cookies, records detailed user sessions including mouse movements and clicks, and transmits this behavioral data to external servers. It is firmly in the analytics consent category and must not load until the user has granted consent. This applies even though Hotjar is not used for advertising — the depth of behavioral data collected requires informed consent under GDPR and ePrivacy.

Is Hotjar GDPR compliant?

Hotjar typically loads analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Hotjar can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Hotjar, not on Hotjar itself.

Visit website

Consent Categories

Also Known As

hotjar GDPRhotjar cookiessession recording consenthotjar heatmap privacyhotjar trackingHotjar compliance

Industries

Computers Electronics and Technology

Tracked Domains (1)

Hotjar's trackers are common, seen on about 4% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.

hotjar.comAnalytics

hotjar.com is an analytics domain operated by Hotjar, used to measure visits, sessions, and on-site behavior. Seen on about 4% of scanned sites.

Cookies Hotjar Sets (6)

_hjid

Hotjar visitor identifier persisting across sessions. One-year expiration.

_hjSessionUser_

Per-site Hotjar visitor identifier suffixed with the site ID. One-year expiration.

_hjSession_

Per-site Hotjar session identifier suffixed with the site ID. 30-minute expiration.

_hjFirstSeen

Hotjar first-seen marker indicating a brand-new session. Session-only.

_hjAbsoluteSessionInProgress

Hotjar marker tracking the first pageview of a unique session. 30-minute expiration.

_hjIncludedInSessionSample_

Hotjar sampling marker indicating whether the session is included in the daily session sample. Suffixed with the site ID.

Frequently Asked Questions

Related Vendors

Fonticons
Fonticons
Font hosting and typography services platform. Font Awesome scripts load icon font libraries from CDN. The Fonticons CDN operates primarily as an asset delivery mechanism with no behavioral tracking, though CDN access logs may record visitor IP addresses.
unpkg
unpkg
Open-source JavaScript package registry served via CDN. The unpkg CDN delivers npm package files globally. No behavioral tracking or advertising cookies are set; access logs record standard request metadata.
comScore
comScore
Audience measurement company providing digital and cross-media audience analytics. comScore scripts fire on publisher pages to measure audience size, demographics, and content consumption. Data is used by publishers to demonstrate reach to advertisers and by agencies for media planning.
Integral Ad Science
Integral Ad Science
Ad verification and brand safety platform used by publishers and advertisers. The IAS script measures viewability (whether ads were actually seen), flags invalid traffic, and monitors brand safety context. Typically fires alongside ad serving scripts to score each impression before or after it loads.
Adobe
Adobe
Enterprise analytics and marketing automation platform best known for Adobe Analytics and Adobe Experience Cloud. Scripts collect granular behavioral data, manage audience segments, and power A/B testing and personalization workflows. Often deployed through Adobe Launch (tag management) which can load additional third-party tags.
New Relic
New Relic
Application performance monitoring and error tracking platform for engineering teams. The New Relic browser agent collects real-user monitoring (RUM) data — page load times, AJAX calls, JavaScript errors — and sends it to New Relic's observability platform. Does not track user behavior for advertising or retargeting.

Manage consent for Hotjar

ConsentStack automatically detects and manages Hotjar trackers so your site stays compliant with global privacy regulations.