# Unique visitor

Also called: unique visitors, uniques, visitors, users

A unique visitor is one person, or more exactly one browser, counted once in a period no matter how many times they visit. It measures the size of your audience, where pageviews and sessions measure its activity.

## How it is calculated

The tool needs a way to tell that two visits came from the same browser. Cookie-based tools store an id on the device. Cookieless tools derive a short-lived id on the server, usually a hash of the site, the IP address, the user agent and a salt that changes every day.

The method sets the limits. A cookie can recognise someone for months, until it is cleared. A daily hash recognises someone for one day, so a person who returns tomorrow is counted as a new visitor.

```
unique visitors = distinct visitor ids seen in the period
```

## Example

A site sees 1,200 sessions in a day from 1,000 distinct visitor ids. It has 1,000 unique visitors that day. If 300 of those people return the next day, a cookieless tool reports 1,000 on each day and counts the returning 300 again in a weekly total.

## Common mistakes

- Adding daily uniques to get a monthly figure when the tool can recognise people across days. That counts returning visitors several times.
- Assuming a visitor is a person. One person on a phone and a laptop is two visitors in every tool that does not know who is logged in.
- Expecting two tools to agree exactly. Identification method, bot filtering and ad blockers all move the number.

## How CrispStats shows it

CrispStats recognises a visitor for one day through a salted hash of the site, IP address and user agent. The hash is computed at the edge, the IP and user agent are discarded, and the salt rotates daily, so yesterday's ids cannot be linked to today's. An opt-in persistent mode keeps an id in localStorage to recognise returning visitors across days, and should only be turned on with consent.

## Related terms

- [Visitor hash](/glossary/visitor-hash)
- [Session](/glossary/session)
- [Cookieless tracking](/glossary/cookieless-tracking)
- [Pageview](/glossary/pageview)
- [Retention](/glossary/retention)
