Session

A session is one visit, meaning everything a user does on your site or app from the moment they arrive until they go inactive.

Click a few times, then stop and watch the clock.

30:00

a session ends after 30 minutes without a click

·

It starts when someone views a page or opens your app and no session is already running. GA4 marks that moment with a session_start event and gives the session two values:

  • ga_session_id, the time the session started, in seconds.
  • ga_session_number, which counts this user's sessions so far.

Because it's a time, two users can start a session with the same ga_session_id. That's why a session is identified by the id together with the user's ID (user_pseudo_id).

From then on, every interaction keeps the session alive. After 30 minutes without activity it ends, and the next interaction starts a new one. There is no maximum length. Stay active and one session can last hours, even across midnight or a change of campaign.

The 30 minutes are only the default. You can change the timeout in GA4's settings, up to 7 hours and 55 minutes.

The Sessions total in your reports is an estimate. GA4 counts unique session IDs with an approximation method called HyperLogLog++, so a small difference from an exact count in BigQuery is normal.

Check yourself

  1. Can a session last longer than 30 minutes?

  2. Is ga_session_id a random identifier?

  3. Is the Sessions number in GA4 reports an exact count?