Skip to content

What the GA4 BigQuery export costs: an estimation method without surprises

The GA4 BigQuery export

By Boris Parov7 min read

Lire cet article en français

The GA4 BigQuery export cost is not a Google Analytics fee. BigQuery bills two things: the bytes you store and the bytes your queries read. On Google's public sample, one event row weighs about 834 bytes. Our guide to the GA4 BigQuery export gives the outline; this method turns your event volume into bytes.

What does Google not bill for in the GA4 export?

Google Analytics bills nothing for linking a property to BigQuery. Google's help center places every charge on the BigQuery side: storage and query processing.

The GA4 BigQuery export is a Google Analytics 4 feature that writes every collected event, as one row, into a BigQuery dataset of your own Google Cloud project, without sampling, thresholds, or an "(other)" row, once a day or in streaming.

Several BigQuery operations are free too. Results served from the query cache are not billed, and the cache keeps them about 24 hours. A query stopped by a maximum-bytes-billed limit fails without a charge. Each project gets 1 TB of free query processing per month.

A dry run is a BigQuery query mode that validates a query and returns the number of bytes it would process, without reading any data or billing anything; Google documents the figure as an upper bound.

The six dry runs of this article returned 0 bytes billed each. The dry run is therefore the first tool of the method.

What BigQuery bills: storage and on-demand queries

BigQuery bills the export on two main lines: bytes stored each month and bytes read by queries.

Storage has two tiers: active and long-term.

Long-term storage is the BigQuery storage tier that a table or partition enters after 90 consecutive days without modification, billed at half the active-storage rate, with no action on your side.

GA4 daily tables stop changing a few days after their date. Most of your history ends up in long-term storage. Each dataset also has a billing model: logical bills uncompressed bytes, physical bills compressed bytes on disk.

Queries on the on-demand model bill the bytes they read.

Bytes billed is the quantity of data that BigQuery charges a query for under the on-demand model: the logical, uncompressed bytes of the columns it reads, with a minimum of 10 MiB per query and per referenced table. BigQuery reads only the columns a query names.

The alternative is capacity-based billing. You reserve or autoscale slots, the virtual compute units that run queries. You pay for that capacity over time. A wasteful query then adds no bytes billed but holds slots longer.

LineUnit billedWhat makes it grow
Active storageLogical or physical bytes, per monthTables modified in the last 90 days
Long-term storageSame unit, half the active rateTables untouched for 90 consecutive days
On-demand queriesLogical bytes read, 10 MiB minimumColumns and days each query reads
Capacity-based billingSlot capacity over timeReserved or autoscaled slots
Streaming exportBytes ingestedEvents sent through the streaming option

How do you estimate your volume, from events per day to bytes?

Estimating the export volume takes three numbers: events per day, bytes per event, and days kept. Read the event count of a full month in the GA4 interface, then divide by its days. Without that, multiply pageviews by the rows per pageview of your tagging: 3.18 on the sample. Then size for the peak day, not only the average.

WITH daily AS (
  SELECT event_date, COUNT(*) AS event_rows
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20210131'
  GROUP BY event_date
)
SELECT
  COUNT(*) AS days,
  SUM(event_rows) AS event_rows,
  ROUND(AVG(event_rows)) AS avg_rows_per_day,
  MIN(event_rows) AS min_rows_per_day,
  ARRAY_AGG(event_date ORDER BY event_rows LIMIT 1)[OFFSET(0)] AS min_day,
  MAX(event_rows) AS max_rows_per_day,
  ARRAY_AGG(event_date ORDER BY event_rows DESC LIMIT 1)[OFFSET(0)] AS max_day
FROM daily
Measure2020-11-01 to 2021-01-31
Days92
Event rows4,295,584
Average rows per day (rounded to the unit)46,691
Lowest day21,355 (2020-12-25)
Highest day92,199 (2020-12-08)

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

The busiest day holds about twice the average. Bytes per event come from a second dry run. A SELECT * over the 92 days processes 3,583,657,854 bytes. Divided by 4,295,584 rows, that is 834 bytes per event, rounded to the unit. Your own figure will differ with your parameters and e-commerce items.

StepFormulaPublic sample
Events per dayMonthly event count ÷ days46,691 on average, 92,199 at peak
Bytes per eventLogical bytes ÷ rows834
Stored bytes per dayEvents per day × bytes per eventAbout 38.95 million
Stored bytes per yearBytes per day × 365About 14.2 billion (14.2 GB)
Bytes read per queryDry run of each scheduled query269,916,729 for one January counting query

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

The sample is old and obfuscated: treat it as a worked example, not a benchmark.

Which three mistakes inflate the bill?

Three habits inflate bytes billed: SELECT *, no _TABLE_SUFFIX filter, and repeated queries on raw events. Six dry runs on the public sample measure the first two.

Query on the public sampleBytes processed (dry run)
SELECT *, January 2021957,086,782
SELECT * with LIMIT 10, January 2021957,086,782
SELECT * with no _TABLE_SUFFIX filter (92 days)3,583,657,854
Counting query of the guide (sessions, users, purchases), January 2021269,916,729
event_name and COUNT(*) only, January 202115,563,509
event_name and COUNT(*) only, 2021-01-15521,254

Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).

SELECT * reads every column. On January, it reads about 61 times more than a query naming event_name. The LIMIT clause changes nothing: rows are trimmed after the read, not before.

A missing _TABLE_SUFFIX filter reads every daily table in the dataset. Here that means 92 days; on a property with years of export, it means years. The filter must be a constant expression. A filter computed by a subquery does not limit the tables scanned.

Repeated queries are the quiet mistake. BigQuery never serves a wildcard query on events_* from its cache. A report that queries raw events at every refresh pays the full read each time. The fix is to read raw events once a day into smaller tables, then query those. Dataform or dbt for the GA4 export: what incremental models change shows how to read only the new days.

How do you read INFORMATION_SCHEMA after a week?

After one week of export, two INFORMATION_SCHEMA views replace the sample's figures with your own. The TABLE_STORAGE view gives rows and bytes per table. The JOBS view gives the bytes each query actually billed. Both need a region qualifier matching your dataset; the examples assume the European Union.

SELECT
  table_schema AS dataset,
  COUNT(*) AS daily_tables,
  SUM(total_rows) AS event_rows,
  SUM(active_logical_bytes) AS active_logical_bytes,
  SUM(long_term_logical_bytes) AS long_term_logical_bytes,
  SUM(total_physical_bytes) AS physical_bytes,
  ROUND(SAFE_DIVIDE(SUM(total_logical_bytes), SUM(total_rows))) AS logical_bytes_per_row
FROM `region-eu`.INFORMATION_SCHEMA.TABLE_STORAGE
WHERE table_schema LIKE 'analytics_%'
  AND table_name LIKE 'events_2%'
GROUP BY dataset

logical_bytes_per_row is your bytes per event: it replaces the 834 of the sample. Comparing logical and physical bytes tells you which storage billing model suits the dataset. The view needs the bigquery.tables.get and bigquery.tables.list permissions, and it can lag by a few minutes.

SELECT
  user_email,
  COUNT(*) AS queries,
  COUNTIF(cache_hit) AS cached_queries,
  SUM(total_bytes_billed) AS bytes_billed,
  MAX(total_bytes_billed) AS largest_query_bytes
FROM `region-eu`.INFORMATION_SCHEMA.JOBS
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
  AND job_type = 'QUERY'
  AND statement_type != 'SCRIPT'
GROUP BY user_email
ORDER BY bytes_billed DESC

Both queries run in your own project; they have no result on the public sample. The second one names who reads the most, often a scheduled refresh or a service account. The JOBS view keeps 180 days and needs the bigquery.jobs.listAll permission. Split by dataset or by label, the same view feeds BigQuery cost per brand: splitting a group's bill.

Daily or streaming: the effect on the GA4 BigQuery export cost

The daily export adds no billing line of its own. The streaming export adds ingestion, billed per byte ingested, as Google's help center states. The daily export is the default and the one to model.

Streaming earns its line in two cases. A standard property is limited to 1 million events per day in the daily export. A property that exceeds it needs streaming to keep the full volume. The second case is same-day monitoring, which needs the intraday table. The public sample peaks at 92,199 events on its busiest day, about 9% of that limit. A site of that size has no volume reason to stream.

Streaming has two further effects. A BigQuery sandbox does not support streaming, so a free trial project cannot test it. Recent streaming inserts also prevent the cache from serving a query on the affected table. The frequency is a setting of the BigQuery link; Enabling the GA4 BigQuery export: the settings that matter walks through it.

FAQ

Can a BigQuery sandbox receive the GA4 export?

Yes, a BigQuery sandbox receives the GA4 export at no charge, within its limits. The sandbox has a lifetime storage limit of 10 GiB. Its tables expire after 60 days, so older history is deleted. A sandbox suits a trial; a property you will analyze for years needs a project with billing enabled.

How do I cap what a single query can bill?

The maximum-bytes-billed setting caps what one on-demand query can bill. A query whose estimate exceeds the cap fails before it runs, without a charge. Custom daily quotas add a second guard, per project or per user. Set the cap on every scheduled query and on the accounts your reports use.

Does a Power BI Import refresh read the export again?

Yes, each Power BI Import refresh sends its queries to BigQuery again. Their bytes are billed at every scheduled refresh. Point Power BI at small aggregated tables, rebuilt once a day, rather than at events_*. Raw events are then read once a day by the model, not by each refresh.

Should the export dataset use physical storage billing?

Physical storage billing suits a dataset only when its compressed bytes are much lower than its logical bytes. The billing model is set per dataset. Under the physical model, time travel and fail-safe bytes are billed separately. Compare total_logical_bytes and total_physical_bytes in TABLE_STORAGE first. Query billing stays on logical bytes either way.

Run the dry runs on your own property before the first month closes. The GA4 BigQuery export: the complete guide to raw event data covers the rest of the export, from schema to models. Want new analyses like this one as they ship? Get new analyses as they ship.

Sources