Helpful queries on top of the GA4 BigQuery export. Content here follows Adswerve's GA4 BigQuery tips blog posts.
- Universal Analytics to GA4 BigQuery Export Guide
- GA4 BigQuery Export Guide - Users and Sessions
- GA4 BigQuery Export Guide - Event Parameters and Other Repeated Fields
- GA4 BigQuery Export Guide - Guide to Attribution
- Using Unpivot and Qualify with GA4 BQ Export
- GA4 BigQuery Export - A Quick Overview
This query tries to replicate session traffic source information from the GA4 UI. By identifying the first source of each session and also taking care of "direct" visits from users with previously identified traffic source.
This query includes 5 different attribution models on top of the GA4 BigQuery export taking the traffic-source-query.sql as an input.
A definition of a UDF, that takes medium, source, campaign and potential additional site categorizations to provide GA4-like channel grouping. The UDF was built based on the official documentation.
A few quick tests of the channel grouping function.