Sub topic 15
Export limits, storage, and query costs
This chapter covers three practical limits of the GA4 BigQuery export: how many events it carries, how much storage it uses, and what your queries cost. It assumes you have already created the link, know what the daily and streaming exports are, and can read the events_* tables with UNNEST.
Where the costs come from
The link itself is free. Costs appear in BigQuery, in your Google Cloud project, and they fall into three groups.
- Export volume. Standard GA4 properties have a daily event cap. 360 properties have a much higher limit.
- Storage. Every day adds a new
events_YYYYMMDDtable. Tables stay until you delete them or an expiration setting removes them. - Queries. With on-demand pricing, you pay for the bytes each query reads. Streaming inserts also carry their own charge.
Pricing changes and varies by region. Use the numbers below only to reason about scale, and check the current BigQuery pricing page for exact rates.
Export limits
The daily event cap
A standard (free) GA4 property can export up to 1 million events per day through the daily export. If the property collects more than that on a given day, Google pauses the daily export and sends an email notification. Days exported before the pause are kept. Days after it are not exported until the problem is resolved. A 360 property has a far higher limit, in the billions of events per day.
The cap counts events, not sessions or users. A busy site with many scroll, page_view, and custom events can reach 1 million events with a modest number of visitors.
Two things reduce the risk:
- Exclude events you do not need. In the BigQuery link settings, you can list event names to leave out of the export. Removing high-volume, low-value events is the most direct fix.
- Exclude data streams. If one stream, such as a test site, produces noise, exclude it from the export.
Streaming export is not subject to the 1 million event cap, but it is billed as streaming inserts.
No backfill
The export starts on the day you create the link. GA4 does not export earlier history. If you want data from before the link existed, you cannot get it from BigQuery. Create the link early, even if you are not ready to analyze yet, because the data you do not export is lost to BigQuery for good.
Fresh tables and late data
Daily tables are written once a day, and the export can add or change data for a day after it first appears. Intraday tables (events_intraday_YYYYMMDD) from streaming export are temporary and are replaced when the daily table lands. Do not build reports that depend on the intraday table staying in place.
Storage
Each events_YYYYMMDD table holds one row per event, and rows carry nested, repeated fields such as event_params and user_properties. Size grows with event count and with how many parameters each event carries. A few million events per day can produce several gigabytes per month.
BigQuery storage has two tiers: active storage for tables or partitions modified in the last 90 days, and long-term storage, billed at a lower rate, for data left unmodified for 90 days or more. Daily export tables are written once, so they move to long-term pricing automatically.
The first 10 GiB of storage per month is free. Beyond that, you pay per GiB per month.
Set an expiration
If you do not need old raw data, set a default table expiration on the dataset. Tables then delete themselves after the period you choose. Set it in the console under the dataset's details, or with the bq tool:
# Expire new tables in the dataset after 400 days (in seconds)
bq update --default_table_expiration 34560000 my-project:analytics_123456789The default expiration applies only to tables created after you set it. Existing tables keep their current settings, so update those individually if needed.
Query costs
With on-demand pricing, BigQuery charges for the bytes a query reads, and the first 1 TiB per month is free. BigQuery stores data by column, so the bill depends on which columns you reference and how many tables you touch. It does not depend on how many rows you return.
Habits that cut bytes scanned
- Limit the date range with
_TABLE_SUFFIX. A wildcard table such asevents_*reads every daily table unless you filter. The filter makes BigQuery skip the tables outside the range. - Select only the columns you need.
SELECT *reads every column, including the largeevent_paramsarray. - Do not rely on
LIMITto save money.LIMIT 10returns ten rows but the query still scans the columns and tables it touches. - Filter on
event_nameearly. This shrinks the rows the query processes, but the bytes read come from the columns referenced, so combine it with a date range. - Save repeated work in a smaller table. If you run the same expensive transformation daily, write the result to a summary table and query that.
Here is a query that follows these habits. It counts purchase events per day for one week, reading only three columns and a bounded set of tables:
SELECT
event_date,
COUNT(*) AS purchases,
COUNT(DISTINCT user_pseudo_id) AS purchasing_users
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20250101' AND '20250107'
AND event_name = 'purchase'
GROUP BY event_date
ORDER BY event_date;Note that the wildcard also matches events_intraday_YYYYMMDD tables. With the filter above, the suffix of an intraday table starts with intraday_, so a BETWEEN on digit strings excludes them. Without any suffix filter they would be included.
Check the cost before you run
A dry run reports how many bytes a query would read without running it or charging you:
bq query --use_legacy_sql=false --dry_run \
'SELECT event_date, COUNT(*) AS purchases
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN "20250101" AND "20250107"
AND event_name = "purchase"
GROUP BY event_date'The output states the bytes the query will process. In the console, the same estimate appears in the top right of the query editor as you type.
You can also set a safety limit. The --maximum_bytes_billed flag makes a query fail instead of running if it would exceed the limit:
bq query --use_legacy_sql=false --maximum_bytes_billed=10000000000 \
'SELECT COUNT(*) FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX = "20250101"'This example caps the query at about 10 GB.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Querying `events_*` with no `_TABLE_SUFFIX` filter | Scans every day of history | Always add a date range |
| Using `SELECT *` on the export | Reads all columns, including nested arrays | Name the columns you need |
| Assuming `LIMIT` lowers cost | Bill is unchanged | Reduce columns and tables instead |
| Ignoring the 1 million event cap | Daily export pauses and days go missing | Exclude noisy events and streams, or upgrade to 360 |
| Linking late | No history before the link date | Create the link as soon as possible |
| Leaving old tables forever | Storage grows without bound | Set a dataset expiration |
Exercise
Your standard GA4 property collects about 1.4 million events on busy days, and the daily export stopped arriving last week. Name two changes that could restore the export without upgrading to 360, and say which cost control you would add before analysts start querying the data.
Show answer
Possible changes: exclude high-volume, low-value events (for example scroll or other automatic events you do not analyze) from the BigQuery link, or exclude a noisy data stream such as a test site, so the daily total falls under 1 million events. For cost control, set a default table expiration on the dataset if old raw data is not needed, and require analysts to filter _TABLE_SUFFIX, select only needed columns, and use --maximum_bytes_billed or a custom query quota so one query cannot scan the full history.
Exercise
A colleague says adding LIMIT 100 to a query on events_* will make it cheap. Is that correct? What would you change instead?
Show answer
No. BigQuery bills for the bytes read from the referenced columns and tables, not the rows returned, so LIMIT does not reduce the bill. Add a _TABLE_SUFFIX date range to skip tables, replace SELECT * with specific columns, and check the estimate with bq query --dry_run before running.