Skip to content

Privacy & masking attributes ​

Replora records the structure of your pages, not a video, so it can leave things out before they ever leave the visitor's browser. Typed text is masked by default, passwords and card numbers always are, and you decide which other elements are masked or left out: with a class or attribute in your HTML, or with CSS selectors in the website's settings that apply without touching the site.

8 minutesDevelopers, site owners, privacy officersSingle user · SaaS

Masked by default ​

WhatHow it is recorded
Everything typed into input, textarea and selectOne * per character, unless the site allows the field (see unmask). Switch Censor all input fields off to record typed text except secrets.
Password fieldsAlways masked, also after a "show password" button turns them into text fields.
Payment card fieldsAlways masked: autocomplete values starting with cc- (card number, CVC, expiry…).
Fields named like secretsAlways masked when name or id contains pass, pwd, card, cvc, cvv, iban, ssn, secret, token or ends in pin; also autocomplete values containing password.
Rich-text editors ([contenteditable])Their text is masked like typed text.
Labels of clicks on masked elementsNever sent (click reports use a label only for unmasked elements).
Form analyticsNever values: only whether a field holds something (true/false), times and corrections.
Everything, when the rules can't loadIf the site's rules don't arrive within 1.5 s and the tab has none from an earlier page, all text is masked for that page; clicks, movement and the layout are still recorded.

Not masked by default: the visible text of the page. Mask what is personal (names, addresses, account numbers, order details) as below.

Classes and attributes in your HTML ​

In your HTMLEffect in the recording
class="sr-mask" or data-sr-maskThe element's text is recorded as *** (also its children).
class="sr-block" or data-sr-blockThe element is left out: replays show an empty box of the same size. Forms and canvases inside it are not tracked either.
class="sr-ignore"Input events on the element are not recorded.
data-sr-unmaskTyped values in this field (or any field inside the element) are recorded, unless it is a secret field.
data-sr-form="Name"Marks a form (also a form built without <form>) and names it in form analytics.
data-sr-label="Text"The label clicks on this element (or inside it) get in reports, instead of its visible text.
html
<p class="sr-mask">Ada Lovelace, 12 Analytical Street</p>
<div data-sr-block id="support-chat"></div>
<input name="q" type="search" data-sr-unmask>
<button data-sr-label="Buy now (hero)">Buy</button>

Mask early

The classes and attributes must be in the HTML when the element appears. Adding sr-mask later doesn't change what was already recorded.

Site-level rules (no code change) ​

Where to find them: Websites › your site › Settings, cards Privacy and sampling and Recording options. The tracker loads them (GET /c/{key}) before it records anything, so a change applies to every new page view within five minutes, without a new snippet.

SettingValuesEffect
Mask the text of these elementsOne CSS selector per line, up to 30, each up to 200 charactersLike sr-mask, e.g. .price or #account.
Leave these elements outSelectors, up to 30Like sr-block.
Record what is typed in these fieldsSelectors, up to 30Like data-sr-unmask, e.g. input[name=q] for a search box. Passwords and card numbers always stay masked.
Censor all input fieldsOn (default) / offOn: everything typed is *** except allowed fields. Off: typed text is recorded, except passwords, card numbers and other secret fields.
Remove these query parameters from addressesNames, up to 50, each up to 64 characters; * removes the whole query stringRemoved on the server before anything is stored: page addresses, in-app navigations, grouped addresses, the landing page and request addresses. Applies to new recordings.
Never record these IP addressesUp to 100: an address, a range (10.0.0.0/8, IPv6 too) or a pattern (203.0.113.*)Sessions from these addresses are never stored.
Never record these pagesUp to 20 page rulesThose pages are paused; the rest of the session is recorded.
Only record visits that start onUp to 20 page rulesOther sessions are not recorded.
Record this share of sessions1–100 %Sampling by session.
Record frames from other domainsOff (default) / onSee frames.
One visitor across subdomains ofA domain, e.g. shop.comShares the visitor (returning visitor, identity, opt-out) across subdomains in one first-party cookie.
Record network request detailsOff (default) / onRecords request and response bodies; see below.
Record canvas drawingsOff (default) / onImages of <canvas> drawings about once a second (blocked canvases are skipped).
How addresses are shownDomain, Path, Query, Hash fragmentOnly changes what the dashboard shows; the whole address is kept.

Selectors with {, }, <, > or ; are refused, and the tracker drops any selector the browser can't parse (an invalid selector would otherwise stop the recording).

Page rules: part of the address (/checkout), a pattern with * (*/orders/*), =address for an exact page, ^address for "begins with". Matching ignores case.

Removing parameters

Use Remove these query parameters for tokens, emails and order numbers in addresses (token, email, order). Parameter names match case-insensitively, and item also removes item[].

Allow typed values ​

Typed values are recorded only in fields you allow, and never in secret fields:

html
<!-- One field -->
<input name="q" data-sr-unmask>

<!-- Every field of a form -->
<form data-sr-unmask action="/search"> … </form>

Or list selectors under Record what is typed in these fields.

Network and console ​

With Record network request details off (default), network calls carry only method, URL, status, duration and size.

With it on, the bodies of the page's own fetch and XMLHttpRequest calls are recorded too:

  • text only (text, JSON, XML or form data), at most 2000 characters;
  • in JSON and form data, values of keys that look secret are replaced by ***: keys matching pass, pwd, token, secret, auth, card, cvc, cvv, ssn, iban, session, cookie, api-key / api_key / apikey, credential, otp, or exactly pin;
  • never streams (server-sent events), never calls to the Replora server itself.

Console output (console.log, info, warn, error) is always recorded, at most 200 messages a page. Don't log personal data to the console on pages you record.

On the server ​

MeasureDetail
IP addressesNever stored in full: the last IPv4 octet (or last 80 bits of IPv6) is zeroed. With Anonymize visitor IP addresses more strongly (account Settings, card Visitor privacy), the last two octets (all but the first 32 bits of IPv6).
Allowed domainsData is only accepted from the website's allowed domains (and their subdomains).
Share linksA public share link hides the visitor's IP address and identity; identities, tags, custom event properties and the visitor id are removed from what it serves.
RetentionRecordings are deleted after the site's Keep recordings for period (7, 30, 90, 180 or 365 days, capped by the plan) every night.
DeletionDeleting a session, a website or an account deletes its recordings; modules delete their own data with the site.

The tracker does not read Do Not Track or Global Privacy Control by itself. To honour them, set window._srOptOut = true before the script loads; see Consent and opting out.

Browser storage ​

The tracker keeps these first-party values on your site's domain (nothing is shared across sites):

NameWhereHolds
_sr_sessionsessionStorageThe tab's session id, start and last activity
_sr_stoppedsessionStorageA session the site's rules excluded (so later pages stay off)
_sr_rules_<key>sessionStorageThe site's rules, 5 minutes
_sr_experiments, _sr_surveyssessionStorageRunning A/B tests and active surveys, briefly cached
_sr_x_force, _sr_x_redirect_<id>sessionStorageA/B preview choice; redirect loop guard
_sr_diag, _sr_editsessionStorageDiagnostics panel on; tab is in the A/B editor
_sr_visitorlocalStorageWhen the browser was first seen (returning visitor)
_sr_vidlocalStorageThe anonymous visitor id (a random UUID)
_sr_identitylocalStorageThe identity from identify
_sr_optoutlocalStorageOpted out
_sr_x_<id>localStorageThe visitor's A/B test variant (or out)
_sr_sv_<id>, _sr_sv_<id>_n, _sr_sessionslocalStorageSurveys answered, closed or skipped; session count for survey targeting
_sr_vCookie (only with One visitor across subdomains of)The four visitor facts above, for the chosen domain, 2 years, SameSite=Lax, Secure on HTTPS

No cookie is set unless you choose a domain to share visitors across.

Replora: see what your visitors see.