GA4 links to BigQuery for free at any traffic tier with a daily (non-streaming) export, giving raw event-level data that GA4’s own interface samples, rounds, or simply doesn’t expose — useful the moment your analysis needs go beyond what a report or Exploration can answer. This guide covers setup, the schema basics, and a few starter queries for organic analysis.
Linking GA4 to BigQuery
Link a GA4 property to a Google Cloud project under Admin > BigQuery Links — the daily export tier requires no billing account with active spend for the export itself, though querying the resulting tables does draw against BigQuery’s own free monthly quota. Once linked, GA4 begins exporting nightly; there’s no backfill of historical data from before the link was created, so the earlier you link it, the more history you’ll have to query later.
Understanding the Export Schema
Each day’s export lands as its own dated table (events_YYYYMMDD), with one row per event and nested/repeated fields for event parameters — a structure that requires UNNEST() in SQL to flatten, unlike a typical flat analytics table. The event_name, event_params, and traffic_source fields are the three most relevant for organic SEO analysis; traffic_source.source and traffic_source.medium together approximate what the UI shows as channel grouping, though the raw values need the same mapping logic GA4’s UI applies internally.
Starter Queries for Organic Analysis
A basic starter query counts sessions and key events by landing page for organic traffic, using UNNEST(event_params) to extract the page_location parameter and filtering traffic_source.medium = 'organic'. From there, a more advanced query can compute session-to-session time deltas to approximate true visit duration more precisely than the UI’s own engagement-time metric, which is useful for content-depth analysis GA4’s interface doesn’t expose directly.
What’s Actually Free
The daily export itself has no GA4-side cost; BigQuery’s free tier includes 1TB of query processing per month and 10GB of free storage, which is enough for most small-to-mid content sites to run this analysis without paying anything. Larger sites or the streaming (near-real-time) export tier, which does require billing enabled, are the two scenarios where actual cost enters the picture — the daily batch export covered here does not.
- The daily BigQuery export is free at any GA4 tier; only the streaming export requires billing.
- No historical backfill happens on link — link early to build up queryable history sooner.
- Event parameters are nested/repeated fields requiring UNNEST() in SQL — not a flat table structure.
- BigQuery’s free monthly quota (1TB processing, 10GB storage) covers most small-to-mid content sites’ analysis needs.
Frequently Asked Questions
Does GA4’s BigQuery export cost money?
The daily batch export itself is free at any GA4 tier. Only the streaming (near-real-time) export requires an active billing account, and querying large volumes can draw against BigQuery’s separate free quota.
Can I get historical data before I linked BigQuery?
No — the export only begins from the date the link was created. There’s no retroactive backfill of earlier data.
Why do I need UNNEST() to query GA4’s BigQuery tables?
Event parameters are stored as nested, repeated fields rather than flat columns — UNNEST() flattens them so they can be filtered and selected in standard SQL.
The Bottom Line
BigQuery export turns GA4 from a UI-limited reporting tool into a queryable dataset, at no cost for most sites’ actual usage. Link it early, even before you have a specific query in mind, since there’s no way to recover data from before the link existed.
Further reading & sources
- BigQuery Export overview — Google Analytics Help
- Working with arrays and UNNEST in BigQuery — Google Cloud
See how your site actually shows up in AI search. An AI visibility audit maps where you’re cited, where you’re invisible, and what to fix first — in plain English.
Get your AI visibility auditTry the free SEO tools →
Prefer self-serve? The interactive checklists turn guides like this one into a working to-do list.
Keep reading in GA4 & SEO Analytics: The Complete Guide
Get one email when something genuinely changes
AI search moves fast and most of it is noise. We send one short email when a real shift is worth your time. Unsubscribe anytime.
Published by Plain Intelligence — practical AI SEO, GEO, and technical SEO, documented in plain English. About Plain Intelligence →
↑ Back to GA4 & SEO Analytics: The Complete Guide · Explore all articles · Free tools & resources · Glossary