New vs Returning users in GA4 BigQuery data table

Last Updated: December 30, 2024

Here is how you can calculate ‘New’ and ‘Returning users in GA4 BigQuery.

First thing first. 

Both ‘New’ and ‘Returning’ users metrics need to be manually calculated. 

They are not available as default fields in the GA4 BigQuery export schema.

Here is how most people calculate new and returning users in GA4 BigQuery:

If the value of ‘ga_session_number’ event parameter is 1, classify the user as a ‘New User’.

If the value of ‘ga_session_number’ event parameter is greater than 1, classify the user as a ‘Returning User’.

However, since we have now established that any event (like ‘user_engagement’, ‘scroll’, or custom_event) in GA4 can start a new session, this definition of new and returning users is no longer valid.

This is because ‘ga_session_number’ is no longer a reliable indicator of user status.

‘ga_session_number’ is not a reliable indicator of user status.

‘ga_session_number’ tells you which session an event belongs to (1 = first session, 2 = second session, etc.).

If any event is fired before ‘session_start’, it may not have the necessary context (like ‘ga_session_number’) when processed.

For example, if the first event is not ‘session_start’ but something like ‘user_engagement’, then ‘ga_session_number’ might not even be set in that event.

Once GA4 “catches up” (i.e., ‘session_start’ fires later), all subsequent events in the session get assigned ‘ga_session_number = 1’, but the first event may still miss the session context, so ‘ga_session_number’ will be NULL for that event.

‘ga_session_number > 1’ doesn’t always mean “Returning User” because a user can have multiple sessions for the same visit.

For example:

User is inactive for 30+ min, new session starts (Session timeout) → Does ‘ga_session_number’ increase? Yes (Session 1 → 2) → Is it a “Returning User”? No, same user, same visit.

Slow website delays ‘session_start’ event (Tag-firing delay) → Does ‘ga_session_number’ increase? Yes (Session 1 → 2) → Is it a “Returning User”? No, same user, same visit.

User gives consent, new session starts (Consent Mode) → Does ‘ga_session_number’ increase? Yes (Session 1 → 2) → Is it a “Returning User”? No, same user, same visit.

Following is a significantly more accurate logic for calculating new and returning users.

Calculate the values of the ‘New Users’ by counting the distinct ‘user_pseudo_id’ where the ‘event_date’ of the user’s first event (within the specified time range) of the day matches their ‘first interaction date’ (derived from ‘user_first_touch_timestamp’ field). Only consider the user’s first event per day, not every event.

new and returning users ga4 bigquery 1

Calculate the values of the ‘Returning Users’ by counting distinct ‘user_pseudo_id’ where the ‘event_date’ of the user’s first event (within the specified time range) is after the user’s first interaction date. Only consider the user’s first event per day, not every event.

To calculate first time users, check out this article: Learn to Track First Time Users in GA4 BigQuery.

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade

Automate GA4 BigQuery SQL With ChatGPT - [No Prior Knowledge of BigQuery or SQL Required]

X