Traffic
What is web analytics? The counts that matter, and how to start
Web analytics counts pageviews, sessions, visitors, sources and conversions. It measures the site, not the person. How the counts work, and how to start.
The CrispStats team · · 10 min read
In short
A number in the dashboard disagrees with a feeling about the site: the blog seems busy, the signup form seems quiet. Web analytics is the narrow practice of settling that with counts.
What is web analytics?
Web analytics is the measurement of how a website is used: pages shown, visits, where those visits came from, and whether people completed an action you care about.
A script records a small fact each time a page is shown. The tool groups facts that belong to the same visit and adds them up over the dates you pick. The result is a set of counts and breakdowns: this page, that source, this week against last week. Simple web analytics is that set on one page, with the definitions fixed so you are not building a report before you can read one.
What is web analytics not?
It is not a way to identify a person. A visitor count does not tell you anyone’s name, email address or account.
A visitor, in every common tool, is a browser or a short-lived stand-in for one. Someone on a phone and a laptop is two visitors. Signing in and passing your own user id ties those two together only for a customer you already know. It does not discover a stranger. Emails, names and account numbers do not belong in event properties.
A few neighbouring practices get called analytics and answer different questions:
- Server logs count every request the server received, including images, health checks and clients that never ran your script. They are the right record of what was fetched. They are a poor record of what a person read.
- Search Console, and the equivalents at other engines, describe how your pages appear in that engine: impressions, queries, clicks. They do not describe what happened after the click. Search Console and analytics split the two jobs.
- Cross-site tracking tries to recognise the same browser from one company’s site to another’s. Measuring one site does not require that, and cross-site tracking is a separate decision with a separate cost.
- Session replay and heatmaps record or draw one visit in detail. Counts answer how many. A recording answers what one visit looked like. You can run a site on the counts alone.
Which counts matter in web analytics?
Five counts cover most questions: pageviews, sessions, visitors, sources and conversions.
Each count answers a question the others cannot. Unique visitors, pageviews and sessions is the long version of the first three.
| Count | One unit is | The question it answers |
|---|---|---|
| Pageview | One page shown to a visitor | How much was looked at? |
| Session | One visit, a run of activity with no long gap | How often did people come? |
| Visitor | One browser, counted once in the period | How big is the audience? |
| Source | Where that visit came from | Which sites and campaigns send people? |
| Conversion | One completed action you defined | Did the visit do the thing you wanted? |
A source is evidence the browser happened to send: a referrer, campaign tags, or nothing. Traffic sources explains how those clues become channels. A conversion is the action you defined as success. Until you name one, the dashboard can describe traffic and cannot describe an outcome.
An example week, with round numbers
This is an example, invented to show the arithmetic. It is not a benchmark and not a result from a real site. A documentation site records, in one week:
| Count | Total | How to read this example |
|---|---|---|
| Visitors | 4,000 | About 4,000 browsers, each counted once |
| Sessions | 5,000 | Those browsers made 5,000 separate visits |
| Pageviews | 15,000 | The visits showed 15,000 pages |
| Conversions | 200 | 200 account creations |
Pages per session in this example are 15,000 ÷ 5,000 = 3. The conversion rate depends on the denominator you pick. 200 ÷ 5,000 sessions is 4%. 200 ÷ 4,000 visitors is 5%. Same week, same conversions, two rates, both honest. Say which denominator you used.
The 5,000 sessions might split by source like this, still as an example:
| Source | Sessions | Conversions |
|---|---|---|
| 2,500 | 80 | |
| Direct, including untagged email | 1,500 | 40 |
| A partner’s article | 600 | 60 |
| A tagged newsletter | 400 | 20 |
The partner article is the smallest traffic row and the strongest conversion row: 60 ÷ 600 = 10%, against 80 ÷ 2,500 = 3.2% for Google. Sorting this table by sessions would hide the useful line. Sorting it by conversions, or by the rate, would not.
How does a cookieless tool count without cookies?
A cookieless tool counts the page loads it receives, and groups the same day’s activity, without writing an identifier into the browser.
A cookie-based tool stores a random id on the device and reads it back on the next visit. That is how it knows Monday and Thursday were the same browser, and it is the storage privacy rules ask you to explain and, in many places, to get consent for. A cookieless tool skips that write. Nothing goes into a cookie, and the default setup does not keep an id in localStorage either.
What happens instead, in the usual design and in ours:
- The page loads and the script sends a small message: the page, the referrer, and a few facts the browser already attaches to a request.
- The collector computes a short-lived id from that request, scoped to the site and to the day. Two loads from the same browser on the same day share an id, so they count as one visitor and can be grouped into sessions.
- The IP address and the raw user agent are inputs to that calculation and are then discarded. They are not stored. The next day the salt changes, yesterday’s id cannot be recomputed, and the same browser is a new visitor.
Pageviews do not need any of this. Each load is a count on its own. The short-lived id is only there so that loads can be grouped into a visitor and a session for that day. It does not name the person, it does not follow them to other sites, and it does not connect Friday to Monday. Weekly and monthly visitor totals therefore count a returning browser again on each day it visits. Cookieless analytics is the longer account of that trade.
Why do two analytics tools disagree?
Two honest tools disagree because they drop different traffic and they define a visitor and a session differently.
- Consent and blocking. A tool that waits for a cookie banner never sees the visitor who declines. An ad blocker stops some scripts and lets others through.
- Recognition. A cookie can tie a browser together for months. A daily id cannot. Visitor totals diverge as soon as people return on a second day.
- Session and pageview rules. Thirty minutes of quiet ends a visit in many tools. A new campaign ends it in some and not in others. Reloads and single-page route changes are counted by some scripts and missed by others.
Compare a week with the next week inside one tool. The decision you need, which page or source moved, is usually visible in both.
How do you start with web analytics?
Start by naming one conversion, installing one script on every page, and reading a full week before you change the site.
- Write down four questions. How many people came, from where, to which pages, and how many did the one action that matters this month. If a metric does not serve one of those, leave it for later.
- Put the script on every public page, including pages the app shows by changing the URL without a reload. A script that only listens for full loads will report one pageview per visit on a single-page app.
- Define one conversion. A signup, a purchase, a booked demo, a download. One is enough to start. A second goal is useful once the first has a week of data.
- Tag the links you send. Email, ads, PDFs and chat apps often arrive with no referrer, so an untagged click looks like a typed address. Campaign parameters give that click a name.
- Wait a week. Change the site after you have a baseline. A redesign launched the same day as the script has no before.
What should you look at in the first week?
In the first week, read visitors, the top pages, the top sources and the conversion count, and ignore a single noisy day.
Visitors tell you the script is alive. A total of zero means it is not on the page you are loading. A total far above every other source you have usually means bots are getting through, or you are comparing consented traffic with a tool that counts everyone. Top pages show where to work: a pricing page with almost no views is a navigation problem, and a post with half the site’s views is the page your sources are actually sending. The conversion count, even when small, shows the path from visit to action is connected. A week of traffic and zero conversions is a broken form, a goal pointed at the wrong event, or a site that is not asking.
Day to day movement inside that week is mostly noise. Compare this week with next week.
How does CrispStats keep the setup small?
CrispStats records the five counts with one script: visitors, pageviews, sessions, sources and the conversions you mark.
CrispStats sets no cookies and does not store an id in localStorage. A visitor is recognised for one day with a salted hash of the site, the IP address and the user agent, computed at the edge. The IP address and the user agent are discarded, and the salt rotates daily, so a return tomorrow is a new visitor. 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 History API navigation. The overview shows visitors, pageviews, sessions and views per visit, and a goal turns one event into a conversion rate.
Bots that announce themselves, and headless browsers, are dropped before anything is stored.
Terms in this guide
Free tools
- Conversion rate calculatorWork out your conversion rate from visitors and conversions: conversions ÷ visitors × 100. With the formula, a worked example and what a target rate needs.
- UTM builderBuild 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.
- A/B test significance and sample size calculatorCheck if an A/B test result is statistically significant, with the p-value and lift, or work out the sample size a test needs before you start it.
Use cases
- CrispStats for agenciesRun every client site from one account, share read-only dashboards by link, and send weekly reports, with no cookie banner to explain.
- CrispStats for startupsFunnels, retention, revenue attribution and uptime from the first day, on a price that stays small while you find your market.
More guides
All guides- Traffic · 10 minUnique visitors vs pageviews vs sessions: what each one countsUnique visitors count people, sessions count visits, pageviews count pages. How each is measured, a worked example, and why your tools disagree on the totals.
- Traffic · 11 minWebsite traffic sources explained: channels, referrals and directWhat website traffic sources and channels are, what referral traffic is, how tools sort each visit from the referrer and UTM tags, and how to compare sources.
- Privacy · 9 minCookieless analytics explained: how visitors are counted without cookiesHow cookieless analytics counts unique visitors with a daily rotating hash instead of a cookie, what it can and cannot tell you, and the trade-offs.