Sub topic 3
Total users, active users, and new users
This chapter assumes you know that GA4 records each interaction as an event, can read basic JavaScript and SQL, and have Editor access to a GA4 property.
Total, active, and new users
GA4 reports three user counts for a date range:
- Total users counts each distinct user who triggered any event.
- Active users counts users who had an engaged session. An engaged session lasts at least 10 seconds, has a key event, or has two or more page or screen views.
- New users counts users whose first visit happened in the range.
Active users is a subset of total users, so the active count is never larger.
Custom dimensions and metrics
GA4 collects event parameters right away, but reports cannot use them until you register them. In Admin, open Custom definitions and create a custom dimension with event scope that points to the parameter name. Register numeric parameters as custom metrics. Registration applies only to data collected after you create the definition.
gtag('event', 'tutorial_step_completed', {
step_number: 3,
tutorial_name: 'ga4_data_model'
});After you register step_number as a metric, you can use it in Explorations and custom reports.
Key events
A key event is an event you mark as important. GA4 previously called these conversions. In Admin, open Events and turn on Mark as key event for the event name. The mark applies only to new data.
Seeing the model in the BigQuery export
The BigQuery export writes one row per event into daily tables named events_YYYYMMDD. Counting distinct user_pseudo_id values gives total users per day.
SELECT
event_date,
COUNT(DISTINCT user_pseudo_id) AS total_users
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20240101' AND '20240131'
GROUP BY event_date
ORDER BY event_date;Common pitfalls
- Reading total users as active users. Total users includes visitors who triggered only a few events, so the two numbers differ.
- Expecting a parameter to appear right away. Register it first. Past data is not backfilled.
- Treating
user_pseudo_idas a person. It identifies a browser or app installation. One person on two devices appears as two users unless you send a User-ID. - Expecting BigQuery and the GA4 interface to match exactly. The interface can use different definitions and thresholds, so expect small gaps.
Exercise
A weekly report shows 1,200 total users and 300 active users. Which number is smaller, and what does it count?
Show answer
Active users is smaller. It counts only users who had an engaged session. Total users counts every user who triggered any event, including visitors who left quickly.