# GDPR compliance

TraceFlow gives you the controls to use it lawfully. You, as the owner of the website,
decide what is collected and why, so the legal choices are yours. This page lists what
TraceFlow collects and the controls you have. It is not legal advice.

## What TraceFlow collects

| What | Notes |
| --- | --- |
| Pages viewed, in order, and when | With the referring page |
| Source, medium, campaign | From `utm_` values in your links |
| Email address, first and last name | Only for known visitors — see [Identify visitors](https://gettraceflow.com/docs/features/identify-visitors) |
| Country, region, city and postcode | Looked up from the visitor's network address |
| Browser, operating system, device type, user agent | From the browser |
| Session recordings | Only where session replay is on for the website |

TraceFlow does not store the visitor's network address. To find the location, the address
is sent to an outside location service — from the visitor's browser, and from TraceFlow's
server when the browser cannot. Mention this in your privacy policy.

The install script keeps a visitor id, the visit count, the `utm_` values (including
`utm_email`), and the last location with the network address it was looked up for, in
the visitor's **browser storage** (local storage).
It does not set cookies of its own.

## Your responsibilities as data controller

- Say in your privacy policy that you use TraceFlow, what it collects and why.
- Ask for consent before TraceFlow runs, where the law requires it. Browser storage is
  treated like cookies under the ePrivacy rules.
- Handle requests from people who ask to see or delete their data.
- If you turn masking off in session recordings, say so — recordings then show what
  visitors type.

## Load TraceFlow only after consent

TraceFlow has no consent switch of its own. Load the install script from your consent
manager's callback, so it runs only once the visitor agrees:

```js
// Example: load TraceFlow only after the visitor accepts analytics
function loadTraceflow() {
  const script = document.createElement('script');
  script.async = true;
  // your website's own install script address, from Zocton Dashboard → Websites
  script.src = 'https://<region>.zocton.com/dashboard/z.js?site=zsite_…';
  document.head.appendChild(script);
}

// Call this function when analytics consent is granted
window.onConsentGranted = loadTraceflow;
```

The same script also loads ZuvoChat if it is on for the website.

## Keep recordings private

Where session replay is on, two switches in **Website Management → Website settings**
decide what recordings may show:

- **Mask inputs & tagged elements** — on by default. Text typed into form fields is never
  recorded, and you can hide parts of a page with `rr-mask`, `rr-block` or `rr-ignore`.
- **Mask all text** — off by default. When on, recordings show no readable text at all.

Masking happens in the visitor's browser, so masked text never leaves it. Bots are never
recorded. See [Sessions and replay](https://gettraceflow.com/docs/features/sessions-and-replay#keep-recordings-private).

## Data deletion requests

When someone asks for their data to be deleted:

1. Open the website in TraceFlow and go to **People**.
2. Search for their email or name.
3. Open the visitor and click **Delete Visitor**, then **Delete**.

This deletes the visitor and all their sessions, page history and recordings on that
website, for good. You can also tick several visitors in the list and delete them
together.

Then check these places too:

- **Other websites.** A visitor belongs to one website. Repeat the steps on each website.
- **Your Entayo CRM.** A known visitor is also a person in your CRM. Deleting them in
  TraceFlow does not delete them there — delete them in the CRM as well.
- **Daily summary emails** already sent may name them among the most active visitors.

For anonymous visitors, TraceFlow cannot know who they are, so it cannot find their data
by name.

## How long data is kept

TraceFlow keeps visitor data until you delete it: a visitor, a session, a website, a
project's data on the Zocton Dashboard, or your whole account. See
[Backups and your data](https://gettraceflow.com/docs/features/backup-and-data#clear-or-delete-data).

## Related

- [Sessions and replay](https://gettraceflow.com/docs/features/sessions-and-replay)
- [Identify visitors](https://gettraceflow.com/docs/features/identify-visitors)
- [Backups and your data](https://gettraceflow.com/docs/features/backup-and-data)
- [Privacy policy](https://gettraceflow.com/privacy)
