Skip to content

Microsoft Clarity Masking: Check a Page Without Using Real Customer Data

Check Microsoft Clarity masking where customers type and where your site repeats their details. Test a form and confirmation with fictional data.

Paper form and confirmation slip with purple strips covering sample fields
Jack Lee
2 Min Read
Share
On This Page

A repair booking form can hide a name while someone types, then show that same name in the confirmation message. In Clarity, check the typed value and the confirmation separately. They can be treated differently.

Check every place the value appears

Start with a test copy of the booking page and a fictional value such as Demo Fixture Name. Enter it in the name field, submit the form and check the confirmation message. Include any validation message, booking summary or drawer that repeats the value.

We passed the same fictional name into Microsoft's open-source text sanitizer under three privacy settings. This local test exercised the sanitizer alone. It did not create or inspect a recording.

Test inputLocal result
Fictional name treated as text inputReplaced with masking characters.
Same name treated as page text under selective maskingThe full fictional name stayed visible.
Same page text under the explicit mask privacy levelThe name was replaced with a mask symbol.

Mask the confirmation at its source

Project admins can check Settings → Masking. Balanced is the default and masks some sensitive-looking text, such as numbers and emails. Strict masks page content throughout, while Relaxed leaves ordinary page content visible by default. Microsoft documents masking of input boxes and dropdowns in all three modes.

For a confirmation panel you control, add data-clarity-mask="True" to the element that contains the sensitive output. If the page builder controls the markup, use a CSS selector in Clarity settings that targets the same panel.

  1. Inspect the confirmation after submitting. Check that the element with the mask still wraps the text after the interface updates.
  2. Wait up to an hour for changes to take effect. In an authorised test project, create a new recording using the same fictional data and inspect both the input and the confirmation.
  3. If a public status message should remain readable, put it outside the block containing the customer value. Recheck both on the same submission.

Keep this test separate from tracking successful form submissions. Once you've checked masking, use the rage and dead click workflow to investigate friction.

Frequently asked questions

What does masking look like in practice?

The visitor sees their booking details as usual. In the test recording, look for masking characters where the fictional name appeared.

Should I rely on Balanced mode for names?

Mark the element that renders the name. An ordinary alphabetic name can look like any other sentence to the selective masker.

Will a new masking rule change older recordings?

No. Clarity applies changes to new recordings. Verify the new rule on a fresh test session.

Share This Article