GDPRChecker

Home / Knowledge Base / Hotjar HubSpot CMS Cookie Consent: Setup, Blocking, and Testing Guide

Website Compliance

Hotjar HubSpot CMS Cookie Consent: Setup, Blocking, and Testing Guide

A practical guide for implementing Hotjar cookie consent on HubSpot CMS, covering step-by-step setup, blocking scripts before consent, common mistakes, and validation using GDPRChecker’s scanner to ensure GDPR compliance.

Run a free GDPR compliance scanPreview the findings before choosing a CMP.

Author

GDPRChecker Editorial Team

Reviewed by

Privacy & Compliance Research Team

Last updated

July 2026

Reading time

9 min read

Educational guidance for compliance readiness — not legal advice. Requirements vary by jurisdiction and your specific processing activities.

Introduction

Updated for 2026 compliance practices.

Hotjar HubSpot CMS cookie consent is a practical compliance topic for website owners validating consent, tags, and disclosures. If you use Hotjar for heatmaps and session recordings on a HubSpot CMS site, you must ensure that cookies and tracking scripts are only activated after obtaining valid user consent where required by regulations like the GDPR. This guide walks through the technical implementation, common pitfalls, and how to verify your setup using GDPRChecker’s scanner.

This guide provides technical implementation guidance, not legal advice. Always consult with a qualified privacy professional for your specific situation.

Requirements and Compliance Expectations

When implementing Hotjar HubSpot CMS cookie consent, several requirements must be met to align with GDPR expectations. These requirements are derived from official sources such as the GDPR.eu overview and EDPB guidance.

First, consent must be obtained before any non-essential cookies are set. Hotjar cookies are generally considered non-essential because they are used for analytics and user behavior tracking, not for core website functionality. Therefore, you must block Hotjar scripts by default until the user takes affirmative action.

Second, you must provide clear and comprehensive information about the cookies you use. This includes what data Hotjar collects, how it is used, and how long it is retained. This information should be easily accessible, typically in a cookie policy or privacy policy.

Third, users must be able to withdraw consent as easily as they gave it. This means providing a mechanism, such as a floating button or a link in the footer, to change consent preferences at any time.

Fourth, you must keep records of consent. While this is often handled by a Consent Management Platform (CMP), if you build a custom solution, you need to log consent timestamps and preferences.

Finally, you must ensure that third-party data processors, like Hotjar, are bound by data processing agreements. Hotjar offers a Data Processing Agreement (DPA) for its customers, which you should sign if you are subject to GDPR.

It’s important to note that these requirements apply not only to Hotjar but to any similar tools you might use, such as Google Analytics. For more on that, see our guide on Google Analytics GDPR compliance.

Common Mistakes and How to Avoid Them

When setting up Hotjar HubSpot CMS cookie consent, several mistakes are common. Avoiding these will save you from compliance headaches.

Mistake 1: Hotjar Fires Before Consent

The most frequent error is that the Hotjar script loads on page load regardless of consent. This happens when the tracking code is placed directly in the site header without conditional logic. Always ensure the script is blocked by default.

Mistake 2: Incomplete Cookie Deletion on Withdrawal

If a user withdraws consent, simply stopping the script from loading in the future is not enough. You must also delete any existing Hotjar cookies. Otherwise, those cookies remain on the user’s device and could be considered non-compliant.

Mistake 3: Ignoring Consent Mode Interactions

If you use Google Consent Mode alongside Hotjar, misconfigurations can cause Hotjar to fire when it shouldn’t. For example, if Consent Mode signals are not properly integrated with your tag manager, Hotjar might fire based on default consent states. Understand the difference between Consent Mode v2 and Google Certified CMPs by reading our comparison: Consent Mode v2 vs Google Certified CMP.

Mistake 4: Not Testing Reject Flow

Many implementations only test the accept flow. The reject flow is equally important. Ensure that when a user clicks “Reject” or closes the banner without accepting, no Hotjar cookies are set.

Mistake 5: Poor Banner Design

A banner that doesn’t provide equal prominence to accept and reject buttons, or that uses pre-ticked boxes, can invalidate consent. Follow cookie banner requirements to ensure your banner meets regulatory expectations.

How to Validate with GDPRChecker

After implementing Hotjar HubSpot CMS cookie consent, validation is crucial. GDPRChecker provides a scanner that automates much of this process.

To validate, run a scan on your website. The scanner will check for pre-consent network requests, meaning it will flag any scripts or cookies that are loaded before the user has given consent. If Hotjar appears in the pre-consent list, you know your blocking isn’t working correctly.

The scanner also analyzes your cookie banner behavior. It checks if the banner is displayed properly, if it blocks scripts until action is taken, and if it allows for easy withdrawal. Additionally, it reviews your privacy policy for required disclosures about Hotjar and other cookies.

GDPRChecker scans help verify pre-consent network requests, banner behavior, and disclosure gaps after changes. This is especially useful after you’ve made adjustments to your consent setup. Regular scans can catch regressions caused by template updates or new script additions.

We recommend scanning your site before and after implementing consent changes. This gives you a clear before-and-after picture. If you’re unsure whether you need a CMP, our article Do I need a CMP if I do not run Google Ads? can help you decide.

Implementation Checklist

Use this checklist to ensure your Hotjar HubSpot CMS cookie consent implementation is complete:

  1. Identify all Hotjar cookies and scripts used on your site.
  2. Choose a consent management approach (CMP or custom).
  3. Remove any hardcoded Hotjar tracking code from your site header.
  4. Implement conditional loading of Hotjar based on consent status.
  5. Create a cookie banner with clear accept and reject options.
  6. Ensure the banner blocks Hotjar until user action.
  7. Implement consent storage (cookie or local storage).
  8. Handle consent withdrawal by deleting Hotjar cookies.
  9. Provide a mechanism for users to change consent preferences.
  10. Update your privacy policy to disclose Hotjar usage.
  11. Test accept, reject, and withdrawal flows in incognito mode.
  12. Run a GDPRChecker scan to verify pre-consent requests and banner behavior.

FAQ

What is Hotjar HubSpot CMS cookie consent?

Hotjar HubSpot CMS cookie consent is the practice of ensuring that Hotjar tracking scripts on a HubSpot CMS website only load after the user has given explicit consent, in compliance with GDPR and other privacy regulations.

Do I need Hotjar HubSpot CMS cookie consent for GDPR?

Yes, if you use Hotjar on a HubSpot CMS site and target users in the EU, you generally need to obtain prior consent before setting Hotjar cookies, as they are not strictly necessary for the website’s core functionality.

How do I implement Hotjar HubSpot CMS cookie consent?

Implement by removing the default Hotjar snippet, adding a consent banner, and conditionally loading Hotjar only after consent is given. Use JavaScript to check consent status and delete cookies on withdrawal.

How can I verify Hotjar HubSpot CMS cookie consent with a scanner?

Use GDPRChecker’s scanner to check for pre-consent network requests, banner behavior, and disclosure gaps. It will flag any Hotjar scripts that load before consent, helping you confirm your setup is correct.

What are common Hotjar HubSpot CMS cookie consent mistakes?

Common mistakes include Hotjar firing before consent, not deleting cookies on withdrawal, ignoring reject flows, and using banners with pre-ticked boxes. Regular testing and scanning can prevent these issues.

Conclusion

Hotjar HubSpot CMS cookie consent is a critical part of GDPR compliance for website owners using these tools. By carefully implementing conditional loading, testing thoroughly, and validating with GDPRChecker, you can ensure that your site respects user privacy while still benefiting from Hotjar’s insights. Remember, compliance is an ongoing process—regularly scan your site and update your practices as regulations evolve. For further reading, explore our guide on Google Consent Mode v2 checker to ensure your entire consent framework is robust.

Ready to verify your setup? Run a GDPRChecker scan today to close the consent gap and protect your users’ privacy.

GDPRChecker guides are educational resources and do not constitute legal advice. Use them to understand technical and operational privacy requirements, and consult qualified counsel for legal interpretation.

Check Your Website in Under 60 Seconds

  • Sign in required
  • GDPR-focused checks
  • Cookie banner detection
  • Privacy policy verification