Backstitching Your User ID to GA4’s Client ID in BigQuery for Cross-Device Analysis
Recognise the same person across devices, and recover the events they fired before logging in. Learn how to backstitch a custom user id to GA4’s client id in BigQuery.
Subscribe to continue reading
Become a paid subscriber to get access to the rest of this post and other exclusive content.
Stop pasting the same logic into every query. Learn user-defined functions in BigQuery: SQL and JavaScript UDFs, temporary versus persistent scope, parameters, JSON parsing, and when to use each.
Learn BigQuery correlated subqueries by running them. Ten copy-and-run examples with sample tables covering EXISTS, NOT EXISTS, subqueries in SELECT and WHERE, per-group comparisons, lifetime-value thresholds, and rewriting as a JOIN.