Skip to content
whovisited.

Analytics basics · Troubleshooting

Why visitor, session, and page-view counts do not match

Learn why analytics totals differ across dashboard cards, daily charts, and visitor rows—and how to compare the same UTC window and counting rule.

These numbers count different things

A dashboard can show 120 visitors, 175 sessions, and 430 page views without losing or duplicating data. The values describe different units: a visitor is a browser record, a session is a visit window, and a page view is one event. One browser can return for multiple sessions, and one session can contain several page views. There is no rule that makes these totals equal.

Before comparing any two analytics numbers, write down four things: the entity being counted, the timestamp used, the time range, and the website/workspace filter. If even one differs, the totals answer different questions.

The dashboard cards and chart use different scopes

In WhoVisited, the overview cards are labeled “All time · All websites.” They count visitor records, sessions, and page-view events across the workspace with no date filter. The visitor activity chart below them is different: it shows seven UTC calendar-day buckets of page views, including the current day, which is still in progress. A chart for the last seven days should not be expected to add up to an all-time card.

The Visitors page has another scope. Its default range is the last 30 days, with options for 7 and 90 days. The summary counts visitors whose last-seen time falls inside the selected rolling window, sessions whose start time falls inside it, and page-view events whose received time falls inside it. This is a rolling period measured back from now, rather than seven or thirty complete calendar days.

A visitor row is filtered by last-seen time, but the Sessions and Page views values on that row come from the visitor's stored aggregate counters. Those row values are not limited to the selected period. That is useful when investigating the browser's history, but it means the row totals are not supposed to sum to the period summary cards.

The timestamp rule matters as much as the date range

The product uses different timestamps for these measures. A session belongs to a period based on when it started. A page view belongs based on when the event was received. A visitor belongs based on its most recent activity. For example, a session that began just before midnight UTC and continued after midnight can be counted in the earlier period, while a page-view event received after midnight can land in the next period. This is a boundary effect, not necessarily a missing session or page view.

The overview and Visitors report explicitly label their reporting time as UTC. A UTC day starts at 00:00 UTC; in China Standard Time that is 08:00. If you compare a report with a spreadsheet grouped by local midnight, events around that boundary will appear on different dates. PostgreSQL stores timezone-aware timestamps internally in UTC and converts them for display according to the configured time zone, so use explicit zones when you group or export timestamps.

sql
-- Compare page-view events by UTC calendar day in PostgreSQL
SELECT date_trunc('day', received_at AT TIME ZONE 'UTC') AS utc_day,
       count(*) AS page_views
FROM events
WHERE type = 'page_view'
  AND received_at >= TIMESTAMPTZ '2026-11-06 00:00:00+00'
  AND received_at <  TIMESTAMPTZ '2026-11-14 00:00:00+00'
GROUP BY utc_day
ORDER BY utc_day;

This query is an example for a database you control; WhoVisited does not expose direct SQL access to customer event data. The half-open range includes the start and excludes the next midnight, preventing an event exactly at midnight from being counted in two adjacent days. Change the dates and time zone deliberately when comparing another reporting window.

A practical way to compare reports

  1. Choose one website and one exact UTC interval. Record both endpoints with the UTC offset; do not compare a local-calendar export to a UTC dashboard day without converting it.
  2. Compare page views with page-view events in that interval, using event received time. Compare sessions with sessions started in that interval. Do not expect those two totals to match: one session may have multiple page views, and a session can contain no retained page view if collection or consent behavior interrupted it.
  3. For a visitor count, use distinct visitor records active in the same interval, based on last-seen time. A count of visitor rows from the Visitors page is a separate check only if its time range and website filter match.
  4. Do not sum the visitor table's per-row session or page-view counters to reproduce the selected-period cards. Those row counters are accumulated totals, even when the rows were selected because the visitor was recently active.
  5. Refresh after the interval ends and allow event ingestion to finish. Compare a small synthetic test journey—a new browser, two pages, then a later return—so you know which events and sessions your own setup should create.

For campaign or conversion questions, also verify the report's goal, attribution scope, and session-start period. A conversion is not interchangeable with a page-view event, and a landing-page or source report may group sessions rather than individual events.

When a difference is a real collection problem

A mismatch alone is not proof of a tracker failure. Investigate when a controlled test event is absent after you align the website, UTC window, event type, and timestamp field—or when an accepted event appears under a different site or session than expected. Check the browser network request and response, consent state, allowed origin, and whether the tracker is installed more than once.

Browser analytics is not an accounting ledger. Blockers, consent choices, network errors, browser storage limits, and visitors who leave before a request completes can all affect what is collected. For orders or signups that must be authoritative, reconcile against the system that records the transaction rather than treating analytics totals as a billing source of truth.

Limits and references

WhoVisited's overview cards are workspace-wide lifetime totals, while its activity chart and Visitors report use separate UTC windows and timestamp rules. The visitor list also shows accumulated counters on rows selected by recent activity. These distinctions are based on the current dashboard and query implementation; labels and behavior can change in future releases.

For timestamp behavior, see PostgreSQL's date/time type and date/time function references. For practical visitor investigation, read the WhoVisited guide to filtering, sorting, and paginating a large visitor list.

References and further reading

  1. PostgreSQL: Date/Time Types
  2. PostgreSQL: Date/Time Functions and Operators
  3. WhoVisited: Investigate a large visitor list