We are migrating from Universal Analytics historical properties to BigQuery linked GA4; what SQL schema changes do I need for my attribution modeling queries?
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
We are migrating from Universal Analytics historical properties to BigQuery linked GA4; what SQL schema changes do I need for my attribution modeling queries?
2 real searches · 1 real-search pass
Google Analytics 4 BigQuery export schema events traffic_source session_traffic_source_last_click attribution fields official documentationGoogle ↗
OBSERVEDReason
Universal Analytics BigQuery export schema ga_sessions hits trafficSource source medium campaign official documentationGoogle ↗
OBSERVEDConsequence
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
ChatGPT real searches (2)
Classes come from the query-classifier (a local Laya model). 2 of 2 calls are low-confidence (under 50%) — hover a query in the table to see its confidence.
Searches and sources
ChatGPT2 real searches · gpt-6
Google Analytics 4 BigQuery export schema events traffic_source session_traffic_source_last_click attribution fields official documentation Google ↗
Universal Analytics BigQuery export schema ga_sessions hits trafficSource source medium campaign official documentation Google ↗
- [UA] BigQuery Export schema [Legacy] · support.google.com
- BigQuery Export schema · support.google.com
- Basic queries for Google Analytics event data export | Google for Developers · developers.google.com
- BigQuery Export schema · support.google.com
- Traffic attribution data | Google Analytics | Google for Developers · developers.google.com
- How to fix the major GA4 BigQuery export misattribution (part 3: use the 'session_traffic_source_last_click' record) · ga4bigquery.com
Queries
2 queries · click a column to sort
| Query / type | Search | Intent | Query class | Routing format | Cluster | Freq ↓ | Weight |
|---|---|---|---|---|---|---|---|
Google Analytics 4 BigQuery export schema events traffic_source session_traffic_source_last_click attribution fields official documentation OBSERVED | Google ↗ AI Mode ↗ | — | Reason | — | — | 1x of 1 | |
Universal Analytics BigQuery export schema ga_sessions hits trafficSource source medium campaign official documentation OBSERVED | Google ↗ AI Mode ↗ | — | Consequence | — | — | 1x of 1 |