Skip to content

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.

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 _ga cookie, 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:

What are unique visitors?
SituationEffect on the unique visitor count
One person on a phone and a laptopCounted twice by cookies and by hashes; once with a login
A browser that clears cookies or blocks themA new visitor each time the cookie is gone
A person who returns the next dayRecognised by a cookie; counted again by a daily hash
Two people behind one office network with the same browser setupSeparate with cookies; possibly merged by a hash for that day
A visitor who declines consent where a cookie tool asks for itOften 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

Unique visitors vs sessions vs pageviews at a glance
RowUnique visitorsSessionsPageviews
CountsDifferent browsers (people, roughly)VisitsPages shown
AnswersHow big is the audience?How often do they come?How much do they read?
Depends onHow the tool recognises a returning browserThe inactivity timeout and campaign rulesHow reloads and app routes are counted
Adds up across days?NoYesYes
SizeSmallest of the threeIn betweenLargest, 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.

A worked example: one person, three days
How the tool recognises peopleUnique visitors, Monday to WednesdaySessionsPageviews
Cookie that lasts2 (phone and laptop)36
Daily rotating hash3 (phone Monday, laptop Monday, laptop Wednesday)36
Login, if the tool links earlier visits to the account1 at best36

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?

Which number should you report?
QuestionUseWhy
How many people did the campaign reach?Unique visitorsCounts each person once
Is the site getting more use?SessionsGrows with both new and returning visits
Which content is read most?Pageviews per pageCounts each read of each page
Which page converts best?Conversions ÷ visitors per entry pageRates need a people or visit denominator, not pages
What does an ad network or sponsor need?Whatever their contract defines, usually pageviews or visitorsCheck 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.

Guide questions. Straight answers.

What people ask after reading this.

  • Unique visitors are the number of different browsers that visited a site in a period, each counted once however many times it came. They approximate the number of people. Tools recognise returning browsers with a cookie, a daily hash or a login, and the method changes the count.

  • No. A visit, or session, is one period of activity by one visitor and can include many pageviews. One visit that reads four pages is one session and four pageviews.

  • Because one visitor can have several sessions in a period. Someone who visits on Monday morning and again on Monday evening is one unique visitor and two sessions.

  • Not if your tool recognises people across days, because people who return are counted on every day they visit. Use the tool's own monthly figure instead. Tools that recognise visitors for one day only produce monthly counts close to the sum of daily counts, by design.

  • It depends on the question. Unique visitors tell you how many people you reach; pageviews tell you how much they read. For rates such as conversion rate, use visitors or sessions as the denominator, not pageviews.

Not answered here? Write to hello@crispstats.com

Go further

Free tools

  • Conversion rate calculator

    Work out your conversion rate from visitors and conversions: conversions ÷ visitors × 100.

  • UTM builder

    Build UTM-tagged links one at a time or in bulk from pasted rows, with presets, checks for capitals and spaces, CSV export and a channel preview.

  • Analytics cost calculator

    Pick a monthly volume and compare list prices of privacy-friendly analytics tools at that exact volume.

Use cases

  • CrispStats for startups

    Funnels, retention, revenue attribution and uptime from the first day, on a price that stays small while you find your market.

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.