Personally-Identifying Information (PII) can appear in your page content or in user input. Hotjar has been designed with user privacy in mind. You can suppress page content from Heatmaps, Recordings, and Incoming Feedback screenshots. By default, Hotjar suppresses user input.
Suppressed data appears as asterisks, for example, *, or ***, of slightly randomized length instead of text. Input fields that accept numbers convert into 1s, for example, 111. Suppressing images is also possible.
Learn more about:
Only Admins and Account Owners have access to edit suppression settings
You can find what your access permissions allow in our Team Member Permissions Guide.
Site-wide page content suppression
Hotjar disables most content suppression by default. You control page content suppression for each Site in your Account. You can change suppressing settings in your Site Settings.
Visit Sites & Organizations within your Hotjar Account.
Click the gear icon to access Site Settings for the site you would like to suppress on-page text.
You will need Admin team access permissions or higher.
Under Data Suppression toggle which options you want on or off.
You have various content suppression options available. They include:
All on-page content: All content including images are suppressed. Boxes with a diagonal line-pattern will show with the same size as the original image.
On-page text: All text-content is suppressed.
Numeric text: All numeric characters are suppressed. Hotjar enables this by default.
Hotjar suppresses numbers longer than 9 digits regardless of settings
This prevents Hotjar from capturing information such as credit card numbers or telephone numbers.
Email addresses: Anything that matches an email address pattern is suppressed. Hotjar enables this by default.
Location information - The user’s country of origin is suppressed. This will also prevent Hotjar from storing any IP address information of any sort. Even without suppression settings, Hotjar removes the final octet of the user's IP address to protect their privacy.
Click Update to save changes.
Specific element suppression
You can suppress individual elements by making a small modification to your page’s HTML. Your development team can add “data-hj-suppress” as an HTML attribute or class to the element(s). This suppresses all text and image content inside the element, including child elements.
Here’s an example of suppressing a paragraph / a single HTML element by adding it as an attribute:
<p data-hj-suppress> Suppress me</p> <p>Do not suppress me.</p>
You can also add the attribute as a class:
<p class="data-hj-suppress">Suppress me.</p> <p>Do not suppress me.</p>
<div data-hj-suppress> <img src="suppressed_image.png" /> <p>Suppressed text</p> </div>
Removing suppression on input elements
By default, Hotjar suppresses all user input. You can allow data collection on some input elements. This is a 2-step process for Heatmaps. Recordings require an additional step.
Add “data-hj-allow” as an attribute or class to each input element:
<input name="code" type="text" data-hj-allow /> <input class="data-hj-allow" name="quantity" type="text" />
The attribute/class can also be applied to textarea elements:
<textarea name="comment" data-hj-allow></textarea> <textarea class="fdata-hj-allow" name="comment"></textarea>
You can only allow text input elements
Text content cannot be allowed. If you need a mix of unsuppressed and suppressed page content, you can follow the advice on suppressing specific elements.
Check the Record keystroke data on allowed input fields option in your Site Settings.
For a step-by-step walkthrough, Site-wide content suppression has more detail.
In Recordings Configuration select the Recording Keystroke Data option.
You cannot remove suppression from all input elements
Hotjar prevents you from removing suppression on any fields that may contain potentially sensitive personal information, even if you allow them. Hotjar always suppresses user input data for these fields:
- Long numbers, such as credit card and phone numbers: Hotjar assumes numbers longer than 9 digits are most likely phone numbers or credit cards. Users may make typos meaning that regular validation is not appropriate for suppression.
- Email addresses: If user input appears to be an email address, Hotjar will suppress this.
- Certain HTML fields: password or email input elements.
- Input fields with specific names or IDs:equal to one of the following: username, name, firstname, surname, lastname, familyname, fullname, email, phone, ,cell, cellphone, telephone, tel, postcode, postalcode, zip, zipcode, mobile, address, ssn, security, securitynum, socialsec, socialsecuritynumber, socsec, ppsn, nationalinsurancenumber, nin, dob,dateofbirth, password, pass, adgangskode, authpw, contrasena, contrasenya, contrasinal, cyfrinair, contraseña, fjalëkalim, focalfaire, IP, creditcard, cc, ccnum, ccname, ccnumber, ccexpiry, ccexp, ccexpmonth, ccexpyear, cccvc, cccvv, cctype, cvc, cvv. For names and IDs, case and the symbols "-" and "_" are ignored.