A deletion request sounds simple: find the person, press delete. In analytics it is harder, because the person is usually known only by a random id, their data is spread across raw events, sessions and reports, and some of it, such as payment records, you may have to keep for other reasons. This page explains the right and shows how it works in practice. It is not legal advice.
When it applies
Article 17 of the GDPR (opens in a new tab) lists the grounds. The ones that come up most for websites:
- The data is no longer necessary for the purpose it was collected for.
- The person withdraws consent and there is no other lawful basis.
- The person objects to processing based on legitimate interests and there are no overriding grounds.
- The data was processed unlawfully.
When it does not
The right is not absolute. Exceptions include keeping data to comply with a legal obligation, such as tax and accounting records, and to establish or defend legal claims. That is why a business can usually keep an invoice after deleting a customer's analytics history.
Timing
Like other rights requests, it must generally be answered within one month, which can be extended in some cases. Confirm the person's identity first if you are unsure who is asking.
How to erase someone from analytics
- Find them. By email or user id if they signed in, otherwise by their visitor id.
- Delete their records everywhere they live: events, sessions, profiles and any exports.
- Handle what you must keep. Payments for tax law can be stripped of the link to the person.
- Recompute or accept aggregates. Totals built from the deleted events should reflect the deletion where possible.
- Record the request without recording more about the person than necessary.
How Reveata does it
Reveata's Visitor data requests guide covers it. As controller you answer the request; owners and admins of the website can use the tools.
- Find the person in Visitor journeys by name, email, user id or visitor id. An unidentified visitor can read their id with
window.reveata.visitorId()on your site. - Delete from their profile (type
deleteto confirm; it cannot be undone). Reveata deletes the profile, identify details, every visit and every raw event, and removes them from the realtime view. - Payments are anonymised, not deleted. They keep amount, currency, date and type, but lose the name, email, visitor, visit, ad click ids and identify details. Revenue totals do not change.
- Exports being prepared are stopped, and finished export files covering the person's days are removed.
- Reports for every day the person was active are recomputed within minutes.
- By email, via the API.
POST /api/v1/websites/<site>/visitors/eraseerases everyone identified with one email address, for people who used several devices.
Reveata keeps a security record of each erasure with the counts, not who it was about. Payments also held at your payment provider are not changed there, so redact the customer at the provider too. In cookieless mode, visitor ids change every day and cannot be traced back to a person.