One way to sanitize your recordings is by adding the
highlight-block CSS class to elements that should be ignored.
The Highlight snippet will in-turn measure the dimensions of the ignored element, and when the recording is being replayed, an empty placeholder will replace the content.
Alternatively, you can obfuscate specific HTML elements by adding the
highlight-mask CSS class. The effect is the same of setting
enableStrictPrivacy (the randomized text in the photo above) but applies to the specific HTML element that you mask.
The following CSS class only works for
<input>elements. If you are interested in blocking the capture of other HTML elements, see the
For sensitive input fields that your team would like to ignore user input for, you can add a CSS class
highlight-ignore that will preserve the styling of the input element, but ignore all user input.
Strict Privacy Mode
If you don't want to manually annotate what elements to not record then you can set
true when calling
H.init(). Strict Privacy Mode will obfuscate all text and images. The text obfuscation is not reversible and is done on the client.
Here are some examples:
<h1>Hello World</h1>will be recorded as
<img src="https://my-secrets.com/secret.png" />will be recorded as
<img src="" />