# Privacy, cookies and cookieless mode

> What Reveata stores about your visitors, which cookies the script sets and how cookieless mode works.

Reveata is designed to collect what you need for analytics and attribution, and no more.

## What is recorded

For each pageview or goal the script sends the page URL, the referrer, the screen and window size, the browser language and the time zone, plus any goal name and custom properties you add. On our server we derive:

- the page path and hostname, UTM tags, `ref` parameters and ad click ids (such as `gclid`) from the URL,
- the channel and source from the referrer and tags,
- browser, operating system and device type from the user agent,
- country, region and city from the IP address.

**IP addresses are never stored.** The address is used for the location lookup, your IP exclusions and bot checks, then discarded. Of the query string, only campaign parameters are kept (UTM tags, `ref`, `via`, `source` and ad click ids, up to 1 KB); everything else is dropped. Still, avoid putting personal data in your URLs.

## Cookies set by the script

| Name    | Lifetime                        | Contents                                               |
| ------- | ------------------------------- | ------------------------------------------------------ |
| `_dt_v` | 400 days                        | A random visitor id and a visit counter.               |
| `_dt_s` | 30 minutes, renewed on activity | A random session id and the time of the last activity. |

Both are first-party cookies on your own domain. They contain no personal data and are not shared across websites. Browsers can keep them for less time: Safari keeps cookies set by a script for at most 7 days, so a visitor who comes back later on Safari counts as a new visitor. If you [opt out](https://reveata.com/docs/install-the-script#opting-yourself-out), a `reveata_ignore` flag is kept in local storage.

## Cookieless mode

Turn on **Cookieless** in **Settings → General** (your snippet then includes `data-cookieless="true"`), or load `/js/script.cookieless.js`, a build of the script without any cookie code.

In cookieless mode nothing is stored in the visitor’s browser. The server identifies a visitor for one day with a hash of a random daily salt, your website, the IP address and the user agent. Each salt is deleted shortly after its day ends, after which nobody, including us, can work out which IP address or browser produced a hash.

The trade-offs:

- A person who comes back on another day counts as a new visitor.
- Visitor ids are not available in the browser, so link payments with [identify](https://reveata.com/docs/identify-visitors) or by email.
- Cross-domain linking is not available.

## Do Not Track

Add `data-respect-dnt="true"` to skip browsers that send Do Not Track or Global Privacy Control.

## Your obligations

Whether you need consent or a cookie banner depends on your configuration, your visitors’ countries and your use of features such as identify. Check with your legal advisor, and describe Reveata in your privacy policy. Our data processing terms are in the [DPA](https://reveata.com/legal/dpa). When a visitor asks for a copy of their data or asks you to delete it, see [Visitor data requests](https://reveata.com/docs/visitor-data-requests).
