Skip to content

How a session works in Google Analytics and how GA4 counts it

Learn what a session in Google Analytics is, how GA4 starts and ends one after 30 minutes, and why counts differ from Universal Analytics.

A session in Google Analytics is a group of user interactions with a website or app inside a given time window. In GA4, a session opens with an automatically collected session_start event and closes after 30 minutes of inactivity by default.

That's the short answer to "what is sessions in google analytics," and the rules behind it decide whether your content numbers hold up. Sessions are the denominator for engagement rate, bounce rate and most per-visit metrics. GA4 counts sessions under different rules than Universal Analytics did, so a year-over-year comparison that crosses the migration can shift with no change in how any page performed.

How Google Analytics defines a session

Google's GA4 session definition describes a session as a group of user interactions that take place within a given time frame. Universal Analytics used almost the same words. The difference sits in what counts as an interaction.

Universal Analytics was hit-based. A single session could hold page views, events, social interactions and ecommerce transactions, and each was a separate hit type. GA4 is event-based. A page view, a scroll and a purchase are all events, and every event carries the ID of the session it belongs to.

A session and a user measure different things. A user is a person (more precisely, an identifier such as a browser cookie or user ID) who triggered events, while a session is one bounded visit. One user can open many sessions on the same day or across weeks, which is why sessions normally exceed users.

How GA4 starts a session

GA4 starts a session when a user opens an app in the foreground, or views a page or screen while no session is active. A session can be inactive because the previous one timed out. When that happens, Google automatically collects a session_start event and generates two parameters.

  • The ga_session_id parameter is the timestamp, in seconds, when the session started. A ga_session_id is not unique on its own, so pair it with user_pseudo_id or user_id to get one identifier per session.
  • The ga_session_number parameter counts the sessions the user has started up to the current one, such as their third or fifth visit.

The session_start event matters for more than counting. The event carries the information GA4 uses to attribute the session: the gclid, UTM parameters and referrer. If session_start goes missing, session source and medium report as (not set), and the traffic lands in Unassigned.

GA4 also estimates session counts. Since October 2021, standard reports, Explorations and Looker Studio count unique session IDs with the HyperLogLog++ method. BigQuery exports skip that estimate, so a BigQuery session count can differ slightly from the interface.

When a session ends

A GA4 web session ends after 30 minutes of user inactivity by default; you can adjust that timeout, and there's no cap on how long an active session can run. Google's Universal Analytics documentation described how every interaction reset the legacy Universal Analytics timer by adding a fresh 30 minutes from the time it happened.

The same legacy documentation illustrates the 30-minute boundary with a Universal Analytics example of a lunch break: a reader leaves a page open and walks away. At 29 minutes away, the original session continues when they come back. At 31 minutes, the first session ends at the 30-minute mark and a new one begins on return.

Apps behave differently. An app session starts timing out when the app moves to the background. Events sent from the background with an extend_session parameter set to 1 keep it alive.

For web sessions, the data stream settings let you adjust both the inactivity timeout and the engaged-session timer.

Change the session timeout in GA4

Change the timeout when 30 minutes doesn't match how people use your pages, such as long documentation reads or video. The setting lives in the web data stream:

  1. In Admin, under the Property column, select Data Streams.
  2. Select your web data stream.
  3. At the bottom of the page, select Configure tag settings.
  4. In the Settings section, select Show all.
  5. Select Adjust session timeout and set the value in hours and minutes.
  6. Optionally, select Adjust timer for engaged sessions and set the number of seconds.
  7. Select Save.

The maximum session timeout is 7 hours and 55 minutes. The engaged-session timer defaults to 10 seconds. For apps, set the timeout in code with the setSessionTimeoutDuration method.

Rules that start, end or split a session

The two versions share the inactivity rule and part ways on everything else. This table sets the triggers side by side:

TriggerUniversal AnalyticsGA4
session_start eventNo such event; sessions were built from hitsStarts a session when a page, screen or app opens with no active session
New ga_session_idNot applicableA new session_id sent through the Measurement Protocol creates a new session without session_start
30 minutes of inactivityEnds the sessionEnds the session; adjustable up to 7 hours 55 minutes
MidnightEnds the session, using the view time zoneDoes not end the session
Campaign or source changeEnds the session and opens a new oneDoes not start a new session

GA4 and Universal Analytics sessions compared

GA4 session counts differ from Universal Analytics counts for the same traffic, and Google's metric comparison guide names the causes. Event processing, midnight boundaries and campaign changes account for the differences below.

Hits versus events

Universal Analytics built sessions from hits and processed a hit only if it arrived within 4 hours of the close of the preceding day, while GA4 derives session metrics from session_start and processes events that arrive up to 72 hours late. Google's example is a user who regains service 48 hours later: GA4 processes those events and Universal Analytics didn't, so GA4 reports the higher session count. GA4 also measures session duration as the time between the first and last event in the session.

Midnight and time zone splits

Universal Analytics cut every session at midnight in the view's time zone, so a visit from 11:50 PM on August 14 to 12:10 AM on August 15 became two sessions: one ending at 11:59:59 PM, one starting at 12:00 AM. GA4 doesn't restart sessions at midnight; it counts unique combinations of user ID and ga_session_id regardless of the date, so a late-night visit stays one session.

Adding up daily Universal Analytics session counts double-counted any session that crossed midnight.

Campaign and source changes

Universal Analytics opened a new session every time the campaign source changed, even when the earlier session was still inside its 30-minute window. In Google's example, a user arrives through the organic keyword Red Widgets, then returns through the paid keyword Blue Widgets, and Universal Analytics records two sessions.

  • Autotagged clicks could each generate a session.
  • Manually tagged links carried identical UTM values on every click, so repeat clicks could fold into one session.
  • Direct traffic never overrode a known source.

GA4 associates each session with one campaign or traffic source and doesn't start a new session when it meets a new one. The source recorded on session_start holds for the visit.

Google notes this rule can produce lower session counts in GA4. Referrers feed the same attribution, and a domain on the unwanted-referrals list (covered below) is not displayed as a traffic source.

For tagging, GA4 uses the gclid from Google Ads autotagging when it can. If the gclid can't be used and any UTM parameter is present, GA4 builds every cross-channel source dimension from the UTM values. Google warns that adding UTM tags on top of an existing gclid can misattribute Google Ads traffic away from google / cpc.

Count sessions for one user's day

Here is one reader's day built from Google's documented scenarios, counted under each set of rules:

TimeActivityUniversal AnalyticsGA4
12:00 PMReads a blog post, leaves the tab for 29 minutes, returns1 session1 session
1:00 PMAfter more than 30 minutes of inactivity, arrives from organic search for Red Widgets1 new session1 new session
1:10 PMClicks a paid ad for Blue Widgets1 new sessionSame session
1:20 PMLeaves the page open for 31 minutes, returns1 new session1 new session
11:50 PM to 12:10 AMReads across midnight2 sessions1 session
Total6 sessions4 sessions

The two extra Universal Analytics sessions come from rules GA4 dropped: the ad click and the midnight boundary. Neither reflects anything the reader did differently.

Common reasons session counts look wrong

Check cross-domain and referral settings for split visits, tagging and consent for click-to-session mismatches, and session boundaries for misleading duration averages. The cross-domain and referral fixes sit in the same tag settings screen as the timeout.

Multiple sessions for one visit

One visit splits into several sessions when identifiers or attribution break mid-journey. Without cross-domain measurement, a user moving between two root domains gets new cookies with new IDs. GA4 then counts two users and two sessions.

Cross-domain measurement passes the same IDs through the _gl URL parameter. Set it up under Configure tag settings, then Configure your domains, with up to 100 conditions. Redirects that drop _gl break it again.

Third-party payment processors cause the other common split. A buyer checks out on the payment domain and returns, and the payment provider shows up as a referrer. Google lists payment processors as a common use case for unwanted referrals.

Add the domain under Configure tag settings, Show all, List unwanted referrals, with a limit of 50 per data stream. GA4 already ignores self-referrals from your own domain and its subdomains.

Long reading pauses also split visits once they pass the timeout. If your audience regularly stays inactive longer than 30 minutes on purpose, raise the timeout instead of treating the extra sessions as growth.

Clicks and sessions are different metrics, and Google expects some discrepancy. A user who clicks the same ad twice within 30 minutes produces two clicks and possibly one session. Google Ads also filters invalid clicks that Analytics still counts as sessions.

Google lists several other causes:

  • When a user leaves the page before the tag runs, the gclid never reaches Google.
  • A 301, 302 or JavaScript redirect after the landing URL strips the gclid and UTM values, so fire the Google tag before any redirect.
  • A landing page without the tag passes no campaign data.
  • JavaScript turned off, the Analytics opt-out add-on or similar tools hide the session from Analytics while Google Ads still counts the click.
  • When ad_user_data is denied through consent mode, the gclid may not be usable and cross-channel dimensions can show (not set).

Sessions can also exceed clicks. A returning user who comes back direct keeps the Google Ads campaign as the last-known source, and bookmarked URLs with a gclid count as Ads traffic that Google Ads never charged for.

Consent mode affects counts in reports too. With behavioral modeling on the Blended reporting identity, GA4 models users, sessions and new users for people who declined analytics cookies, and eligibility requires at least 1,000 events per day with analytics_storage denied for 7 days, and at least 1,000 daily users sending events with analytics_storage granted for at least 7 of the previous 28 days. Meeting those thresholds doesn't guarantee eligibility; the model also factors in the ratio of new to returning users and user to session counts, and modeled data never reaches BigQuery.

Misleading session duration averages

Session boundaries determine what average session duration measures. In Universal Analytics, a single-page session recorded 0 seconds because no later hit existed to measure against. For content reporting, prefer average engagement time per session, which GA4 populates automatically.

Sessions compared with users and views

Sessions count visits, users count people and views count pages or screens seen. Engagement rate and bounce rate distinguish engaged sessions from those that don't meet GA4's engagement criteria.

MetricWhat GA4 countsRelation to sessions
SessionsSessions that began in the date rangeBase unit
Total usersUnique users who triggered any eventLower than sessions when users return
Active usersUsers with an engaged session or engagement signal; shown as "Users" in reportsUsually below total users
New usersUsers logging first_visit or first_openSubset of users
ViewsPages or screens seen, repeats includedHigher than sessions when visits include several pages

Sessions exceed users because one user returns and opens several sessions. Views exceed sessions because one session holds several page or screen views; GA4 reports the ratio as views per session.

Engaged sessions

An engaged session lasts longer than 10 seconds, has a key event, or has at least 2 page or screen views. Events such as first_visit, first_open and session_start never count toward engagement, even when marked as key events. The 10-second threshold is the default for the engaged-session timer covered in the timeout steps above. Raise it if 10 seconds is too low a bar for your long-form pages.

Session duration and bounce rate

GA4 defines engagement rate as engaged sessions divided by total sessions. Bounce rate is its inverse, the percentage of sessions that were not engaged. A single session lasting under 10 seconds with no other events gives a 0% engagement rate and a 100% bounce rate.

Universal Analytics defined a bounce as a single-page session that sent only one request to the Analytics server. A reader could spend ten minutes on one article and still bounce. In GA4, that reader counts as engaged.

Find session data in GA4 reports

Start in Reports, then Acquisition, then Traffic acquisition.

  • The default dimension is Session default channel grouping. Switch it to Session source / medium to see what started each session, alongside Sessions, Engaged sessions, Engagement rate and Average engagement time per session.
  • To see which pages start sessions, add Landing page + query string as a secondary dimension.

Session metrics are also available in Explorations.

To use DebugView, enable debug mode through Tag Assistant or by adding 'debug_mode':true to the gtag config, then open Admin, Data display, DebugView and click an event to see its parameters.

To check sessions, look for a session_start event as you begin browsing and open it to see which parameters arrived, such as whether a ga_session_id value is present. If session_start is missing in a Google Tag Manager setup, check that the GA4 config tag uses the Initialization trigger.

Once session counts are trustworthy, the next job is reading them page by page instead of as a website-wide average. A total can hold steady while dozens of individual pages lose traffic. GrowthX applies that reading in Portfolio, which sorts every page into Freefall, Declining, Stable, Growing or Surging by direction of travel. To see those page-level bands for your own website, book a demo.

Related articles

  1. Reading event count in GA4 and what it actually measures Learn · 26 November 2026
  2. How do you fix “(not set)” in Google Analytics? Learn · 25 November 2026
  3. Engaged sessions in GA4: the three criteria and how to read them Learn · 24 November 2026
  4. How do you calculate SEO ROI? Learn · 24 November 2026
  5. How do you track citations from Google AI Overviews? Learn · 20 November 2026
  6. Using metrics reporting to keep marketing campaigns on track Learn · 20 November 2026
  7. Share of voice in marketing: A study guide to calculating and using it Learn · 5 November 2026
  8. What KPIs Should You Track for Generative Engine Optimization? Learn · 16 September 2026