# What is and isn't collected

> For the complete documentation index, see [llms.txt](https://analytics.writechoice.io/docs/llms.txt).

What the WriteChoice snippet records about your readers, what it never records, how long the data is kept, and how readers say no.

This page describes how the service works. It is not a legal document: your agreement with WriteChoice (and its data processing terms) is what applies. For your own privacy policy, start from the [privacy policy template](https://analytics.writechoice.io/docs/privacy/policy-template/).

## What the snippet records

- **Pageviews**: the page address, the referrer, the page title, the screen size, the language, and the browser, operating system and device type (from the browser's user agent).
- **The country, region and city**, worked out from the reader's IP address when the event arrives. The IP address itself is never stored or logged.
- **Visits**, counted in 30-minute windows with a token kept in the page's memory only.
- **Searches** in your site search: the final text, with emails, tokens and long numbers replaced before the search leaves the browser.
- **Custom events and tags** you add with `wca.track` and `data-tag`.
- **Page speed** (Core Web Vitals) on a sample of page loads.
- **Clicks and scroll depth** for the heatmaps, on a sample of page loads (on by default).
- Only when WriteChoice turns them on for your site, once your data processing agreement covers them: **session replays** (with text and form fields masked by default) and **JavaScript errors** (with emails, tokens and long numbers removed).

## What it never does

- **No cookies**, and nothing that identifies a reader is stored in the browser. The only thing the snippet ever stores is a reader's opt-out (`wca.disabled`).
- **No IP addresses** stored, logged or cached.
- **No personal data on purpose**: email addresses passed to `wca.identify` are dropped, and searches and error messages are cleaned. Don't put personal data in events, tags or ids.
- **Your page never breaks** because of the snippet: when it can't load or the service is unreachable, nothing happens.

## How long data is kept

| Data | Kept for |
|---|---|
| Pageviews, visits, events and their totals | 13 months |
| Search texts | 90 days (then daily totals, and monthly totals for searches made by at least 5 different visitors, for 13 months) |
| Heatmap data | 90 days |
| Session replays | 14 days; a saved replay, 13 months (up to 50 per site) |
| AI report conversations | 13 months after the end of the report's period; the summary stays while you are a client |

## How readers say no

- **Global Privacy Control**: a browser with it on is never measured, whatever the page says.
- **Opt-out**: a link on your site that calls `wca.optOut()` stops the measurement in that browser; `wca.optIn()` undoes it.
- **Consent**: with `data-consent="required"`, nothing is measured until your consent tool calls `wca.consent()`.

See [Consent and opt-out](https://analytics.writechoice.io/docs/install/consent/) for how to set each one up.