Traffic
Unique visitors vs pageviews vs sessions: what each one counts
Unique visitors count people, sessions count visits, pageviews count pages. How each is measured, a worked example, and why your tools disagree on the totals.
The CrispStats team · · 8 min read
In short
Unique visitors are the number of different people, or more exactly browsers, that visited your site in a period, each counted once however often they came. A session is one visit by one of those visitors, and a pageview is one page loaded during a visit, so one person who comes twice and reads five pages is one unique visitor, two sessions and five pageviews. Unique visitors measure audience size, sessions measure how often people come, and pageviews measure how much they look at. Each tool counts them in its own way, so compare numbers inside one tool only.
On this page · 10 sections
Sections
- What are unique visitors?
- What is a session?
- What is a pageview?
- Unique visitors vs sessions vs pageviews at a glance
- A worked example: one person, three days
- Why don’t daily unique visitors add up to the monthly number?
- Which ratios between them are useful?
- Which number should you report?
- Why do two tools report different numbers?
- How CrispStats counts visitors, sessions and pageviews
Every analytics dashboard opens with some version of the same three numbers. They look like three sizes of one thing, and they are not: each answers a different question, each depends on a different way of recognising people, and they stop adding up the moment you change the date range.
What are unique visitors?
A unique visitor is one browser counted once in the chosen period, no matter how many times it visited. It is the closest a website gets to counting people, and it measures the size of your audience.
The word “unique” hides the hard part. To count someone once, the tool has to recognise that two visits came from the same browser. There are three common ways:
- A cookie or stored id. The tool writes an id to the browser on the first visit and reads it back later. Google Analytics uses the
_gacookie, which its cookie documentation says is used to distinguish users and expires after 2 years by default. - A short-lived hash. Cookieless tools compute an id from the site, the IP address, the user agent and a salt that changes every day, so a browser is recognised for one day and then becomes a new visitor. Cookieless analytics explained walks through it.
- A login. When people sign in, your own user id recognises them across devices. Only signed-in visits benefit.
Each method makes different mistakes:
| Situation | Effect on the unique visitor count |
|---|---|
| One person on a phone and a laptop | Counted twice by cookies and by hashes; once with a login |
| A browser that clears cookies or blocks them | A new visitor each time the cookie is gone |
| A person who returns the next day | Recognised by a cookie; counted again by a daily hash |
| Two people behind one office network with the same browser setup | Separate with cookies; possibly merged by a hash for that day |
| A visitor who declines consent where a cookie tool asks for it | Often not counted at all |
What is a session?
A session, also called a visit, is a period of continuous activity by one visitor. Google Analytics 4 defines it in its help page on sessions: by default a session ends after 30 minutes of inactivity, and the timeout can be adjusted per web stream. Some tools also start a new session when the visitor arrives again through a different campaign or referrer.
Sessions answer “how often do people come?” A visitor who reads one article in the morning and comes back from your newsletter in the afternoon has two sessions.
What is a pageview?
A pageview is one page loaded or shown to a visitor. A reload is usually a second pageview. In a single-page app, a route change through the History API should count as a pageview too, if the tool listens for it. Pageviews answer “how much did people look at?”
Unique visitors vs sessions vs pageviews at a glance
| Row | Unique visitors | Sessions | Pageviews |
|---|---|---|---|
| Counts | Different browsers (people, roughly) | Visits | Pages shown |
| Answers | How big is the audience? | How often do they come? | How much do they read? |
| Depends on | How the tool recognises a returning browser | The inactivity timeout and campaign rules | How reloads and app routes are counted |
| Adds up across days? | No | Yes | Yes |
| Size | Smallest of the three | In between | Largest, or equal |
A worked example: one person, three days
Maya finds a guide through search on Monday morning on her phone, reads two pages and leaves. That evening she opens the same guide on her laptop from a bookmark and reads three pages. On Wednesday she returns on the laptop from your newsletter, reads one page and signs up.
| How the tool recognises people | Unique visitors, Monday to Wednesday | Sessions | Pageviews |
|---|---|---|---|
| Cookie that lasts | 2 (phone and laptop) | 3 | 6 |
| Daily rotating hash | 3 (phone Monday, laptop Monday, laptop Wednesday) | 3 | 6 |
| Login, if the tool links earlier visits to the account | 1 at best | 3 | 6 |
Sessions and pageviews agree because they do not need to recognise anyone across days. Unique visitors range from 1 to 3 for the same person, depending only on the method, and the 1 needs a tool that ties her anonymous phone visit to the account she created later, which many cannot. This is why a unique visitor count is always an estimate of people, and why it should only be compared with itself.
Why don’t daily unique visitors add up to the monthly number?
Because the same person can be counted on several days. If 1,000 different visitors come each day and half of them come back every day, a month of daily totals adds up to 30,000, but the number of different people is far lower. Summing daily uniques is the most common mistake made with this metric.
There is one exception. A tool that recognises a browser for one day only cannot link Monday’s visitor to Tuesday’s, so its weekly or monthly unique count is close to the sum of its daily counts. That is not double counting by mistake: it is the method telling you it does not know who returned.
Which ratios between them are useful?
pages per session = pageviews ÷ sessionssessions per visitor = sessions ÷ unique visitors24,000 ÷ 10,000 = 2.4 pages per session10,000 ÷ 8,000 = 1.25 sessions per visitor- Pages per session shows how deep a typical visit goes. Higher is not always better: on a docs site it can mean people cannot find the answer.
- Sessions per visitor shows how often people come back within the period. It only means something when the tool can recognise people across the whole period.
- Pageviews per visitor mixes both and is mostly useful for content sites selling ads by impression.
Which number should you report?
| Question | Use | Why |
|---|---|---|
| How many people did the campaign reach? | Unique visitors | Counts each person once |
| Is the site getting more use? | Sessions | Grows with both new and returning visits |
| Which content is read most? | Pageviews per page | Counts each read of each page |
| Which page converts best? | Conversions ÷ visitors per entry page | Rates need a people or visit denominator, not pages |
| What does an ad network or sponsor need? | Whatever their contract defines, usually pageviews or visitors | Check the definition in writing |
For a conversion rate, the choice of visitors or sessions as the denominator changes the result. How to calculate conversion rate works through both.
Why do two tools report different numbers?
Run two tools side by side and the totals will not match. The usual reasons, roughly in order of size:
- Consent. A cookie-based tool that only runs after consent misses everyone who declines or ignores the banner.
- Blocking. Ad blockers and privacy browsers block some analytics scripts and domains and not others.
- Recognition method. Cookies, daily hashes and logins count returning people differently, as in the example.
- Definitions. Google Analytics 4 has several user metrics. Its user metrics help page defines total users as unique users who triggered any event and active users as unique users who engaged, and its standard reports show active users. Another tool’s visitors may match neither. How to find unique visitors in GA4 shows where each one lives.
- Bots. Tools filter automated traffic with different lists and rules; how to filter bot traffic covers the gaps.
- Session rules. A 30-minute timeout with or without a campaign split gives different session counts for the same visits.
Expect a gap. Watch the trend in each tool rather than reconciling totals to the last visitor.
How CrispStats counts visitors, sessions and pageviews
Visitors
CrispStats sets no cookies. It recognises a visitor for one day through a salted hash of the site, IP address and user agent, computed at the edge; the IP and user agent are then discarded and the salt rotates daily. A person who returns tomorrow is counted as a new visitor, so a weekly or monthly visitor count includes returning people once per day they visited. An opt-in persistent visitor mode keeps a random id in the browser to recognise people across days, and should only be on with consent. After a login, you can call identify with your own user id.
Sessions and pageviews
A session ends after 30 minutes of inactivity, or when the visitor arrives again through a different campaign or referrer. A pageview is counted on load and on every History API navigation, so single-page apps need no extra code. The same URL twice in a row is one pageview, and a page restored from the back/forward cache counts as a new view. Bots are filtered before anything is stored. The overview shows visitors, pageviews, sessions and views per visit side by side.