Session replay and GDPR

Session replay records how people use your site, which makes it personal data in most cases. That does not make it forbidden in the EU. It means you need a reason, a limit and a plan. This page is a practical checklist, not legal advice.

Replayowl player paused on an uncaught error, with the activity list showing the click and the console errors next to the recorded page
The Replayowl dashboard. Try the live demo.

Is session replay GDPR compliant?

Session replay can be used in compliance with GDPR, and it is not banned anywhere in the EU. What GDPR regulates is how you do it. A tool is not “GDPR compliant” by itself; your setup is. In practice that means six things: a legal basis, a notice to visitors, collecting as little as possible, a processor agreement with every company that touches the recordings, a retention limit, and a way to answer access and deletion requests. The rest of this page goes through each, and the checklist at the end puts them in order.

Is a session recording personal data?

Usually, yes. A recording is linked to a session ID, often to an account ID, and may show names, addresses or order details on screen. Under GDPR, data that can be linked to a person, directly or indirectly, is personal data. Treat recordings that way even after masking.

Two separate rules apply.

The ePrivacy rules (the “cookie law”, Article 5(3) of the ePrivacy Directive) require consent before you store or read information on the visitor’s device, unless it is strictly necessary for a service they asked for. Replay is not strictly necessary. The EDPB’s Guidelines 2/2023 on the technical scope of Article 5(3) (version 2.0, adopted 7 October 2024) read the rule broadly: it is not limited to cookies and can cover scripts that make the browser send information. Whether a given script triggers this rule depends on what it stores on the device and what it makes the browser send. Replayowl’s recorder sets no cookies and does not use localStorage; it keeps a session ID, the time of the last activity and the user ID you pass in sessionStorage, which is cleared when the tab closes. In the EDPB’s reading, a replay script that makes the browser send page and interaction data is likely to count as gaining access to the device even without cookies, so many sites ask for consent.

GDPR requires a legal basis for processing. For replay this is usually consent, or legitimate interest backed by a written assessment. Which one fits depends on your country’s regulator, your purpose and how intrusive the recording is.

If you decide to ask for consent, start the recorder only after the visitor agrees:

// Load recorder.js without data-endpoint, then:
onConsent(() => ReplayOwl.start({ endpoint: "https://replay.example.com/api/ingest" }));

Do you need a DPIA?

Article 35 of the GDPR requires a data protection impact assessment when processing is “likely to result in a high risk” to people. The Article 29 Working Party’s DPIA guidelines (WP248), endorsed by the EDPB, list nine criteria, among them systematic monitoring, sensitive data, large scale and data about vulnerable people, and say that processing meeting two of them will usually need a DPIA.

Session replay is a form of systematic monitoring of how people use a site. Recording logged-in areas of a large site, or pages where health, financial or children’s data appears, can easily meet a second criterion. A replay setup that records a marketing site with default masking is a much smaller risk than one that records a patient portal. If you are unsure, write the DPIA anyway: the answers to a session replay security questionnaire are most of the work.

What to write in your privacy notice

Articles 13 and 14 require you to tell visitors what you collect and why. For session replay, say:

  • that you record how visitors use the site (pages, clicks, scrolling, typing in masked form), and for what purpose, such as fixing errors and improving the site;
  • the legal basis, and how to withdraw consent if you rely on it;
  • who processes the recordings: your hosting and storage providers if you self-host, or the replay vendor;
  • where the data is stored, and the transfer mechanism if it leaves the EEA;
  • how long you keep recordings;
  • how to ask for access or deletion.

Collect less

  • Mask in the browser. Masking on the server is too late, since the data has already left the device. Replayowl masks every text input, and email addresses and runs of 12 to 19 digits in page text, before upload. Fields it recognizes as password or card fields can never be unmasked. Page URLs and titles are recorded as they are, so keep personal data out of them.
  • Block whole areas. Mark account pages, health data or messages with data-ro-block so they are not recorded at all.
  • Record only where it helps. Put the script on the pages you need to debug, not on every page by default.

Details are in masking and privacy.

Know who processes the data

With a hosted replay tool, the vendor receives every session. You need a data processing agreement, a transfer mechanism if the data leaves the EEA, and a line in your privacy notice. Some vendors are not even your processor: Microsoft Clarity’s terms make you and Microsoft independent controllers. See Replayowl vs Clarity.

With a self-hosted tool, recordings go only to infrastructure you control. Your hosting and storage providers are processors you probably already have agreements with, and there is no additional vendor in the chain. You can pick a bucket region in the EU and keep the whole flow there.

Keep it short

Decide how long you keep recordings and write it down. Thirty to ninety days is common for debugging and support. Self-hosted Replayowl keeps recordings until you delete them, so set a lifecycle rule on your bucket and a scheduled job that removes old database rows. The hosted service deletes them after your plan’s retention period. See storage and your data.

Answer access and deletion requests

If someone asks for their data or asks you to delete it, you need to find their sessions. Passing your own user ID to the recorder with ReplayOwl.identify() makes that a search instead of a guess. Delete a session from the dashboard or with DELETE /api/sessions/:id, which removes both the recordings and the database rows.

Checklist

Before you install anything:

  1. Write down the purpose: which problems you want recordings to answer.
  2. Pick the pages to record. Leave out pages you do not need, especially account, health and payment pages.
  3. Decide your legal basis, and whether you ask for consent before recording.
  4. Decide whether you need a DPIA, and write it if you do.
  5. Check the vendor’s role: processor, or independent controller. Sign a data processing agreement if it is your processor.
  6. Know where recordings are stored, and the transfer mechanism if they leave the EEA.

When you set it up:

  1. If you rely on consent, start the recorder only after the visitor agrees.
  2. Keep default masking on. Do not unmask fields without a reason you can write down.
  3. Mark areas that show names, addresses, messages or account data with mask or block attributes.
  4. Test masking: paste your templates into the PII masking tester and check a real upload in DevTools.
  5. Turn off what you do not need, such as console logs that may contain personal data.
  6. Pass your own user ID only if you need to find a person’s sessions later.

Tell people:

  1. Add session replay to your privacy notice: what, why, legal basis, who processes it, where, how long.
  2. Add the vendor to your record of processing activities.

Keep it running:

  1. Set a retention period and enforce it automatically.
  2. Make sure you can find and delete one person’s sessions.
  3. Limit who can watch recordings, and remove access when people leave.
  4. Review new pages and templates for unmasked personal data before they go live.
  5. Recheck the vendor’s terms and sub-processors once a year.
  6. Write down who decided all of this, and when.

For how Replayowl handles each of these, read security and privacy.

Questions and answers

Is session replay legal in the EU?

Yes, session replay is not banned by GDPR. It is processing of personal data, so it needs a legal basis, a notice to visitors, data minimisation, a retention limit and processor agreements. Consent is often needed because of the ePrivacy rule on device storage and access.

Is Hotjar or Microsoft Clarity GDPR compliant?

No tool is compliant on its own; compliance depends on how you configure and use it. Check where the data goes and in what role the vendor acts. Microsoft Clarity's terms, for example, make Microsoft an independent controller, see Replayowl vs Clarity.

Does masking make recordings anonymous?

No. A masked recording is still tied to a session and often to an account, so it remains personal data. Masking reduces what is collected; it does not take the recording out of GDPR.

Can I use legitimate interest instead of consent?

For the GDPR legal basis, sometimes, with a written balancing test. It does not remove the separate ePrivacy consent requirement for storing or reading information on the device where that rule applies. Ask your regulator's guidance or a lawyer for your case.

Try Replayowl on your own site

Hosted

Free for 1,000 sessions a month

Then $29 a month for 10,000. Paste one script tag and watch your first session a minute later.

Start free

Self-hosted

Free, no session caps

One Cloudflare Worker with your own R2 bucket and D1 database. Nothing is sent to us.

Self-host on Cloudflare

Or watch it record you first in the live demo, no sign-up.