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 Project settings for your project.
  2. Go to the Recording tab.
  3. Click Element masking.
  4. Click New masking rule.
    [block:image]
    {
    "images": [
    {
    "image": [
    "https://files.readme.io/5791c2d-ElementMasking.png",
    null,
    "Element masking"
    ],
    "align": "center",
    "sizing": "30% "
    }
    ]
    }
    [/block]
  5. Choose a CSS selector.
  6. 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
  1. (Optional) Enter a note.
  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: