Sub topic 15
Export limits, storage, and query costs
Assume you understand GA4 events and parameters, BigQuery datasets, and basic SQL with SELECT, WHERE, and GROUP BY. This chapter focuses on the cost and reliability choices around a GA4 BigQuery export.
What creates cost
A GA4 BigQuery link creates data in your Google Cloud project. GA4 does not charge separately for the export, but BigQuery can charge for:
- Storage: The space used by exported event tables.
- Queries: The amount of data a query reads.
- Streaming ingestion: Near-real-time export can add BigQuery ingestion charges, depending on the billing model and project settings.
- Operations around the data: Scheduled queries, materialized tables, and other BigQuery features can add charges.
Google Cloud pricing, free tiers, and quotas can change. Check the pricing and quota pages for the project that owns the BigQuery dataset.
| Choice | Main benefit | Main cost or limitation |
|---|---|---|
| Daily export | More complete, stable daily tables | Data is not immediately available |
| Streaming export | Data arrives within minutes | Extra cost may apply; data can be incomplete |
| User export | User-level analysis for selected data | It is not a replacement for the regular event export |
Daily and streaming limits
The daily export writes tables such as events_20250131. It is the main source for historical reporting and is usually the better choice for finalized metrics. Events can arrive late, so a completed date may be updated after the first export.
The streaming export writes intraday tables such as events_intraday_20250131. It is useful for operational monitoring, but it is not a perfect real-time copy of GA4. Some events may be delayed, absent, or later corrected in the daily table.
Avoid counting both sources together. A common pattern is to query intraday data only for the current date and daily tables for completed dates.
Reduce storage and query costs
BigQuery charges on the data a query processes when using on-demand pricing. A query that reads every column and every date costs more than one that reads only the needed columns and partitions.
Use these habits:
- Select named columns instead of
SELECT *. - Filter wildcard tables with
_TABLE_SUFFIX. - Query only the dates you need.
- Use partition filters when querying partitioned tables.
- Store repeated summaries, such as daily sessions, instead of recomputing raw events for every report.
- Test a query with a dry run or the query validator before running it.
- Set a maximum bytes-billed limit for scheduled or ad hoc queries.
This query limits both the table range and the selected event type:
SELECT
event_date,
COUNT(*) AS page_views
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20250101' AND '20250131'
AND event_name = 'page_view'
GROUP BY event_date
ORDER BY event_date;The wildcard still references many tables, but _TABLE_SUFFIX lets BigQuery exclude dates outside the requested range.
Practical decision
Use daily export for trusted reporting. Add streaming export only when the delay of daily data affects a real business decision. Before enabling it, estimate event volume, storage growth, query frequency, and retention needs. Then set billing alerts and a bytes-billed limit.
Exercise
Why should a report avoid SELECT * and an unrestricted events_* wildcard?
Show answer
It may read every column and every available date, which increases query cost and can make the report slower. Select only needed columns and restrict _TABLE_SUFFIX.