How is it calculated?
An analytics script sends one pageview when a page loads. On single-page apps, where the browser never reloads, the script listens for changes to the URL through the History API and counts each navigation as a new view.
Tools differ on the edges: whether a reload counts, whether a page restored from the back/forward cache counts, and whether the same URL twice in a row is one view or two.
Example
A visitor lands on your home page, opens the pricing page, goes back to the home page and leaves. That is three pageviews, one session and one unique visitor. Views per visit for that session is 3.
Common mistakes
- Reading pageviews as people. One person can produce fifty pageviews, and fifty people can produce fifty. Use unique visitors when the question is about audience size.
- Forgetting single-page navigation. If the script only counts full page loads, a React or Vue app looks like every visit has one view.
- Comparing totals between tools without checking how each one filters bots. A tool that filters less will always show more.