Pageviews
Pageviews count how many times pages were loaded by visitors. The metric reflects raw traffic volume, useful for comparing page popularity but blind to the quality of each visit.
Definition
A pageview fires every time a browser loads a page. This includes:
- Internal link clicks
- Page reloads (e.g. F5)
- Returning to a page from browser history
- In single-page apps, every client-side route change that calls
history.pushStateorreplaceState, plus back and forward navigation
Pageviews do not consider visitor uniqueness. The same person reloading the same page five times produces five pageviews.
Hash routing is not detected
A route change made by setting location.hash (/#/about) calls neither pushState nor replaceState, so nothing fires and no pageview is recorded. Switch the router to history mode, or call window.statable.t('pageview') yourself on each route change.
For beginners
Pageviews are a raw metric. They show traffic volume but not engagement. Combine with visitors or bounce rate for a fuller picture.
Difference from other metrics
- Sessions: a group of interactions inside a time window (typically 30 min). One session can contain many pageviews.
- Unique pageviews: pageviews counted once per session, even on reload. A Google Analytics concept. Statable does not report it, so use Visitors when you need a de-duplicated count.
- Hits: any request to the server (image, script, page). Lower-level than pageviews.
| Metric | What it measures | Example use |
|---|---|---|
| Pageviews | Total page loads | Article popularity |
| Sessions | Number of visits | Visit frequency |
How pageviews work in practice
A page with many pageviews is doing one of three things:
- Genuinely engaging readers who share the link.
- Frustrating users who reload to recover from errors.
- Attracting bots inflating the count.
To track pageviews, install the Statable tracking script once in your <head>. The script registers a pageview on initial load and on every SPA route change (it wraps history.pushState / replaceState).
Example
A visitor opens the homepage (1 pageview), goes to "About" (2), returns to the homepage (3). Three pageviews in one session. Another visitor opens the homepage and leaves: 1 pageview.
Example
A product page records 1,000 pageviews from 600 visitors in a day. The gap is repeat loads, often people refreshing to check stock.
Advantages and limitations
Advantages:
- Easy to interpret. More pageviews usually mean more activity.
- Useful for A/B testing variant exposure.
Limitations:
- No signal about time on page or scroll depth.
- Inflated by automatic refreshes and bots.
To clean the count, exclude internal traffic via the IP / hostname blocklist or the per-browser opt-out flag (localStorage.setItem('analytics_ignore', 'true')). Read pageview counts alongside other top-line metrics for context.
Ready to take control of your web analytics? Try Statable free for 30 days. No credit card required, full feature access, built for GDPR. Start your free trial or view a live demo.