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
| Data | What is kept |
|---|---|
| Tab video | The 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). |
| Audio | The user’s microphone and the agent’s voice, as spoken. Audio is not masked. |
| Page replay | A DOM recording (rrweb) with the masking below. |
| Console | Messages, 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. |
| Network | For fetch and XHR: method, address without query string, status and timing. Never headers or bodies. |
| Clicks | A CSS selector and up to 60 characters of a button or link’s text. |
| Page address | Origin and path only. Query strings are dropped. |
| Transcript | What the user and the agent said, as text, with card numbers removed. |
| Browser | The user agent string. |
| User | Only 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 itstypeispasswordorhidden, itsautocompleteiscc-number,cc-csc,cc-exp,current-password,new-passwordorone-time-code, or its name or id looks like card, cvv, cvc, iban, ssn or pan. - Editors. Text inside a
contenteditableelement, 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 thevalue,placeholder,title,altandaria-labelattributes. - 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:
contenteditableelements, and iframes in design mode. - Marked elements: anything with
data-showbug-mask,data-showbug-blockordata-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.
Masking attributes
Add these to your own HTML. Those on an element apply to the element and everything inside it.
| Attribute | Put it on | Effect |
|---|---|---|
data-showbug-mask | Any element | Replay: 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-block | Any element | Replay: replaced by an empty box of the same size. Video: covered. Clicks inside it are not logged. |
data-showbug-unmask | A form field, an editor or an iframe | A 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-private | Any element | The original name for data-showbug-block. It keeps working. |
data-mask-all-text | The loader’s script tag | Hides 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.