Suppressing personal data
Screenshots and replays can contain what users type into forms. The Gleap SDK masks the values of sensitive fields before they leave the page: every character becomes*, so the field keeps its length but not its content. Screenshots and replays follow the same rules.
Fields masked automatically
These fields are always masked, and replay options cannot turn it off:- Password fields (
type="password"), also after a “show password” button turns them into text fields while replays are recording - Fields whose
autocompleteattribute containscurrent-password,new-password,one-time-code,cc-number(card number) orcc-csc(card security code)
Mask a field
Add the classrr-mask to a field, or to an element that contains fields, to mask their values:
rr-mask also masks the text inside the element. The attribute gleap-ignore="value" and the class gl-mask mask fields the same way.
Before JavaScript SDK 18.1.1,
rr-mask masked input values in screenshots only, and only on the field itself. Replays recorded the values of rr-mask fields; on those versions only maskInputOptions and maskAllInputs mask input values in replays.Hide an element
Add the classrr-block to hide an element and everything inside it:
Mask every field
To mask the value of every field, call this before initializing Gleap:maskInputOptions, and to change how masked values look, use maskInputFn. Both are described under Replays and apply to screenshots too.
Class names from older versions
Earlier versions of the Ionic Capacitor documentation usedgl-mask and gl-block. From JavaScript SDK 18.1.1, gl-mask masks fields like rr-mask; earlier versions did not mask the values of gl-mask fields. Screenshots render gl-block areas blank, but replays stopped blocking them in JavaScript SDK 16.2.5: use rr-block instead.
Disable default page tracking
Gleap tracks page views by default. If you want to disable this feature, simply add the following method before initializing the Gleap SDK.Filter or disable environment data
To keep fields such ascurrentUrl or userAgent out of tickets, or to turn off environment data entirely, see Environment data.