Creating masking rules

To mask or exclude elements in your user sessions, you can create rules masking rules from your organization settings. You can create up to twenty rules on a project. Rules are applied in an ascending order, starting with the rule at the bottom of the list. More specific rules should be placed further down the list. Passwords are automatically masked and cannot be unmasked. The password masking rule is at the top of the masking rules list.

To create masking rules:

  1. Go to Organization settings.
  2. On the Projects tab, choose a project.
  3. Scroll to Element masking and click + New rule.
  4. Choose a CSS selector.
  5. Select the type of rule. The following types are available:
TypeDefinition
MaskHides text from elements
UnmaskShows text that was masked due to a previous rule
ExcludeReplaces the element with an overlay of the same size
IncludeRecords an element that is hidden by a previous Exclude rule
  1. (Optional) Enter a note for yourself or your team.
  2. Click the Create button.

If you need to change the order of the rules in the list, click and hold the grip icon and drag the rule to a new position.

🚧

Rules applied only to new sessions

Any changes to masking rules, new rules or list order, apply only to new sessions and cannot be applied to existing session recordings.

🚧

Priority

Rules defined via Smartlook Privacy API have always priority over rules defined in your organization settings.

Related articles:


Did this page help you?