# Privacy and data

What the script records, what is never stored, and how long data is kept.

Ultanimus is built to count visits without collecting more than it needs.

## What the script sends

- The page address and the referrer. A [`url` function](/docs/tracking/page-addresses) can take IDs and names out of both before they leave the browser.
- The screen size and the browser language.
- The user agent, which every browser request carries.
- Custom events and properties that your own code sends.
- Your own ID for a signed-in person, if you pass one with `identify()`.
- Clicks on links to other sites and on files, with the link's host and path, if you turn them on with `data-outbound` or `data-downloads`.
- For a share of page loads, the files the page downloaded with their sizes and timings, if you turn it on with `data-load`. Query strings are dropped and IDs in paths are replaced. See [Load](/docs/dashboard/load).
- If you turn it on with `data-vitals`, five page timings and short CSS paths of the elements behind them, such as `main>section.hero>img`. IDs and classes that look like record IDs are dropped. See [Web vitals](/docs/dashboard/vitals).
- If you turn it on with `data-errors`, the type, message and stack of each JavaScript error a visitor runs into. Ingest drops query strings and replaces emails, long numbers and tokens before storing it. See [Errors](/docs/dashboard/errors).

## What is never stored

- IP addresses. The country, region and city are looked up in memory during ingest, then the address is dropped.
- Cookies. The script does not read or write any.
- Identifiers that last across days, unless you pass your own user ID with [`identify()`](/docs/tracking/identify). Even then, only a hash of it is stored.

## How long data is kept

| Feature | Glance | Insight | Foresight |
|---|---|---|---|
| Data history | 6 months | 2 years | 5 years |

A nightly job removes events older than your plan's history. Going over your plan's event limit never deletes stored data.

When you delete a site that has data, owners and admins can restore it from Deleted sites in the organization settings for 30 days, with its data, dashboards and script. A daily job then erases its events. A site that never received an event goes at once.

## Consent

Nothing is stored on the visitor's device and no IP address is kept, so most sites can skip the consent banner. Check what applies in your country and to your own tracking, such as `identify()`.

## Requests about your data

To ask for a copy of your account data or its deletion, write to us from the [contact page](/contact). The [privacy policy](/privacy) covers the rest.
