Skip to content

Configure

Privacy and masking

What is recorded, what is hidden by default, and how to mask more.

Before a report

Until someone clicks Start recording and allows tab sharing and the microphone, nothing leaves the page. The loader keeps a short rolling buffer in memory so a report can show what happened just before it: the last 100 console messages, 100 network requests, 10 clicks and 30 in-app route changes. It is discarded with the page.

The widget’s consent panel tells the user what will be recorded, and what is and is not hidden, before they start.

What a report records

DataWhat is kept
Tab videoThe shared tab only. Sharing a window or the whole screen is refused. Form fields and editors are covered with boxes before the video is recorded (see below).
AudioThe user’s microphone and the agent’s voice, as spoken. Audio is not masked.
Page replayA DOM recording (rrweb) with the masking below.
ConsoleMessages, cut to 1,000 characters, with tokens, JWTs, email addresses and password or key values replaced by [REDACTED]. This is pattern matching, so treat it as best effort.
NetworkFor fetch and XHR: method, address without query string, status and timing. Never headers or bodies.
ClicksA CSS selector and up to 60 characters of a button or link’s text.
Page addressOrigin and path only. Query strings are dropped.
TranscriptWhat the user and the agent said, as text, with card numbers removed.
BrowserThe user agent string.
UserOnly what you pass to identify(): userId, accountId, plan. Your page supplies it and Showbug does not verify it.

Hidden by default

In the page replay

  • Form field values. Typed text in every text-like field (text, email, number, search, date, text area, the choice in a dropdown, a chosen file’s name) shows as * characters, one per character. The state of checkboxes and radio buttons is recorded.
  • Password, card and one-time-code fields, and hidden inputs, are replaced by ********, so even their length is hidden. A field counts as sensitive when its type is password or hidden, its autocomplete is cc-number, cc-csc, cc-exp, current-password, new-password or one-time-code, or its name or id looks like card, cvv, cvc, iban, ssn or pan.
  • Editors. Text inside a contenteditable element, such as a rich-text editor, is masked like a field, and clicks inside it are not logged.
  • Card numbers (13 to 19 digits that pass the Luhn check) are replaced with [REDACTED] in page text and in the value, placeholder, title, alt and aria-label attributes.
  • Anti-forgery tokens. The content of <meta> tags whose name contains csrf, xsrf, token, nonce or secret is dropped.
  • In the dashboard, hidden fields are drawn as a Hidden for privacy placeholder.

In the tab video

These regions are painted over with solid boxes before a frame is recorded or sent to the voice agent:

  • Every text-like field, whatever its name: text, email, number, search, date, file, text area and dropdown. A one-time code, a PIN, an API key, or a password box switched to plain text by a “show” button is covered without any naming rule. Password, card and one-time-code fields stay covered even with data-showbug-unmask.
  • Editors: contenteditable elements, and iframes in design mode.
  • Marked elements: anything with data-showbug-mask, data-showbug-block or data-private.
  • Card numbers written in page text, and any field that holds one, even an unmasked field.
  • Frames and shadow DOM. Fields inside open shadow roots and same-origin iframes are covered too. An iframe from another origin, or a sandboxed one, cannot be inspected, so it is covered whole unless it carries data-showbug-unmask. A same-origin iframe that is scaled or rotated with CSS is always covered whole, because boxes cannot be placed inside it reliably.

Checkboxes, radio buttons, buttons, sliders and colour pickers are not covered: nothing typed is in them. A field or frame added while a report is running is covered within about a second.

What is not hidden

Say these plainly to your own users:

  • Page text. Names, balances, ticket contents and anything else the page prints are in the video and the replay as the user saw them, including text your app builds from what someone typed. Hide it with data-showbug-mask or data-showbug-block, or turn on data-mask-all-text.
  • Most attributes. Link addresses (with their query strings), image, script and stylesheet addresses, data-* attributes, ids and class names are recorded as they are. Only the attributes listed above are masked. A dropdown’s list of options is page text.
  • Anything drawn instead of written: text inside images, canvas or video, and plug-in content, unless it sits inside a covered region.
  • Closed shadow roots. Fields and text inside them cannot be found. Put data-showbug-block on the element that hosts one.
  • A card number split over several elements is not recognised as one number in page text. Fields are covered whatever they hold.
  • Audio. The voice agent is told to interrupt anyone who starts reading out a card number, password or code, but the audio itself is not edited: what is said stays in the recording and goes to the voice provider. Card numbers are removed from the written transcript only.
  • The user you identify. Values passed to identify() come from your page and are not verified; anyone who can run script on the page can set them. Treat them as a claim.
  • Masking happens in the browser. It runs in the visitor’s browser before anything is uploaded. The server removes card numbers from transcripts, console messages and click text, and strips query strings from addresses, a second time, but it cannot mask replay events or video after the fact.

Masking attributes

Add these to your own HTML. Those on an element apply to the element and everything inside it.

AttributePut it onEffect
data-showbug-maskAny elementReplay: text is masked, and the layout stays so you can still see where things are. Video: the element is covered. Clicks inside it are not logged.
data-showbug-blockAny elementReplay: replaced by an empty box of the same size. Video: covered. Clicks inside it are not logged.
data-showbug-unmaskA form field, an editor or an iframeA field or editor is recorded as typed and left uncovered. Card numbers are still hidden, and password, card, one-time-code and hidden fields stay hidden. On an iframe, its content is left uncovered in the video.
data-privateAny elementThe original name for data-showbug-block. It keeps working.
data-mask-all-textThe loader’s script tagHides all page text, not just fields. Replay: every piece of text is starred, and so are the title, alt, aria-label and placeholder attributes. Video: the box of every element that holds text is covered, and a page with thousands of text elements is covered whole. There is no opt-out: data-showbug-unmask does not apply to text. Text drawn in images or canvas, and the value of input buttons, still show.
<!-- Hide a customer's address but keep the layout -->
<div data-showbug-mask>12 Example Street, Pune</div>

<!-- Replace a whole panel with a placeholder box -->
<section data-showbug-block>…billing details…</section>

<!-- A harmless field you want to see in replays and in the video -->
<input name="search" data-showbug-unmask />

<!-- Hide all page text, not just fields: an attribute on the loader tag -->
<script src="https://showbugai.com/sdk/loader.js"
  data-key="pk_…" data-api="https://api.showbugai.com"
  data-mask-all-text async></script>

The tab video

The video is a real recording of the shared tab’s pixels, so page attributes cannot change what was on screen after the fact. Instead the widget draws the shared tab onto a canvas, paints solid boxes over the regions listed under “Hidden by default”, and records and sends only that canvas. If it cannot work out where the boxes go, it covers the whole frame.

The video still shows everything that is not covered

Plain text such as names, balances, an API key printed in a code block, and images are recorded as the user saw them. For a screen that must never be recorded that way, mark it with data-showbug-block, turn on data-mask-all-text, or keep the widget off that page.

Who processes the data

  • Showbug stores recordings and replays in Amazon S3 in the Mumbai region (ap-south-1). See the FAQ for retention.
  • OpenAI runs the voice agent. During a report it receives the user’s voice and a reduced screenshot of the tab (768 pixels wide) at most every 4 seconds, when the screen changes. The screenshots come from the masked video, so covered regions are boxes there too. After the report, the transcript, console errors, failed requests, clicks and page address are sent to it to write the summary.
  • Your tracker (Linear, GitHub Issues or your webhook) receives the ticket: summary, steps, page address, identified user, browser, a transcript excerpt, console errors, failed requests, the last clicks and a link to the session. The link needs a dashboard sign-in.
  • Slack, if a project posts to a channel, receives the title, severity, area, the first 400 characters of the summary, what was expected and what happened, the page address, the identified user, the project’s name and a link to the session.
  • Amazon SES sends the notification emails your members chose (and invitations). A report email carries its title, severity, project, page address and the start of the summary; a mention email carries the comment.