When sessions don't add up

Export a report of sessions by page, sum the Sessions column, and you get a number bigger than the Total at the top. Often much bigger.

Sum the rows, then switch to Page title.

0

sum of the rows · the Total says 333,683

The report's Total333,683

Sum of the rows0

Device categorySessions
Total333,683
desktop193,667
mobile132,606
tablet7,410

Nothing is broken. Each row counts the sessions that viewed that page. A visit that goes Home → product → Home lands in two rows, so the sum counts it twice, while the Total counts every session once.

Whether you can sum the rows depends on the dimension:

  • One value per session, like the device or the channel the session came from, so the rows sum to the total.
  • Values that can change during a session, like the page or the event name, so the rows sum to more.

The gap isn't small. In Google's GA4 sample of the Merchandise Store, 333,683 sessions viewed at least one page between November 2020 and January 2021, but the rows of a report by page sum to 884,352. Use that sum in a conversion rate and the rate drops to less than half of the real one.

Users work the same way. Someone who views five different pages sits in five rows, so a report by page counts them five times.

In the GA4 interface, even the device rows may not sum exactly to the Total, because GA4 estimates sessions and users instead of counting them one by one. That gap is tiny, nothing like this one.

To compare pages, use Views instead. Each view belongs to one page only, so its rows can be summed.

Data: Google's GA4 sample from the Merchandise Store, November 2020 to January 2021, exact counts from BigQuery. The queries and the notebook are on GitHub.

Check yourself

  1. Do the rows of a report by device category sum to the real sessions?

  2. Is a Home → product → Home visit counted in three rows of a report by page?

  3. Can you sum the Views of a report by page?