klickbeetracking
Consent & GDPR

Session replay and GDPR: is consent required?

Published November 19, 2026

Session replay records what visitors do on your pages, so it is not covered by the analytics consent exemption. What the CNIL says, what to mask, how long to keep recordings and how to record only after consent.

Yes, in practice session replay needs consent. In France, the draft recommendation on session replay tools that the CNIL put to public consultation in February 2026 states that the purposes pursued with these tools are subject to the prior consent of users, and its self-assessment grid for consent-exempt analytics requires replay features to be switched off. The same reasoning applies across the EU: replay is not strictly necessary to deliver your site, so the ePrivacy consent rule applies, and the GDPR then governs what you record, who sees it and how long you keep it.

The good news: you can still use replay to fix bugs and improve your pages. You just have to run it on visitors who said yes, mask what you do not need, and delete recordings once they have served their purpose.

Why does session replay need consent?

Two sets of rules apply, one after the other.

  • The ePrivacy rule on devices. Article 5(3) of the ePrivacy Directive (Article 82 of the French data protection act) requires consent before storing or reading information on a visitor's device, unless it is strictly necessary for the service the visitor asked for. A replay script needs some identifier to stitch a session together, so this rule is triggered whether the identifier sits in a cookie or in local storage. The EDPB confirmed in its Guidelines 2/2023 that local storage is covered once information leaves the device.
  • The GDPR for everything recorded. The CNIL notes that replay tools rebuild individual browsing sessions and collect data that identifies users directly or indirectly, whatever the configuration. That makes the recordings personal data, with all the GDPR principles attached: minimisation, limited retention, security.

The CNIL's draft is explicit on the first point. It says the read and write operations behind replay are not strictly necessary to provide the service, since the publisher could provide it without them. So no exemption applies, and consent comes first.

Why isn't replay covered by the analytics exemption?

France has a well-known exemption for audience measurement: some analytics tools can run without consent if they produce anonymous statistics only, serve the publisher alone and do not track a person's browsing (see our guide to the CNIL audience measurement exemption).

Replay is the opposite of anonymous statistics. Its whole point is to watch one person's session. The CNIL's self-assessment tool for audience measurement lists, among the settings needed to stay exempt, the deactivation of any session replay feature.

Counting visits can be exempt. Watching a visit is not. If your analytics tool also records sessions, the recording part needs consent even if the counting part does not.

What does the CNIL draft recommendation say?

The CNIL consulted on a draft recommendation on session replay tools in February 2026, with a public consultation open from 25 February to 22 April 2026. The final text may differ from the draft on some points, so check cnil.fr for the final version before relying on it. The main lines of the draft are below.

Which purposes are acceptable?

The draft names three purposes, which must be defined before you deploy the tool, never after looking at the recordings:

  • Detecting and understanding technical errors that standard metrics do not reveal.
  • Improving the user experience: spotting friction such as rage clicks or false clicks.
  • Support: replaying the session of a customer who contacted you about a problem.

It also asks you to prefer less intrusive tools when they do the job. Its example: replay should not be used for ad retargeting, because gentler options exist.

What should the consent request say?

Each purpose must be presented with a short title and a brief description before the visitor chooses. The CNIL suggests wording along the lines of "we use tools that record your journey to find and fix technical errors". As a good practice, it encourages a specific mention of replay on the first layer of the consent banner, depending on how far the tracking goes. Withdrawing consent must be as easy as giving it, and recording must actually stop when it is withdrawn.

What should you mask in session replay?

The draft recommends that replay tools always offer a masking tool covering images, forms, text fields and dynamically filled fields (such as account details), and that masking apply to all of these by default when nothing has been configured. It also recommends blocking the collection of passwords, payment details and other sensitive data entirely.

A practical checklist for your own site:

  • Every form field: names, emails, phone numbers, addresses, messages.
  • Account pages, order confirmations and invoices, which display personal data without the visitor typing anything.
  • Search boxes and chat widgets, where people type surprising things.
  • Anything about health, money, or other sensitive categories.
  • Pages behind a login, unless the purpose truly needs them.

The safest default is the CNIL's own: mask everything sensitive, and unmask only what a defined purpose needs.

How long should you keep session recordings?

The GDPR only says "no longer than necessary". The draft gives concrete orders of magnitude in its annex:

  • Support: a few hours after the end of the session.
  • UX improvement and bug detection: a few months, so you only look at problems on the current version of the site.

It also suggests ways to record less in the first place: random sampling of sessions, recording only when a trigger event happens, or recording everything but deleting quickly the sessions where nothing went wrong. Your tool should let you delete an individual session, for example when someone asks you to erase their data.

How do you run session replay only after consent?

  1. Add replay as its own purpose in your consent banner. Do not hide it inside "analytics" or "performance", especially if your audience measurement relies on an exemption.
  2. Do not load the replay script before consent. Load it, or switch recording on, only once the visitor accepts that purpose.
  3. Stop on refusal or withdrawal. No recording when the visitor refuses or ignores the banner, and recording stops as soon as consent is withdrawn.
  4. Keep proof of consent. The CNIL expects you to be able to show how consent was collected.
  5. Update your privacy policy. Name the tool, the purposes, the retention period and the recipients.
  6. Limit who can watch. Give replay access to the people who need it, and review that list when people change roles or leave.

Is it different outside France?

The principle is the same everywhere in the EU, because the rule on devices comes from the ePrivacy Directive. Only the details vary.

  • Spain. The AEPD's guide on audience measurement cookies (January 2024) lists the measurements it considers strictly necessary, all of them aggregated statistics, and says any processing beyond that list needs consent. Individual session recordings are not on the list.
  • Germany. Section 25 of the TDDDG requires consent for storing or reading information on a device, unless it is strictly necessary for a service the user explicitly requested. Replay is hard to fit into that exception.

For a country-by-country view of analytics without consent, see cookieless analytics and consent by country.

How does Klickbee handle replay?

Klickbee Tracking includes session replay alongside cookieless analytics, heatmaps and funnels. Form inputs are masked by default, and you can mask any other element by adding data-kb-mask or the .kb-mask class, for example on an order summary or an account block:

<div class="kb-mask">Order for Jane Doe, 12 rue de la Paix</div>

Replays are kept 7 days on the free plan and 60 days on Pro. Klickbee offers cookieless audience measurement designed with the CNIL exemption in mind, but replay goes beyond that exemption: in France, it generally needs consent. Klickbee's built-in consent banner gates the ad pixels you add in Klickbee, not replay, so plan how you collect consent for replay; the privacy and consent page of the help center covers the options, and sessions and heatmaps covers the replay settings.

If you are weighing replay tools, our Klickbee vs Hotjar comparison looks at the differences, and the CNIL-compliant cookie banner checklist helps you set up the consent side.

You can try replay, heatmaps and analytics on the free plan: one site, 1,000 sessions a month, 7 days of replay history.

This article is general information, not legal advice.

← All articles