designwithfocus

Website metrics & analytics

Page Views vs Sessions GA4: Which Count to Trust

By Design With Focus Team 6 min read
Two counters, one labeled views and one labeled sessions, on a report card

Short answer

A page view counts a screen that loaded, and a session counts a visit that contains one or more of those screens. In GA4 the page_view event fires when a page loads or the browser history state changes, and that event fills the Views metric. A session starts when a user views a page and no session is already active. One session can hold many views.

Last verified against the sources listed below.

Key takeaways

  • Views count every screen or page seen, including a repeat of the same page.
  • A session starts on a page or screen view only when no session is active.
  • The default session timeout is 30 minutes of inactivity. There is no maximum length.
  • page_view is collected automatically and cannot be turned off. History events can be.
  • Session counts in reports are estimates. BigQuery can show a different count for the same export.

Page views vs sessions GA4 is a comparison of two counts that share a visit and do not measure the same thing. Trust views when you need screens seen.

Trust sessions when you need visits started. Neither help page prints an average you should copy.

The one-line verdict: a session is the container, and a view is one screen inside it. A single session often holds more than one view, and a new view does not always open a new session.

What is a session?

A session is a period of time during which a user interacts with your website or app.

About Analytics sessions says a session initiates when a user opens your app in the foreground, or views a page or screen, and no session is currently active. The example is a previous session that timed out.

By default, a session ends after 30 minutes of inactivity. There is no limit to how long a session can last.

The session glossary page repeats that start rule. It sets the same 30 minute default and says the maximum value for Adjust session timeout is 7 hours and 55 minutes. An engaged session lasts longer than 10 seconds, has a key event, or has at least 2 pageviews or screenviews.

When a session starts, Google collects session_start and generates ga_session_id and ga_session_number. The ID is the timestamp in seconds when the session starts. The number counts how many sessions that user has started, such as a third or a fifth.

Reports estimate unique session IDs. Session and user metrics are estimates.

What is a page view?

A page view is the Views metric, filled by the page_view event when a page loads or the history state changes.

Enhanced measurement says page_view is collected automatically and you cannot turn collection off. An advanced setting controls whether browser-history events send it. The listener covers pushState, popState, and replaceState.

Parameters include page_location and page_referrer. The event populates Views.

The Pages and screens report defines Views as the number of mobile app screens or web pages your users saw. Repeated views of a single screen or page are counted. The report also lists Views per active user, which is the average of those screens or pages per active user.

It includes pages later in the session, not only the landing page. The path / is the home page.

MDN’s pushState page says the method adds a history entry and that the browser will not load that URL just because you called it. A view can still be recorded, because GA4 listens for the history change itself. The method has been available across browsers since July 2015.

Views Sessions
What it counts Screens or pages seen, including repeats Visits, estimated from unique session IDs
What starts it page_view on load or history change A page or screen view when no session is active
Default clock None on the event itself Ends after 30 minutes of inactivity
Repeat of the same page Counted again Still the same session if one is active

Which count should you trust?

Trust the metric that matches the question. Use views for pages seen.

Use sessions for visits started. Do not divide them by a ratio these pages do not publish.

  • Pick Views on Pages and screens when the question is which URLs people opened, including a second look at the same URL.
  • Pick the Landing page report when the question is only the first page of the website session.
  • Pick Sessions, Engaged sessions, or Engaged sessions per active user when the question is how many visits started. Those metrics show on Acquisition and Engagement reports.
  • Do not treat a crawler hit as either number. The SEO starter guide describes Google’s crawlers finding pages. That is Search, not a GA4 session.
  • Do not treat a server access log as a session either. Node’s about page shows an HTTP server writing a response. A request in that process is not a session_start event.

How can the session total move?

The total moves when the timeout changes, when inactivity passes 30 minutes, or when you compare an estimate with a precise export.

Web session timeout is under Admin, Data Streams, the web stream, Configure tag settings, Show all, then Adjust session timeout. You can set hours and minutes, and a separate seconds value for the engaged-session timer.

Save when you finish. App sessions use setSessionTimeoutDuration, and an extend_session parameter of 1 can extend a session while the app is in the background.

Since October 2021, standard reports, Explorations, and Looker Studio estimate sessions with HyperLogLog++. The about page says you may see a small difference versus the older method, and that a report range which includes dates before October 2021 will not display. Historical rows can still be reached by filtering the event report for event=session_start.

BigQuery does not apply that estimate, so it can disagree with the reports. Google’s illustration on that page is 1,463 sessions in reports and 1,501 in BigQuery for one week, then 1,828 and 1,876 the next week, a 25 percent rise in both places. Those figures are the documentation’s example, not a benchmark for your property.

What should you not mix in?

A view is not a session, a session is not a crawl, and a smaller file does not change the definition of either metric.

Session attribution stays on the session_start event, using the non-direct last click model. The key event lookback window follows the All other conversion events setting, 90 days by default. The page’s example: a Google organic visit on day 1 and a direct return on day 68 can both be attributed to google / organic under that 90 day window.

Measurement Protocol and Data Import do not attach the session ID automatically. gtag.js and the Firebase SDK do. If session_start is filtered out of a subproperty, Analytics can still generate a session ID.

Web analytics is the broader practice these two metrics sit inside.

Pages per session is the related ratio. This article does not invent a typical value for it.

Heavy images do not decide whether a hit is a view or a session. The Image Compressor only reduces bytes in the browser before someone downloads the page.

Frequently asked questions

Can one session contain many page views?

Yes. A session is the period of interaction, and each page_view inside that period is its own event. Views count repeats, so refreshing the same URL adds another view without starting a new session, as long as a session is still active. A new session starts only when the user views a page or screen and no session is active, for example after the previous one timed out.

What is an engaged session?

Analytics Help defines an engaged session as a session that lasts longer than 10 seconds, has a key event, or has at least 2 pageviews or screenviews. The web timeout screen also has a separate timer for how many seconds a session needs before it counts as engaged. That timer is not the same control as the 30 minute inactivity timeout. A session can exist and still fail the engaged test.

Does a history change without a reload count as a view?

It can. Enhanced measurement says page_view fires each time the page loads or the active site changes the browser history state. The event is automatic and you cannot turn collection off. An advanced setting controls whether history events send it. The measurement listens for pushState, popState, and replaceState. MDN notes that pushState adds a history entry and does not by itself load the URL.

Why do standard reports and BigQuery disagree on sessions?

Reports estimate unique session IDs with HyperLogLog++. BigQuery can count the precise number and does not use that shortcut, so the two totals can differ by a small amount. Google's own illustration on the sessions page uses one week at 1,463 sessions in reports and 1,501 in BigQuery, then a later week at 1,828 and 1,876. Both columns in that illustration rise by 25 percent.

Where do I read views if I only care about the landing page?

The Pages and screens report includes every page or screen in the visit, not only the first one. Analytics Help says to use the Landing page report when you want the first page on the website. Views in Pages and screens still count repeats of a single page. Views per active user is that report's average of screens or pages per active user.

Sources