Skip to content

Guide

Privacy-First Session Replay Tools for GDPR (2026)

Privacy-first session replay tools compared: Matomo, OpenReplay, PostHog, Sentry, Clarity and AnyReplay, by masking defaults, consent and data control.

Updated · 6 min read

A privacy-first session replay tool does three things without being asked: it masks what people type before the data leaves the browser, it records nothing until consent is given when you tell it to wait, and it lets you decide where recordings are stored and for how long. AnyReplay masks every form field by default and always masks passwords and payment fields. Matomo and OpenReplay are generally known for self-hosting, and PostHog, Sentry and Microsoft Clarity each offer masking controls; check their docs for the defaults.

No tool makes you GDPR compliant on its own. Compliance depends on your legal basis, your consent flow, your privacy notice and your contracts. What a tool can do is make the safe configuration the default one. This guide lists the properties to look for and describes each tool from its public positioning. It is not legal advice.

Privacy-first session replay tools at a glance

General positioning only, last reviewed 29 November 2026. Check each vendor's docs for current defaults.
ToolBest known forInput masking by defaultSelf-hostingConsider it if…
MatomoPrivacy-focused web analytics with recordings as an add-onCheck their docsYes, generally knownYou already run Matomo for analytics
OpenReplayOpen-source, self-hosted replayCheck their docsYes, generally knownData must stay on your own servers
PostHogProduct analytics with replay; open-source coreCheck their docsGenerally known; check their docsYou want replay and analytics under one roof
SentryError monitoring with replayCheck their docsGenerally known; check their docsReplay is for debugging errors
Microsoft ClarityFree heatmaps and recordingsCheck their docsNo, generally knownBudget decides and a hosted service is acceptable
AnyReplayReplay for web, React Native and FlutterYes: every field, in the browser or on the deviceEnterprise planYou want masking on by default and a consent switch

What "privacy-first" should mean for session replay

Masking happens before the data leaves

There are two places a recorder can hide a value: in the visitor's browser before upload, or in the player when someone watches. Only the first keeps the value out of your vendor's storage, logs and backups. Ask of every tool: when a field is masked, is the original ever sent? See input masking.

The default is masked, not recorded

A recorder that captures everything until you list the fields to hide will leak the field you forgot, or the one a colleague adds next quarter. A privacy-first default masks every input and lets you open up the ones you need. Passwords, one-time codes and card numbers should be impossible to record whatever the configuration says.

In the EU and UK, session replay generally needs consent under the ePrivacy rules because it reads from the visitor's device, and many regulators treat it like other non-essential tracking. The recorder should have a mode in which it loads but records nothing until your consent banner says yes, and stops when consent is withdrawn. Session replay and cookie consent shows how to wire that up.

You control retention, deletion and location

Storage limitation is a GDPR principle: keep recordings only as long as you need them. Look for a retention setting you can lower, a way to find and erase one person's recordings when they ask, an export, and a clear answer on where the data is stored and which sub-processors touch it. Self-hosting answers the location question completely, at the cost of running the service yourself.

A replay cannot run code

A recording is a copy of a page, and a careless player can execute scripts from it inside your dashboard. Ask whether the replay runs in a sandbox and whether script contents are stored at all.

The tools, one by one

Matomo

Matomo is generally known as privacy-focused web analytics that you can self-host, with heatmaps and session recording available as an add-on. If your organisation already chose Matomo to keep analytics on its own servers, adding recordings there keeps one data location. Check their docs for how recordings handle form fields.

OpenReplay

OpenReplay is generally known as open-source session replay built for self-hosting, with developer tools in the player. When the requirement is "recordings never leave our infrastructure", it is one of the first tools to evaluate. Check their docs for masking options and defaults. See AnyReplay vs OpenReplay.

PostHog

PostHog is a product analytics platform with session replay and an open-source core, generally known to offer an EU-hosted cloud as well as self-hosting. It offers privacy controls for replay; check their docs for which elements are masked without configuration. See AnyReplay vs PostHog.

Sentry

Sentry attaches session replay to errors, and its replay is generally known for conservative privacy defaults. It suits engineering teams who only need the sessions around an error. Check their docs for the current default masking of text, inputs and media.

Microsoft Clarity

Microsoft Clarity is a free hosted tool for heatmaps and recordings with configurable masking modes. It is a hosted Microsoft service, so review where data is processed, what the terms allow and how it fits your consent setup. See AnyReplay vs Microsoft Clarity.

AnyReplay

In AnyReplay every form value is masked in the browser, or on the device in React Native and Flutter apps, before anything is sent, unless you set maskAllInputs: false. Password, one-time-code and payment card inputs are always masked, and so is any value that passes a card-number check. ar-mask hides text you choose and ar-block leaves an element out entirely. With requireConsent: true the recorder sends nothing until you call consent(true).

Replays run in an iframe sandboxed without allow-scripts, and script contents are not recorded. Retention is set per organisation from 1 day up to the plan's ceiling, one person's recordings can be found and erased on request, the whole organisation's data can be exported, and changes are written to an append-only audit trail. Self-hosted ingest is part of the Enterprise plan. The privacy page has the details. The limits: the hosted service is the default, the server is not open source, and visible page text is recorded unless you mask it.

A checklist to run on any tool

  1. Install it on a test page with a login form, a card form and a free-text field. Open the network tab and read what is sent while you type.
  2. Check the defaults with no configuration. Then check what a new, unlabelled input does.
  3. Turn on the consent mode and confirm nothing is sent before consent and nothing after withdrawal.
  4. Find the retention setting and the shortest value it accepts.
  5. Erase one user's recordings and confirm they are gone from the dashboard and the export.
  6. Ask for the data processing agreement, the sub-processor list and the storage region.

How to mask sensitive data in session recordings walks through the first two steps, and session replay and GDPR covers legal basis, notices and retention. Teams in regulated industries can start from the fintech and compliance use case.

Frequently asked questions

Which session replay tool masks all inputs by default?

AnyReplay masks every form field in the browser or on the device by default and always masks passwords, one-time codes and payment fields. Other tools offer masking controls with different defaults, so check each vendor's docs.

Is session replay legal under GDPR?

Yes, with a legal basis, a clear privacy notice, masking of personal data, limited retention and, in most EU countries, prior consent under ePrivacy rules. The tool helps, but compliance depends on how you configure and disclose it.

Do I need consent for session replay?

In the EU and UK, generally yes, because the recorder reads information from the visitor's device. Use a recorder that can wait for consent and stop when it is withdrawn, and ask your own counsel about your case.

Is self-hosting required for GDPR compliance?

No. A hosted tool with a data processing agreement, a known storage region and proper safeguards can be compliant. Self-hosting gives you full control over location and access, in exchange for operating the service.

Matomo, OpenReplay, PostHog, Sentry and Microsoft Clarity are trademarks of their owners. AnyReplay is not affiliated with or endorsed by them. Descriptions are general and may be out of date; check each vendor's site for current features, pricing and limits. This guide is not legal advice.

Start free — 2 projects, 15,000 sessions a month

Install the snippet, record a session, and watch it back in your own language.