Sub topic 13
Reading the export: datasets, tables, and columns
Assume you already understand GA4 properties, events, and event parameters. You should also know basic SQL, including SELECT, WHERE, and GROUP BY. This chapter focuses on how the GA4 BigQuery export is organized so that you can choose the right table and column before writing a query.
From a GA4 property to BigQuery tables
When you link a GA4 property to BigQuery, GA4 creates a dataset whose default name follows this pattern:
analytics_PROPERTY_ID
For example, property 123456789 creates the dataset analytics_123456789. The dataset contains tables with names based on the export type and date.
The daily table is the completed export for a calendar day. The intraday table contains more recent data while the day is still in progress. Intraday data can be incomplete, and the corresponding daily table may replace or differ from it later.
Use the BigQuery command-line tool to confirm that the dataset and tables exist:
bq ls --project_id=my-project analytics_123456789
bq ls --project_id=my-project --max_results=5 analytics_123456789Replace my-project and 123456789 with your Google Cloud project and GA4 property ID.
The event table's main columns
Each row in an events_YYYYMMDD table represents one collected event. The table contains both simple columns and nested records.
| Column | Meaning | Common use |
|---|---|---|
| `event_date` | Event date in `YYYYMMDD` format | Grouping events by day |
| `event_timestamp` | Event time in microseconds since Unix epoch | Ordering events precisely |
| `event_name` | Name such as `page_view` or `purchase` | Filtering event types |
| `user_pseudo_id` | Pseudonymous device or browser identifier | Estimating users and sessions |
| `user_id` | Your supplied signed-in user identifier, when available | Cross-device analysis |
| `event_params` | Repeated key-value fields attached to the event | Reading custom parameters |
| `user_properties` | Repeated properties attached to a user | Segmenting users |
| `device` | Nested device details | Comparing devices and operating systems |
| `geo` | Nested country, region, and city details | Geographic analysis |
| `traffic_source` | User acquisition source details | Acquisition analysis |
| `ecommerce` | Purchase and item summary fields | Revenue analysis |
| `items` | Repeated product or item records | Product-level analysis |
The export preserves the event schema rather than presenting every parameter as a separate column. For example, page_location is usually inside event_params, not a top-level column.
Some fields are optional. An event may have no user_id, no purchase data, and no custom parameters. SQL queries must account for missing values.
Choosing the right table
Use a wildcard table when querying several daily tables. _TABLE_SUFFIX limits the matching tables by their date suffix:
SELECT
event_date,
event_name,
user_pseudo_id,
event_timestamp
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20250101' AND '20250131'
ORDER BY event_timestamp
LIMIT 100;The wildcard also matches intraday tables if their names fit the pattern. If you need only completed daily exports, use a more specific table pattern or exclude suffixes beginning with intraday_ according to your query design.
A useful mental model
Think of the export as event rows with nested collections. Top-level columns identify the event. Repeated fields hold values whose number and names can vary from event to event. The next chapter shows how UNNEST turns those repeated fields into queryable rows.
Exercise
Which table would you normally use for a completed analysis of events from January 15, 2025, and which column identifies the event type?
Show answer
Use events_20250115. The event_name column identifies the event type.