# Data & privacy (/identify/data)



After this page you can tell your visitors, and your security team, exactly what the snippet does on your pages.

The snippet never reads page content or form values, and never keeps or sends which keys were pressed. It fingerprints the browser and keeps a token for up to 400 days, so the browser is [recognised when it comes back](/identify/visitors). [`data-visitor="off"`](#turning-visitor-ids-off) stops both.

## What the snippet collects [#what-the-snippet-collects]

Each report carries the fields below and nothing else: the server drops any field it doesn't know. [`GET /v1/identify/sessions/{id}?signals=true`](/reference/identify/get-session) returns a session's latest report, so you can check.

| What the browser says about itself | `signals.env`                                                                                                                                                                                                                 |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Automation                         | `wd` (`navigator.webdriver`), `native` (whether that property is the browser's own), `art` (automation tools whose objects are on the page), `cdp` (whether the DevTools protocol is attached)                                |
| Browser                            | `ua` (user agent), `uad` (its brands, whether it's a phone, its platform), `plat` (platform), `lang` (up to 6 languages), `plugins` (a count), `pdf` (whether it has a PDF viewer), `chrome` (whether `window.chrome` exists) |
| Device                             | `hc` (processor count), `dm` (memory), `mtp` (touch points), `scr` (screen size and colour depth), `win` (window size), `dpr` (pixel ratio), `gl` (graphics vendor and renderer)                                              |
| Place and time                     | `tz` (time zone), `tzo` (its offset)                                                                                                                                                                                          |
| Permissions                        | `notif`, `perm` (notification permission, read two ways; nothing is asked), `cast` (whether Chrome's casting service answers; nothing is shown)                                                                               |
| The page                           | `focus`, `vis` (visibility), `ifr` (in a frame), `cookie` (cookies enabled)                                                                                                                                                   |

| How the page is used: counts and timings | `signals.input`                                                                                                                                                                          |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Time                                     | `t` (milliseconds since load), `first` (until the first interaction)                                                                                                                     |
| Pointer                                  | `mm` (moves), `path` (distance in pixels), `mcv` (how much its speed varies), `clk` (clicks), `jump` (clicks with no travel before them), `synth` (clicks and key presses a script made) |
| Keyboard                                 | `key` (key presses, counted), `kcv`, `kmean`, `kmed` (variation, mean and median of the time between them)                                                                               |
| Text                                     | `inp` (input events), `nokey` (text inserted with no key press), `bulk` (several characters inserted at once; only the length is looked at), `paste` (pastes, counted)                   |
| Scrolling and touch                      | `scr`, `wheel`, `touch` (counts)                                                                                                                                                         |

| The fingerprint: short hashes, never the drawing or the list | `signals.fp`                                                                                                               |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| Canvas                                                       | `cv` (a hash of a drawing of text and shapes; empty when the browser gives two different answers)                          |
| Audio                                                        | `au` (a hash of a tone the audio stack renders; nothing is played)                                                         |
| Fonts                                                        | `fo` (a hash of which of 92 fonts are installed), `fn` (how many)                                                          |
| Graphics                                                     | `gp` (a hash of the graphics context's limits and extensions)                                                              |
| Maths                                                        | `mt` (a hash of what the maths functions return)                                                                           |
| Display                                                      | `mq` (colour gamut, and the contrast, motion and colour settings)                                                          |
| Processor and platform                                       | `ar` (the processor family), `hv` (architecture, bitness, device model and platform version, where the browser gives them) |
| Brave                                                        | `br` (whether the browser is Brave)                                                                                        |
| Private window                                               | `pv` (whether this is a private window, where the browser gives a way to tell)                                             |

The fingerprint is read in idle moments after the first report, a little at a time, and nothing is added to your page to read it. With `data-visitor="off"` it isn't read.

With them: the site's public key, the session id, the visitor token, the snippet's version, and `page`, the page's origin and path. The query string is never sent, and a path segment that looks like a token or a name (over 24 characters, an `@`, or 16 or more letters, digits, `-` and `_` with a digit among them) is sent as `*`.

Our server adds what any server sees of a request: the IP address, the user agent and any `Signature` headers. To see whether the DevTools protocol is attached, the snippet writes up to three debug-level lines per page to the console in Chromium browsers.

## Cookies and storage items [#cookies-and-storage-items]

|                       | Name            | Holds                      | Lasts                                                                                                       |
| --------------------- | --------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Cookie                | `finic_session` | The session id, `ksn_…`    | The browser session. Set for the page's own host, `path=/`, `SameSite=Lax`, `Secure` on HTTPS               |
| `sessionStorage` item | `finic_session` | The same id                | The tab                                                                                                     |
| Cookie                | `finic_visitor` | The visitor token, `gvt_…` | 400 days, or as long as the browser allows: Safari keeps a cookie a script set for 7 days. Set the same way |
| `localStorage` item   | `finic_visitor` | The same token             | Until it's cleared                                                                                          |

The visitor token is how a returning browser is recognised. It isn't the visitor's id, which the browser is never told. Each of the two is put back from the other when one is missing. With the [edge package](/identify/edge), your own server sets the cookie, and Safari keeps it for the full 400 days.

These are all the snippet stores, and reports are sent without credentials. On the page, the id is `window.finic.session` (`null` until known), and a `finic:session` event on `document` carries it in `detail`; `window.finic.onSession(callback)` gives it once it's known.

The tag takes four attributes: `data-site`, the site's `gpk_…` key; `data-endpoint`, where reports go (by default the script's own origin and `/identify`); `data-visitor`, which turns visitor ids off; and `data-entity`, your own id for who is signed in ([the entity id](#the-entity-id)).

## Turning visitor ids off [#turning-visitor-ids-off]

```html
<script async src="https://api.finic.ai/identify/agent.js" data-site="gpk_…" data-visitor="off"></script>
```

With `data-visitor="off"` the snippet takes no fingerprint and neither reads nor sets `finic_visitor`. Sessions have no visitor; verdicts are the same.

## Where verdicts are computed [#where-verdicts-are-computed]

On our servers, from the report, the request's address and user agent, and a [lookup](/identify/lookup) on them. A report is answered with the session id and, once the browser is identified, its visitor token, and nothing else: the verdict and the visitor's id are never given to the browser, which could change them. Your server reads it with your API key, or receives it from the [edge package](/identify/edge).

## The entity id [#the-entity-id]

A session holds one thing that comes from you: its `entity_id`, your own id for the customer or account the session belongs to. It is empty until you set it, in one of two ways, and `entity_source` says which:

| `entity_source` | Set by                                                                                    | Trust                                                                                            |
| --------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `browser`       | Your page, with `data-entity` on the tag or `finic.identify("user_123")`                  | The page's claim. Anyone can send any id from a browser, so don't rest a security decision on it |
| `server`        | Your server, with [`update_session`](/reference/identify/update-session) and your API key | Yours. Once your server has set or cleared the id, the page can't change it                      |

The snippet sends an entity id only when your page gives it one.

We store the string you send, with the session, and delete it with the session. It doesn't change the verdict. The API calls that set it, read it or list by it are kept in Finic's API log, as [Retention](#retention) says of every call. An id that means something only in your system, such as `user_123`, says less about a person than an email address does.

## Retention [#retention]

A session (its IP address, user agent, page, latest report, verdict and entity id) is deleted 30 days after it starts. A [visitor](/identify/visitors) (its fingerprint's hashes, its browser and operating system, the last four addresses and networks it was seen at, and its token) is deleted a year after it was last seen, or when you [delete it](/reference/identify/delete-visitor). Your organization's [data retention](/grayson-api/data#data-retention) setting doesn't change either. Calls your server makes to the Identify API, such as a [lookup](/identify/lookup) or reading a session, are kept in Finic's API log like any other API request, with what was sent and what was answered and without your API key. That log isn't deleted after 30 days.

## Origins [#origins]

A site's key is public, so any page could send reports under it. List the site's `origins` when you [create](/reference/identify/create-site) or [update](/reference/identify/update-site) it, and reports are taken only from those pages:

```bash
curl -X PATCH https://api.finic.ai/v1/identify/sites/kst_01M4Z1X3G5P8D2F6J0YA4SMQNC \
  -H "Authorization: Bearer $FINIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"origins": ["https://www.example.com", "https://shop.example.com"]}'
```

An origin is a scheme and host, such as `https://www.example.com`; up to 20 per site. With none listed, reports are taken from any page. Reports the [edge package](/identify/edge) relays carry your API key and are taken whatever the list, but a request signature on one is checked only when the site's origin is listed.

## Content-Security-Policy [#content-security-policy]

| Setup                              | Your policy needs                                                                                |
| ---------------------------------- | ------------------------------------------------------------------------------------------------ |
| The tag from `api.finic.ai`        | `script-src https://api.finic.ai` and `connect-src https://api.finic.ai`                         |
| The [edge package](/identify/edge) | `script-src 'self'` and `connect-src 'self'`: the snippet and its reports are on your own domain |

On Cloudflare, the Worker gives the tag your page's nonce when the policy allows scripts by nonce. When it allows them only by hash or `'strict-dynamic'`, the Worker doesn't add the tag: add it to the page yourself.

## Limits [#limits]

| Limit                         | Value                                                                |
| ----------------------------- | -------------------------------------------------------------------- |
| Reports from one address      | 120 a minute. An IPv6 address counts as its /64                      |
| New sessions from one address | 20 a minute                                                          |
| New sessions for one site     | 10,000 an hour                                                       |
| A report                      | 8 KB                                                                 |
| Reports from one page view    | 40                                                                   |
| A session                     | Takes reports for 12 hours. After that, the browser starts a new one |
| Sites                         | 50 per organization                                                  |

A report over a limit is dropped, not queued: it's answered `204` with an `X-Finic-Refused` header, and the snippet stops reporting for that page view. Nothing is printed in your page's console. Reports are dropped the same way, with `credit`, while your organization is [out of credit](/pricing#credit). API calls have their own [limits](/reference/identify#limits).

## Telling your visitors [#telling-your-visitors]

The snippet reads device signals, fingerprints the browser and sets a cookie that lasts up to 400 days, and it doesn't ask anyone's permission. Tell your visitors. Where your jurisdiction requires consent for a fingerprint or a persistent identifier, as the EU and the UK generally do outside what is strictly necessary, load the tag with `data-visitor="off"` until you have it, or only after consent. When a person asks you to erase their data, [delete their visitor](/reference/identify/delete-visitor).
