Skip to content
Erasure

Delete a visitor's data when they ask

3 min read · Updated · By the Reveata team

Under privacy laws such as the GDPR, people can ask you to delete the data you hold about them. You are the controller of your visitors' data and Reveata processes it for you, so you answer the request, and Reveata gives you the tools. Only owners and admins of a website can use them. This guide walks through a request from start to finish.

1. Confirm who is asking

Before deleting anything, make sure the request comes from the person the data is about, for example by replying from the email address they used with you. How you verify is your process; Reveata doesn't do it for you.

2. Find the person

Open Visitor journeys for the website and search by name, email, user id or visitor id. Identified visitors are easy to find.

If the person was never identified, ask them for their visitor id: they can read it on your website with window.reveata.visitorId() in the browser console, or from the _dt_v cookie on your domain. In cookieless mode, visitor ids change every day and can't be traced back to a person, so there's usually nothing that identifies them to delete.

3. Consider giving them a copy first

People who ask for deletion sometimes also want to know what you held. Download data on the profile gives you one JSON file to send them. See Give a visitor a copy of their data.

4. Delete

On the visitor's profile, under Privacy requests, choose Delete this visitor's data, type delete and confirm. This can't be undone. Reveata then:

  • Deletes the profile and identify details, every visit and every raw event, and removes them from the realtime view.
  • Anonymises their payments. Payments are your financial records, so they stay with amount, currency, date and type, but lose the customer's name and email, the visitor and visit, ad click ids and identify details. Revenue totals and revenue by source don't change. Linked customer rows and subscriptions lose the name and email too.
  • Removes affected exports: exports being prepared stop, and finished export files covering the person's active days are removed.
  • Recomputes reports for every day they were active, within a few minutes.

5. Handle several devices

Someone who used a phone and a laptop may be two visitors. If both were identified with the same email, erase by email through the API: it removes everyone identified with that address. Erasing by email answers 404 when Reveata holds nothing for it.

6. Don't forget your payment provider

Reveata anonymises its copy of the payments, but payments you also hold at your payment provider are not changed there. Delete or redact the customer at the provider as well, if the request covers it.

7. Reply to the person

Tell them what you deleted. The erasure answers with what it removed: visitor ids, the number of events, visits and visitors deleted, the payments and subscriptions anonymised, and the days whose reports are recomputed. Reveata keeps a security record of every erasure with the counts, not who it was about.

Deletion doesn't stop tracking

If the person visits again with the same browser, a new profile starts. If they want that to stop, they can opt out on your site with reveata('optout'), or you can turn on data-respect-dnt="true" so browsers sending Do Not Track or Global Privacy Control are skipped.

What to do next

  • Write a short internal process: how you verify, who deletes, and what you reply.
  • Make sure at least two people on your team have the admin role.
  • Read Visitor data requests for every detail.

Do it in Reveata

In the dashboard

  1. Open Visitor journeys and search for the person.
  2. On their profile, under Privacy requests, choose Delete this visitor's data.
  3. Type delete and confirm.

With the API

Create an account access token with the Visitor data requests permission under Account → API / MCP (website API keys can't use it). Then erase one visitor, or everyone identified with an email:

bash
curl -X DELETE https://reveata.com/api/v1/websites/example.com/visitors/VISITOR_ID \
  -H "Authorization: Bearer $REVEATA_TOKEN"

curl -X POST https://reveata.com/api/v1/websites/example.com/visitors/erase \
  -H "Authorization: Bearer $REVEATA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]"}'

With an AI assistant

The MCP server can't erase data; deletion is in the dashboard and the API only. An assistant can help you find the person first:

Use search_visitors to find visitors with the email [email protected] and list their visitor ids, then get_visitor_journey for each so I can confirm it's the right person.

Try it in your dashboardOpen your website in Reveata and follow the steps above with your own numbers.
Open dashboard →
Was this guide useful?

Next guides