GuidesWorkspace

Keep private data out of replays

See what Quality hides from recordings by default, and mark the parts of your pages that should be hidden or left out.

Before you start

  • Access to your site's code

Every comment carries a replay of the 30 seconds before it, with the console, network requests and clicks. Quality hides private data in the browser, before anything is uploaded, and its servers apply the same rules again when a recording is stored and played back.

What is hidden by default

  • What people type. Every form field is recorded as ***, including fields that were already filled in. Button labels stay readable.
  • Credentials. Authorization, cookie, API-key and CSRF headers are replaced with [REDACTED], and so are values named like password, token, secret or session in request and response bodies, web addresses and console messages. Bearer tokens written inside text are removed too.
  • Field values in the click log. The list of actions never copies what was in a field.

You don't need to set anything up for this.

Hide text on your page

For personal details shown on screen, such as names, balances or addresses:

  1. Add data-quality-mask to the element that shows them, for example <div data-quality-mask>.
  2. Replays keep the layout but replace its text, and the text of everything inside it, with asterisks.

Leave a part of your page out

For areas that must never leave the browser, such as an embedded payment form:

  1. Add data-quality-block to the element, for example <section data-quality-block>.
  2. Replays show an empty box of the same size. Nothing inside it is recorded.

A canvas's text can't be masked, so put data-quality-block on any canvas that draws private information.

Check it worked

  1. Leave a comment on the page you changed.
  2. Open the thread's replay and check that the text is hidden or the area is an empty box.

Good to know

  • Screen recordings are video. The attributes above apply to replays, not to a screen recording, which films what is on screen. Close or hide private details before you record. The console and network logs saved with a recording are cleaned the same way as a replay's.
  • Who sees the logs. Guests don't see the console, network requests or actions behind a replay. On a shared link, people outside the workspace see them only if whoever shared the thread chose to include them.

For the full details, see Session playback and Security. To watch a replay, see Review a bug report.

Features in this guide

  • Privacy controls. Keep private data out of replays: typed text is masked by default, credentials are removed, and you can hide or block parts of your pages.
  • Session replay. Every comment carries a replay of the last 30 seconds in the browser, with the console, network requests and clicks, so developers see what happened.Replays are kept 7 days on Free, 6 months on Team, 1 year on Business, unlimited on Enterprise.

Last updated View as Markdown