✦ Now with returning players and D1, D7, D30 retention
☰
All featuresAttributionRetentionAnalytics OverviewIntegrationsPricingDocumentationComparisonsFree toolsBlogGlossary
METRIC DEFINITION

What is a session?

A session is a sequence of pageviews and custom events from one anonymous visitor ID that share the SDK's client session ID. The SDK starts a new session ID after 30 minutes without events. A session does not end at midnight: it counts on the UTC day of its first event.

An event without a session ID (a server event, or an event from an older SDK version) joins the browser session of the same visitor that is active at that time, so a server purchase counts in that session. If no session is active, a 30-minute inactivity rule applies instead: more than 30 minutes without a pageview or custom event starts another session. A session ID whose events span more than 24 hours is also split with the inactivity rule.

Only a sequence with at least one pageview counts as a session. An event sent by itself does not create a session in the overview. Retries with the same event message ID are counted once.

Example

A visitor views a page at 10:00 and another at 10:05, then returns at 10:40. The first two pageviews form one session; the third starts another because the SDK rotates its session ID after 30 minutes without events. All three share one anonymous visitor ID, which persists across days. A visit from 23:50 to 00:10 UTC is one session, counted on the first day.

Related metrics

Pages per session is pageviews divided by sessions. Average session duration is the sum of each session's first-to-last event span divided by sessions. A one-event session has zero recorded duration.

Bounce rate is the share of sessions with exactly one pageview and no custom events. Only events inside the selected UTC date range are used. A session that starts before the range counts from its first event in the range.

Read how visitors are counted and the collection and privacy model. Updated 8 November 2026.

Frequently asked questions

When does a session end?

The SDK starts a new session ID after 30 minutes without events, so a gap of more than 30 minutes starts another session. A session does not end at midnight. It counts on the UTC day of its first event, so a visit from 23:50 to 00:10 UTC is one session.

Do server events start a session?

No. An event without a session ID, such as a server event, joins the browser session of the same visitor that is active at that time. So a server purchase counts in that session. If no session is active, a 30-minute inactivity rule applies. Only a sequence with at least one pageview counts as a session.

How are pages per session, duration and bounce rate calculated?

Pages per session is pageviews divided by sessions. Average session duration is the sum of each session's first-to-last event span divided by sessions, and a one-event session has zero duration. Bounce rate is the share of sessions with exactly one pageview and no custom events.