Skip to content

Traffic

Unique visitor

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.

Also called unique visitors, uniques, visitors, users Updated

unique visitors = distinct visitor ids seen in the period

How is it 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.

Example

  • 1,200 sessions
  • 1,000 unique visitors
  • 300 return the next day

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.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.