Analytics Fundamentals

What Is a Session in Web Analytics? Complete Guide to How Visits Are Measured

Sebastian Anderson, web analytics consultant Sebastian Anderson January 20, 2026 6 min read
Business analytics dashboard showing session metrics in office

Every analytics report you’ve ever seen relies on sessions. Session count. Pages per session. Average session duration. Bounce rate (sessions with only one pageview).

But what exactly is a session? How does your analytics tool decide when one session ends and another begins?

Understanding sessions isn’t just academic. Miscounting sessions skews every metric that depends on them—which is nearly all of them. Different analytics tools count sessions differently, which means switching tools can make your numbers jump or drop overnight.

In this guide:

What Is a Session? The Simple Definition

A session (also called a “visit”) is a group of interactions that a single user performs on your website within a specific time period.

Think of it like a visit to a physical store:

If you come back an hour later, that’s a new visit—a new session. One person, two sessions.

The key insight: sessions measure visits, not visitors. One unique visitor can generate multiple sessions over time. This distinction matters for understanding your traffic patterns.

How Sessions Start

A new session begins when:

  • A user arrives at your site — The first pageview triggers a new session
  • The previous session timed out — After 30 minutes of inactivity
  • The calendar date changed — In some tools, midnight ends all sessions
  • Traffic source changed — In some tools, a new campaign or referrer starts a new session

The first two triggers are universal. The last two vary by analytics tool—an important distinction we’ll explore below.

How Sessions End

Sessions don’t have a clear “end” event like clicking a logout button. Instead, they end through inactivity timeout.

The 30-Minute Timeout Rule

The industry standard is 30 minutes of inactivity. If a user doesn’t interact with your site for 30 minutes, the session is considered over.

Here’s how it works in practice:

TimeUser ActionSession Status
10:00 AMVisits homepageSession 1 starts
10:05 AMClicks to pricing pageSession 1 continues
10:08 AMClicks to features pageSession 1 continues
10:08 AM – 11:00 AMNo activity (lunch break)Session 1 times out at 10:38 AM
11:00 AMReturns to siteSession 2 starts

The 30-minute window resets with each interaction. If you’re actively browsing, your session continues indefinitely. A 3-hour shopping session with constant activity counts as one session.

Why 30 Minutes?

The 30-minute standard comes from early web analytics tools trying to balance two needs:

30 minutes represents a reasonable middle ground for most websites. However, it may not be ideal for every use case—video streaming sites or long-form content platforms might benefit from longer timeouts.

Session vs Pageview vs Unique Visitor

These three metrics form a hierarchy. Understanding their relationship prevents common reporting mistakes.

MetricDefinitionExample
PageviewEach page loadUser views 5 pages = 5 pageviews
SessionGroup of pageviews in one visitUser views 5 pages in one sitting = 1 session
Unique VisitorOne person (device) over timeSame user visits 3 times this week = 1 visitor

The hierarchy flows: Pageviews → Sessions → Unique Visitors

If your site shows 10,000 pageviews, 4,000 sessions, and 2,500 unique visitors, you can calculate:

What Extends a Session?

Any user interaction that your analytics tool tracks will reset the 30-minute timeout:

Actions that don’t extend sessions:

This creates a blind spot: if someone reads a long article for 45 minutes without clicking anything, then navigates to another page, analytics will count that as two sessions. The reading time created a timeout, even though the user never left.

Session Counting Scenarios

Let’s examine four common scenarios to understand how session counting works in practice.

Scenario 1: Normal Browsing

User visits your site at 2:00 PM, browses 4 pages over 15 minutes, then leaves.

Result: 1 session, 4 pageviews

Straightforward. All activity happened within the 30-minute window.

Scenario 2: Timeout Break

User visits at 2:00 PM, views 2 pages, leaves for a 45-minute meeting, returns and views 2 more pages.

Result: 2 sessions, 4 pageviews

The 45-minute gap exceeded the timeout, creating a session break.

Scenario 3: Midnight Split

User browses from 11:50 PM to 12:10 AM (20 minutes total, crossing midnight).

Result varies by tool:

Midnight splits inflate session counts artificially. Privacy-first tools avoid this behavior.

Scenario 4: New Traffic Source

User arrives from Google search, browses for 5 minutes, then clicks a Facebook ad for your site (opening in the same browser).

Result varies by tool:

The “new source = new session” rule exists to give accurate attribution data but inflates total session counts.

Four common session counting scenarios and comparison table showing how different analytics tools handle sessions
How different scenarios affect session counting across analytics tools

How Different Analytics Tools Count Sessions

Not all analytics tools implement sessions the same way. Here’s how the major privacy-first options compare:

FeaturePlausibleUmamiFathomMatomo
Default timeout30 min30 min30 min30 min
Midnight splitNoNoNoOptional
New source = new sessionNoNoNoOptional
Requires cookiesNoNoNoYes*
Customizable timeoutNoNoNoYes

*Matomo can run without cookies but with reduced session accuracy

Cookie-Free Session Tracking

Traditional analytics used cookies to maintain session state. Modern privacy-first tools use alternative methods:

These methods provide session tracking without requiring cookie consent banners—a significant compliance advantage under GDPR and similar regulations.

Session Metrics That Matter

Sessions power several important analytics metrics:

Pages Per Session

Total pageviews divided by total sessions. Indicates how deeply users explore your site.

Average Session Duration

Time between first and last interaction in a session.

Important caveat: Single-page sessions have 0:00 duration by default. If someone spends 10 minutes reading your blog post but never clicks anything else, the session duration is recorded as zero. This is why bounce rate and session duration can be misleading for content sites.

Bounce Rate

Percentage of single-page sessions. A “bounce” is a session with only one pageview.

Bounce rate has significant limitations—a user who reads your entire article and leaves satisfied counts as a bounce. Many analytics professionals now prefer engagement-based metrics instead.

Common Session Counting Problems

Problem 1: Bot Traffic Inflating Sessions

Bots and crawlers generate sessions too. Quality analytics tools filter known bots, but new or custom bots may slip through. Signs of bot traffic:

Problem 2: Single-Page Apps Undercounting

Single-page applications (SPAs) built with React, Vue, or Angular don’t trigger traditional pageviews when navigating. Without proper configuration, an entire session might appear as one pageview.

Solution: Implement virtual pageview tracking when routes change.

Problem 3: Cross-Device Sessions

A user researches on their phone, then purchases on their laptop. Without user ID tracking, this appears as two separate visitors with two separate sessions—fragmenting the customer journey.

Privacy-first analytics typically don’t track across devices (by design), so keep this limitation in mind when analyzing user behavior.

Practical Tips for Session Analysis

  • Compare trends, not absolutes — Session counts vary by tool configuration. Focus on percentage changes over time rather than raw numbers.
  • Segment by traffic source — Session behavior varies dramatically between organic search, paid ads, and direct traffic.
  • Watch for anomalies — Sudden session spikes without business reasons often indicate bot traffic or tracking issues.
  • Consider session quality — 1,000 engaged sessions beat 10,000 bounced sessions. Combine session counts with engagement metrics.
  • Account for tracking blockers — Ad blockers prevent session tracking for some visitors. Your real traffic is likely 10-30% higher than reported.

Key Takeaways

Understanding sessions helps you interpret analytics data correctly:

Sessions remain fundamental to web analytics, even as the industry shifts toward engagement-based metrics. By understanding how they work, you’ll make better decisions from your data—and avoid common misinterpretations that lead to wrong conclusions.

Sebastian Anderson, web analytics consultant
Sebastian Anderson
Analytics Consultant

Web analytics consultant with 12+ years of experience helping businesses understand their website visitors. Specialises in privacy-first analytics tools like Plausible, Matomo, and Umami. Based in Melbourne, Australia.

Enjoyed this article?

Get more privacy-first analytics tips delivered to your inbox weekly.