Sub topic 5
Reading the Pages and screens report
This chapter assumes you have a GA4 property with a web data stream collecting data. It also assumes you know the left-hand navigation and what a page view is. The earlier chapters on the event model and the Events report help, because every number here is computed from events.
What the report shows
The Pages and screens report lives at Reports > Engagement > Pages and screens. It answers one question: which pages (web) and screens (app) do people look at, and how much attention do they get?
One row is one value of the primary dimension. For each row you get these metrics:
| Column | What it counts |
|---|---|
| Views | `page_view` plus `screen_view` events |
| Users | Active users who had at least one view on that row |
| Views per user | Views divided by Users |
| Average engagement time | Total engagement time divided by active users |
| Event count | All events fired on that row, filtered by the dropdown above the column |
| Key events | Count of the selected key event on that row |
| Total revenue | Revenue from purchase-type events on that row |
Which columns appear can differ slightly by property and by how the report has been customized.
Views come from two events
"Views" is the metric screenPageViews in the Data API. It counts page_view events from web streams and screen_view events from app streams. This is why one report covers both pages and screens.
A page that reloads counts again. A user who opens the same page three times adds three views but only one user. That gap is what Views per user shows.
Choosing the primary dimension
The default primary dimension is Page title and screen class. Use the dropdown at the top of the first column to change it. The common options are:
- Page path and screen class groups by URL path, such as
/pricing. The path excludes the hostname and, by default, the query string. - Page path + query string and screen class keeps parameters such as
?id=42. Use it when the query string selects the content. - Page title and screen name is the app-friendly pairing, using the screen name the app sends.
- Content group groups pages if you have configured the
content_groupparameter.
The choice changes the number of rows and what is merged, so it can change what you conclude.
- Two different pages with the same title (for example "Home") merge into one row under a title dimension. The same page served under two titles splits into two rows.
- A path dimension merges the same path across different hostnames. If your stream covers
www.example.comandblog.example.com,/from both collapses into one row unless you add the hostname as a secondary dimension. - Titles that were never set appear as
(not set). Fix this at the source by giving each page a real<title>.
Average engagement time is per user
This is the metric people misread most often. In this report, Average engagement time is the total foreground time on that row divided by the number of active users on that row. It is not divided by views and it is not divided by sessions.
Engagement time is accumulated from user_engagement events. The browser counts time only while the page is in the foreground. A background tab adds nothing.
The practical consequences:
- A user who views the same page five times has five views of time added together and still counts as one user.
- A page with a few readers who each stay a long time can outrank a popular page where most people leave quickly.
- The value for a row is not the average of that row's sessions' durations. Chapter on engagement time covers why GA4 avoids "session duration" and how this metric differs from it.
Users and why rows do not sum
Users per row counts people who viewed that page. One person who visits /pricing and /docs is counted once in each row. If you add the Users column, the total is larger than the property's real user count. The summary at the top of the report, which GA4 calculates over the entire date range, is the true deduplicated figure.
The same applies to Views per user and to any other ratio. Compare rows with each other, but do not total them by hand.
Working with the table
A few controls make the report much more useful:
- Search the first column to find a section of the site, such as
/blog/. - Add filter lets you restrict to a hostname, a device category, or a country. Filters apply to the whole report.
- Add comparison places two audiences side by side, such as mobile versus desktop, without changing the filter.
- The Event count dropdown switches which event the column counts. Select
file_downloadto see which pages triggered downloads. - The Key events dropdown does the same for key events. This shows which pages host a conversion action, though it does not show the path that led there.
- Under Customize report you can change the default primary dimension or add secondary ones, such as hostname.
Event count here counts every event the page fires, including scroll, click, and user_engagement. A high count means the page is busy, not that it is better.
Getting accurate rows: titles and single-page apps
The report is only as good as the page data it receives. Two sources of error come up often.
A single-page app does not reload when the route changes. With enhanced measurement enabled, GA4 sends a page_view on browser history changes. If your framework uses a different mechanism, or you disabled that option, route changes go unseen and every visit looks like one page. Send the event yourself:
// Call this after each route change in a single-page app
// (assumes gtag.js is loaded and history-based page views are turned off)
function trackRoute(path, title) {
gtag('event', 'page_view', {
page_location: window.location.origin + path,
page_title: title
});
}
trackRoute('/pricing', 'Pricing | Example');Only send manual page views if you turned off history-based page views. Otherwise you will double count.
The other source of error is query strings. Tracking parameters such as ?utm_source=... are handled separately as campaign data and are not part of pagePath. Other parameters, like ?sessionid=..., can create thousands of unique rows if you use the path-plus-query dimension. Pick the dimension that matches how your site builds URLs.
Landing pages are a different view
The Pages and screens report counts every view, wherever the page appears in a visit. It does not tell you where visits start. For that, use the landing page report, covered in a later chapter. A page can have many views because people reach it from other pages on your site and few views as an entry point.
Reproducing a row with the Data API
You can reproduce a row with the Data API. Hostname is a useful second dimension, because path alone merges subdomains.
{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "hostName" }, { "name": "pagePath" }],
"metrics": [
{ "name": "screenPageViews" },
{ "name": "activeUsers" },
{ "name": "userEngagementDuration" }
],
"orderBys": [{ "metric": { "metricName": "screenPageViews" }, "desc": true }],
"limit": 10
}userEngagementDuration is in seconds. Dividing it by activeUsers for a row gives the Average engagement time shown in the report. The API adds a default pagination, so ask for more rows with limit and offset when you need them.
Common mistakes
- Treating Views as visits. One visit can produce many views.
- Reading Average engagement time as time per view. It is per active user.
- Comparing rows across different primary dimensions. A title row and a path row describe different groupings.
- Ignoring data thresholds and sampling notes. When thresholds apply, rows with small user counts can be withheld. Check the notice near the top of the report.
- Overlooking the date range. Event counts and users depend on the selected range, and recent days may still be processing.
Exercise
On a Pages and screens row for /pricing, Views is 600, Users is 200, and total engagement time is 12,000 seconds. What are Views per user and Average engagement time? Then explain why summing the Users column across all rows would not give the property's total users.
Show answer
Views per user is 600 / 200 = 3. Average engagement time is 12,000 / 200 = 60 seconds, because the report divides by active users, not by views or sessions. Summing Users across rows double counts anyone who viewed more than one page, so the total of the rows exceeds the real user count. Use the report's totals row for that.
Exercise
Your site has www.example.com/ and blog.example.com/, and you see one very large / row under Page path and screen class. What happened, and how do you separate them?
Show answer
The path dimension excludes the hostname, so both home pages merge into one / row. Add Hostname as a secondary dimension in the report, or in the API request include hostName alongside pagePath.