Introduction
Updated for 2026 compliance practices.
Hotjar WordPress cookie consent is a practical compliance topic for website owners validating consent, tags, and disclosures. If you run a WordPress site and use Hotjar for heatmaps, session recordings, or feedback polls, you need to ensure that cookies and tracking scripts fire only after you have obtained valid consent from visitors in the European Economic Area (EEA) and other regions with similar privacy laws. This guide walks you through what Hotjar WordPress cookie consent means, the requirements you must meet, a step-by-step implementation approach, common pitfalls, and how to verify everything with a scanner like GDPRChecker.
We provide technical implementation guidance, not legal advice. Always consult a qualified privacy professional for your specific situation. The steps here are based on official documentation from Google, the European Data Protection Board (EDPB), and GDPR.eu, combined with practical experience from the GDPRChecker product team.
Requirements and Compliance Expectations
To achieve compliant Hotjar WordPress cookie consent, you need to meet several technical and organizational requirements. These are derived from the GDPR, ePrivacy Directive, and guidance from authorities like the EDPB.
1. Prior Consent for Non-Essential Cookies
You must block Hotjar scripts and any other non-essential trackers before consent is obtained. This means no Hotjar cookies should be set, and no data should be sent to Hotjar’s servers on page load for users who have not yet consented. This is often referred to as “prior blocking” or “pre-consent blocking.”
2. Granular Consent Options
Users should be able to choose which categories of cookies they accept. Hotjar typically falls under “Analytics” or “Statistics” cookies. Your consent banner must allow users to opt in or out of this category separately from strictly necessary cookies.
3. Clear and Accessible Information
Your cookie banner and privacy policy must clearly explain what Hotjar does, what data it collects, and for what purposes. This includes mentioning the use of heatmaps, session recordings, and any integrations with other tools.
4. Consent Logging
You should keep records of consent given, including the timestamp, the specific choices made, and the consent method. This is important for demonstrating compliance if challenged.
5. Respecting Do Not Track (DNT) and Global Privacy Control (GPC)
While not strictly required by GDPR, respecting browser privacy signals can be a good practice and may be required under other regulations. Hotjar can be configured to honor DNT signals.
6. Data Processing Agreement (DPA)
If Hotjar processes personal data on your behalf, you need a DPA with Hotjar. Hotjar offers a standard DPA for its customers.
Common Mistakes and How to Avoid Them
Even with the best intentions, many website owners make mistakes when implementing Hotjar WordPress cookie consent. Here are the most common pitfalls and how to steer clear of them.
1. Firing Hotjar Before Consent
This is the most frequent error. The Hotjar script loads and sets cookies before the user interacts with the consent banner. To avoid this, always block the script at the server level or via your CMP’s prior blocking feature. Never rely on just hiding the banner; the script must not execute.
2. Not Testing the Reject Flow
Many sites test only the “Accept All” path. You must also test what happens when a user rejects analytics cookies. Verify that no Hotjar cookies are set and no network requests to Hotjar endpoints occur. Use browser developer tools to inspect cookies and network activity.
3. Ignoring the Hotjar Consent Flags
Simply blocking the script is not enough if you later load it conditionally. You must also set _hjCookieConsent appropriately, or Hotjar may still try to set cookies once loaded. Always pair script blocking with the consent flag.
4. Incomplete Privacy Policy Disclosures
Your privacy policy must specifically mention Hotjar and its data processing activities. Generic statements about “analytics tools” may not be sufficient. Include details about session recordings, heatmaps, and any data sharing.
5. Forgetting About Subdomain Tracking
If Hotjar is configured to track across subdomains, ensure consent is managed consistently across all subdomains. The consent state should be shared or re-obtained on each subdomain.
6. Not Keeping Consent Logs
Without logs, you cannot prove that consent was obtained. Use a CMP that provides detailed consent logs, or implement your own logging mechanism.
Implementation Checklist
Use this checklist to ensure you’ve covered all aspects of Hotjar WordPress cookie consent:
- To do: Installed and configured a CMP that supports prior blocking.
- To do: Added Hotjar to the CMP’s list of services requiring consent.
- To do: Verified that the Hotjar script is blocked before consent (check cookies and network requests).
- To do: Implemented the
_hjCookieConsentflag orhjSuppressoption in your Hotjar code. - To do: Configured GTM triggers (if used) to fire Hotjar only on analytics consent.
- To do: Tested the full consent flow: accept, reject, and withdraw.
- To do: Ensured that rejecting analytics cookies deletes any existing Hotjar cookies.
- To do: Updated your privacy policy to explicitly mention Hotjar and its data collection.
- To do: Signed a Data Processing Agreement with Hotjar if required.
- To do: Set up consent logging and verified that logs are being recorded.
- To do: Scanned your site with GDPRChecker to validate pre-consent blocking and banner compliance.
- To do: Scheduled regular re-scans to catch issues after updates.
FAQ
What is Hotjar WordPress cookie consent?
Hotjar WordPress cookie consent is the practice of ensuring that Hotjar’s tracking scripts and cookies on a WordPress site only activate after a visitor has given explicit consent, in compliance with GDPR and ePrivacy requirements. It involves blocking Hotjar by default and enabling it only when the user opts in to analytics cookies.
Do I need Hotjar WordPress cookie consent for GDPR?
Yes, if you use Hotjar on a WordPress site and have visitors from the EEA, you generally need to obtain prior consent before setting Hotjar cookies or processing behavioral data. Hotjar cookies are not strictly necessary, so they fall under the consent requirement of the ePrivacy Directive and GDPR.
How do I implement Hotjar WordPress cookie consent?
Implement it by using a consent management platform (CMP) that blocks Hotjar scripts until consent is given, setting Hotjar’s internal consent flags (_hjCookieConsent or hjSuppress), and configuring any tag managers to fire Hotjar only on analytics consent. Then test thoroughly and update your privacy policy.
How can I verify Hotjar WordPress cookie consent with a scanner?
Use a tool like GDPRChecker to scan your site. Run scans in different consent states: before consent, after accepting, and after rejecting. The scanner will detect if Hotjar cookies are set or network requests are made without consent, and it will flag banner issues.
What are common Hotjar WordPress cookie consent mistakes?
Common mistakes include firing Hotjar before consent, not testing the reject flow, forgetting to set Hotjar’s consent flags, incomplete privacy policy disclosures, and not keeping consent logs. Regular scanning and testing can help avoid these issues.
Conclusion
Getting Hotjar WordPress cookie consent right is essential for GDPR compliance and building trust with your users. By understanding the requirements, following a structured implementation process, and avoiding common mistakes, you can use Hotjar’s powerful analytics while respecting visitor privacy. Remember that compliance is an ongoing process—regularly scan your site with GDPRChecker to ensure your consent setup remains intact as your site evolves. For more guidance, explore our related articles on consent mode v2 vs Google certified CMP, Google Consent Mode v2 checker, and cookie banner requirements.
Ready to verify your Hotjar consent setup? Try GDPRChecker now and close your compliance gaps.
Next step
Run a GDPRChecker scan to validate consent behavior, trackers, and disclosures after you implement the checklist above.
Copyright and editorial notice
© GDPRChecker
This original AI-assisted editorial draft was selected, reviewed, and published by GDPRChecker. All rights are reserved where protected by applicable law. Do not reproduce the article without permission.