Listen to this article
You can think of Users, Sessions, and Pageviews as nested elements of each other: Users have sessions, and each session has pageviews.
Let’s take a look at a visit from an actual user—let’s call him Frank—and see how Google Analytics counts his interactions with your site. Frank has never been to your site before, but yesterday looked at your homepage, then clicked a link in your navigation menu to go Page 2, clicked another link to go to a Page 3, then went back to Page 2.
We can visualize Frank’s trip through your site like this:
Translating this visit to your site into Google Analytics numbers, this is what Frank added to your reports:
- One user (Frank himself)
- one session
- four pageviews (three unique pageviews)
Google Analytics counts each user and session by using cookies—small bits of text that browsers write onto a computer’s hard drive that record information about any past activity on a site.
This cookie will expire after two years of inactivity. If Frank visits your site once again, more than two years after his first visit, he’ll be counted as a new user. But if he visits even once before two years have elapsed, Google Analytics will see the preexisting user cookie, count him as a returning user, and add another two years to the user cookie’s expiration date.
So let’s say Frank goes to your site, then goes to get lunch but leaves his browser open at your homepage, and doesn’t come back for another 35 minutes. When he gets back and clicks to visit another page on your site, it will be counted as the beginning of a new session, because the first one will have expired.
Conversely, if Frank gets really absorbed in your site and spends three hours clicking from page to page, all of that activity will be recorded as part of a single session. Unless Frank’s marathon visit extends past midnight, in which case the session cookie will expire and a new one will be created. The session cookie will also expire if Frank spends more than 30 minutes looking at a single page, without clicking to visit a new page. The session cookie is only renewed when new data is sent to Google Analytics, and usually that’s only when a new page is loaded.
Google has a more detailed explanation of how sessions are counted, if you’re interested.
Pageviews and Unique Pageviews
Unique pageviews are way to get around this double-counting. A unique pageview counts pages viewed at least once during a session. So, Frank’s refreshing the page over and over again will create eight pageviews, but just one unique pageview.
How accurate are these numbers?
In short, not very accurate, but probably good enough as estimates of your actual users’ activities and how they are changing over time. Relying on cookies to track users and sessions has some serious flaws.
First of all, cookies are browser and device specific. If Frank visits your site on his laptop computer, then on his phone, and then later on his work computer, he’s counted as three users. Similarly, if he uses different browsers on the same machine, he’s counted as a different user for each. Use of multiple devices and multiple browsers like this can systemically inflate your user and session counts.
Some users may routinely erase their browser’s cookies as well, which will also inflate your user and session counts. If Frank clears his browser’s cookies, the next time he visits your site he will be counted as a new user with a new session. No one knows exactly how many people routinely delete their cookies, and how often they do so. But the usually-cited figure, based on a study by Comscore in 2006, is that “3 in every 10 Internet users delete their cookies in a month.”
All these sources of inaccuracy (and there are more, too) don’t mean, however, that your Google Analytics numbers are meaningless. The count of users and sessions from your analytics dashboard almost definitely does not equal the number of actual people who are using your site, and the number of times they visit. But if you consider that the sources of inaccuracy are largely constant from site to site, and from month to month, then your analytics numbers are a roughly accurate gauge of your site’s performance relative to other sites and time periods. So they are still useful for comparing one site to another, and one month or year to another.
- Colorado’s new accessibility law HB21-1110 and your library’s website - May 24, 2022
- The Only Diagramming Tool You’ll Ever Need (And It’s Free!) - February 21, 2019
- Talking Book Library Named Network Library of the Year - May 17, 2018