GA4 Session Metrics to BigQuery Mapping
Here’s a breakdown of GA4 Session Metrics and their corresponding BigQuery fields:
GA4 Session Metrics What it is BigQuery Field Name (Formula) Average session duration The average length of time, in seconds, that users spend during a session. AVG(session_duration_sec) AS average_session_duration
Bounce rate The percentage of sessions that did not meet the engagement criteria. 100 * (COUNTIF(totals.bounces > 0) / COUNT(session_id)) AS bounce_rate
Engaged sessions The number of sessions that lasted 10 seconds or more, included one or more key events, or had at least two page or screen views. COUNTIF(engaged_time_msec > 10000 OR event_count > 1) AS engaged_sessions
Engaged sessions per user The average number of engaged sessions per user. AVG(COUNTIF(engaged_time_msec > 10000 OR event_count > 1) OVER (PARTITION BY user_pseudo_id)) AS engaged_sessions_per_user
Engagement rate The percentage of sessions that were engaged sessions. 100 * (COUNTIF(engaged_time_msec > 10000 OR event_count > 1) / COUNT(session_id)) AS engagement_rate
Low engagement sessions The count of sessions that did not meet the engagement criteria. COUNTIF(engaged_time_msec <= 10000 AND event_count <= 1) AS low_engagement_sessions
Session key event rate The percentage of sessions that converted, calculated as the ratio of sessions with key events to total sessions. 100 * (COUNTIF(key_event_occurred = 1) / COUNT(session_id)) AS session_key_event_rate
Sessions The count of sessions that began on your website or app. COUNT(DISTINCT session_id) AS sessions
Sessions per user The average number of sessions per user. AVG(COUNT(DISTINCT session_id) OVER (PARTITION BY user_pseudo_id)) AS sessions_per_user
Views per session The number of app screens or web pages viewed per session. AVG(page_views) OVER (PARTITION BY session_id) AS views_per_session
Points to consider
- Average session duration: Assumes
session_duration_sec
is a calculated field representing the total duration of each session in seconds.
- Bounce rate: Assumes
totals.bounces
is a field indicating whether a session is a bounce. This field and calculation method might need to be adjusted based on your specific data structure.
- Engaged sessions: Assumes
engaged_time_msec
represents the total engagement time in milliseconds and event_count
represents the number of events in a session. Adjust the criteria based on your engagement definition.
- Session key event rate: Assumes
key_event_occurred
is a flag indicating whether a key event occurred during the session. This might require custom logic to set based on your event data.
- Sessions per user and Views per session: These calculations use
COUNT(DISTINCT session_id)
and average page views per session, assuming page_views
is a field or calculated metric representing the number of page views in each session.
Other articles on GA4 BigQuery
#1 BigQuery Introduction
- How to create a new Google Cloud Platform account.
- How to create a new BigQuery project.
- What is Google BigQuery Sandbox and how to use it.
- Understanding the BigQuery User Interface.
- What is BigQuery Data Transfer Service & how it works.
- How to create data transfer in BigQuery.
- Connect and transfer data from Google Sheets to BigQuery.
- How to access BigQuery Public Data Sets.
- Best Supermetrics Alternative – Dataddo.
#2 GA4 BigQuery Introduction
- Google Analytics 4 BigQuery Tutorial for Beginners to Advanced.
- GA4 Bigquery Export Schema Tutorial.
- GA4 BigQuery – Connect Google Analytics 4 with BigQuery.
- events_ & events_intraday_ tables in BigQuery for GA4 (Google Analytics 4).
- pseudonymous_users_ & users_ data tables in BigQuery for GA4 (Google Analytics 4).
- How to access GA4 Sample Data in BigQuery.
- Advantages of using Google BigQuery for Google Analytics 4.
- Impact of Google Advanced Consent Mode on BigQuery & GDPR.
#3 GA4 BigQuery Data Transfer
- How to Connect and Export Data from GA4 to BigQuery
- How to backfill GA4 data in BigQuery.
- How to overcome GA4 BigQuery Export limit.
- How to Send Custom GA4 Data to BigQuery.
- How to backup Universal Analytics data to BigQuery.
- How to send data from Google Ads to BigQuery.
- How to send data from Google Search Console to BigQuery.
- Sending data from Google Analytics to BigQuery without 360.
- How to send data from Facebook ads to BigQuery.
- How to pull custom data from Google Analytics to BigQuery.
#4 BigQuery Cost Optimization
- Guide to BigQuery Cost Optimization.
- Using Google Cloud pricing calculator for BigQuery.
- Cost of using BigQuery for Google Analytics 4.
#5 Query GA4 BigQuery Data
- How to query Google Analytics data in BigQuery.
- Query GA4 data in BigQuery without understanding SQL.
- Using GA4 BigQuery SQL generator to create SQL queries.
- New vs Returning users in GA4 BigQuery data table.
- GA4 BigQuery Composer Tutorial for ChatGPT.
- How to track GA4 BigQuery Schema Change.
- Calculating Sessions and Engaged Sessions in GA4 BigQuery.
- Calculating Total Users in GA4 BigQuery.
#6 GA4 to BigQuery Dimension/Metric Mapping.
- GA4 to BigQuery Mapping Tutorial.
- GA4 Attribution Dimensions to BigQuery Mapping.
- GA4 Google Ads Dimensions to BigQuery Mapping.
- GA4 Demographic Dimensions to BigQuery Mapping.
- GA4 Ecommerce Dimensions to BigQuery Mapping.
- GA4 Event-Scoped Ecommerce Metrics to BigQuery Mapping.
- GA4 Item-Scoped Ecommerce Metrics to BigQuery Mapping.
- GA4 Revenue Metrics to BigQuery Mapping.
- GA4 Event Dimensions to BigQuery Mapping.
- GA4 Event Metrics to BigQuery Mapping.
- GA4 Geography Dimensions to BigQuery Mapping.
- GA4 Link Dimensions to BigQuery Mapping.
- GA4 Page/Screen Dimensions to BigQuery Mapping.
- GA4 Page/Screen Metrics to BigQuery Mapping.
- GA4 Platform/Device Dimensions to BigQuery Mapping.
- GA4 User-Scoped Traffic Dimensions to BigQuery Mapping.
- GA4 Session-Scoped Traffic Dimensions to BigQuery Mapping.
- GA4 Session Metrics to BigQuery Mapping.
- GA4 User Dimensions to BigQuery Mapping.
- GA4 User Metrics to BigQuery Mapping.
- GA4 Advertising Metrics to BigQuery Mapping.
-
Here’s a breakdown of GA4 Session Metrics and their corresponding BigQuery fields:
GA4 Session Metrics | What it is | BigQuery Field Name (Formula) |
---|---|---|
Average session duration | The average length of time, in seconds, that users spend during a session. | AVG(session_duration_sec) AS average_session_duration |
Bounce rate | The percentage of sessions that did not meet the engagement criteria. | 100 * (COUNTIF(totals.bounces > 0) / COUNT(session_id)) AS bounce_rate |
Engaged sessions | The number of sessions that lasted 10 seconds or more, included one or more key events, or had at least two page or screen views. | COUNTIF(engaged_time_msec > 10000 OR event_count > 1) AS engaged_sessions |
Engaged sessions per user | The average number of engaged sessions per user. | AVG(COUNTIF(engaged_time_msec > 10000 OR event_count > 1) OVER (PARTITION BY user_pseudo_id)) AS engaged_sessions_per_user |
Engagement rate | The percentage of sessions that were engaged sessions. | 100 * (COUNTIF(engaged_time_msec > 10000 OR event_count > 1) / COUNT(session_id)) AS engagement_rate |
Low engagement sessions | The count of sessions that did not meet the engagement criteria. | COUNTIF(engaged_time_msec <= 10000 AND event_count <= 1) AS low_engagement_sessions |
Session key event rate | The percentage of sessions that converted, calculated as the ratio of sessions with key events to total sessions. | 100 * (COUNTIF(key_event_occurred = 1) / COUNT(session_id)) AS session_key_event_rate |
Sessions | The count of sessions that began on your website or app. | COUNT(DISTINCT session_id) AS sessions |
Sessions per user | The average number of sessions per user. | AVG(COUNT(DISTINCT session_id) OVER (PARTITION BY user_pseudo_id)) AS sessions_per_user |
Views per session | The number of app screens or web pages viewed per session. | AVG(page_views) OVER (PARTITION BY session_id) AS views_per_session |
Points to consider
- Average session duration: Assumes
session_duration_sec
is a calculated field representing the total duration of each session in seconds. - Bounce rate: Assumes
totals.bounces
is a field indicating whether a session is a bounce. This field and calculation method might need to be adjusted based on your specific data structure. - Engaged sessions: Assumes
engaged_time_msec
represents the total engagement time in milliseconds andevent_count
represents the number of events in a session. Adjust the criteria based on your engagement definition. - Session key event rate: Assumes
key_event_occurred
is a flag indicating whether a key event occurred during the session. This might require custom logic to set based on your event data. - Sessions per user and Views per session: These calculations use
COUNT(DISTINCT session_id)
and average page views per session, assumingpage_views
is a field or calculated metric representing the number of page views in each session.
Other articles on GA4 BigQuery
#1 BigQuery Introduction
- How to create a new Google Cloud Platform account.
- How to create a new BigQuery project.
- What is Google BigQuery Sandbox and how to use it.
- Understanding the BigQuery User Interface.
- What is BigQuery Data Transfer Service & how it works.
- How to create data transfer in BigQuery.
- Connect and transfer data from Google Sheets to BigQuery.
- How to access BigQuery Public Data Sets.
- Best Supermetrics Alternative – Dataddo.
#2 GA4 BigQuery Introduction
- Google Analytics 4 BigQuery Tutorial for Beginners to Advanced.
- GA4 Bigquery Export Schema Tutorial.
- GA4 BigQuery – Connect Google Analytics 4 with BigQuery.
- events_ & events_intraday_ tables in BigQuery for GA4 (Google Analytics 4).
- pseudonymous_users_ & users_ data tables in BigQuery for GA4 (Google Analytics 4).
- How to access GA4 Sample Data in BigQuery.
- Advantages of using Google BigQuery for Google Analytics 4.
- Impact of Google Advanced Consent Mode on BigQuery & GDPR.
#3 GA4 BigQuery Data Transfer
- How to Connect and Export Data from GA4 to BigQuery
- How to backfill GA4 data in BigQuery.
- How to overcome GA4 BigQuery Export limit.
- How to Send Custom GA4 Data to BigQuery.
- How to backup Universal Analytics data to BigQuery.
- How to send data from Google Ads to BigQuery.
- How to send data from Google Search Console to BigQuery.
- Sending data from Google Analytics to BigQuery without 360.
- How to send data from Facebook ads to BigQuery.
- How to pull custom data from Google Analytics to BigQuery.
#4 BigQuery Cost Optimization
- Guide to BigQuery Cost Optimization.
- Using Google Cloud pricing calculator for BigQuery.
- Cost of using BigQuery for Google Analytics 4.
#5 Query GA4 BigQuery Data
- How to query Google Analytics data in BigQuery.
- Query GA4 data in BigQuery without understanding SQL.
- Using GA4 BigQuery SQL generator to create SQL queries.
- New vs Returning users in GA4 BigQuery data table.
- GA4 BigQuery Composer Tutorial for ChatGPT.
- How to track GA4 BigQuery Schema Change.
- Calculating Sessions and Engaged Sessions in GA4 BigQuery.
- Calculating Total Users in GA4 BigQuery.
#6 GA4 to BigQuery Dimension/Metric Mapping.
- GA4 to BigQuery Mapping Tutorial.
- GA4 Attribution Dimensions to BigQuery Mapping.
- GA4 Google Ads Dimensions to BigQuery Mapping.
- GA4 Demographic Dimensions to BigQuery Mapping.
- GA4 Ecommerce Dimensions to BigQuery Mapping.
- GA4 Event-Scoped Ecommerce Metrics to BigQuery Mapping.
- GA4 Item-Scoped Ecommerce Metrics to BigQuery Mapping.
- GA4 Revenue Metrics to BigQuery Mapping.
- GA4 Event Dimensions to BigQuery Mapping.
- GA4 Event Metrics to BigQuery Mapping.
- GA4 Geography Dimensions to BigQuery Mapping.
- GA4 Link Dimensions to BigQuery Mapping.
- GA4 Page/Screen Dimensions to BigQuery Mapping.
- GA4 Page/Screen Metrics to BigQuery Mapping.
- GA4 Platform/Device Dimensions to BigQuery Mapping.
- GA4 User-Scoped Traffic Dimensions to BigQuery Mapping.
- GA4 Session-Scoped Traffic Dimensions to BigQuery Mapping.
- GA4 Session Metrics to BigQuery Mapping.
- GA4 User Dimensions to BigQuery Mapping.
- GA4 User Metrics to BigQuery Mapping.
- GA4 Advertising Metrics to BigQuery Mapping.
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.