Backfilling GA4 Data into BigQuery: What You Can Recover and What Is Gone for Good
By Samarth Analytics · Published · Updated · Analytics Engineering · 7 min read
Summary: The GA4 export to BigQuery starts on the day you link it and never goes back. Teams that link late discover that event-level history before that day is gone for good - but a surprising amount of aggregated history can still be recovered. This guide explains exactly what is and is not recoverable, how to design an aggregated backfill through the Data API, how to stitch it to event-level data so trends continue, and the setup mistakes that cost history even after linking.

The export starts the day you link it
Linking a GA4 property to BigQuery is one of the first recommendations in any serious implementation, and one of the most commonly postponed. When a team finally links it - usually because someone needs a question answered that the interface cannot handle - they discover the export only contains data from the link date forward. There is no backfill button, no support request that recovers it, and no third-party tool that can reconstruct raw events GA4 never exported.
That does not mean history is entirely lost. GA4 still holds aggregated data for the life of the property, and much of it can be pulled out. The key is knowing which questions history can still answer, and designing the backfill around them rather than around the raw event table you wish you had.
What is gone for good
Some history cannot be recovered at any price:
- Event-level rows from before the link date. Every individual page view, click and purchase event with its parameters exists only in GA4's internal storage, which is not exportable after the fact.
- User-level journeys. Paths, sequences and cohort behaviour at the level of individual pseudonymous users cannot be rebuilt from aggregates.
- Anything beyond your data retention setting in explorations. GA4's retention setting, two or fourteen months for standard properties, limits user- and event-level analysis in explorations; we covered the implications in GA4 data retention and how to extend it.
- Universal Analytics history that was never exported before those properties were deleted.
If any of these is essential for a planned analysis, the honest answer is that the analysis must start from the link date.
What you can still recover
Standard aggregated reports are not limited by the retention setting, so the GA4 Data API can usually reach back to the start of the property for aggregated questions. That covers a great deal of what historical reporting actually needs: sessions, users, key events and revenue by day, channel, campaign, landing page, device and country; e-commerce performance by item; and event counts by event name.
The API has its own constraints. Each request is limited in the number of dimensions and metrics it can combine, quotas cap how much you can pull per hour and per day, very high-cardinality combinations collapse into an "(other)" row, and thresholding can withhold small values when Google signals is active. None of these is a reason not to backfill. They are reasons to design the backfill carefully. The API's capabilities are covered in more depth in custom reporting with the GA4 Data API.
Designing an aggregated backfill
Start from the questions, not the API. List the trends stakeholders will want to compare against - usually year-on-year sessions and revenue by channel, campaign performance, landing page conversion, and product sales - and design a small set of tables at daily grain that answer them:
- A traffic table by date, session default channel group, source, medium, campaign, device category and country, with sessions, engaged sessions, total users and key events.
- A landing page table by date and landing page, with sessions and key events.
- An e-commerce table by date and item, with items purchased, item revenue and purchases.
- An events table by date and event name, with event count.
Keep each request within the dimension limits, page through results, and write each table to a separate dataset labelled clearly as API-sourced history. Record the date of extraction and the property settings at that time - attribution model, channel definitions, filters - because they shape the numbers you pulled.
Note: Pull history in monthly or weekly slices rather than one long range. Smaller ranges reduce the chance of "(other)" rows and thresholding, and make it easy to retry a slice that hits a quota.
Stitching history to event-level data
The backfill is only useful if trends continue smoothly across the link date. Build the same daily tables from the event export for the period after linking, using the same dimensions and definitions, and union them with the API history. The sessionization post explains how to derive sessions from the export so they align with GA4's own counts.
Then calibrate. Choose an overlap of thirty days where you have both API data and export data, and compare them metric by metric. Expect small differences: the interface estimates some counts, processing can differ slightly, and thresholding may have withheld rows in the API pull. Document the typical gap for each metric. If sessions differ by one percent and revenue by half a percent, your stitched trend is fit for purpose; if the gap is large, investigate before anyone draws a year-on-year conclusion.
Setup mistakes that cost history after linking
Linking is not the end of the risk. We regularly find exports that have silently lost data:
- Sandbox projects. BigQuery's free sandbox sets tables to expire after sixty days. A property linked to a sandbox project keeps only a rolling two months. Move the link to a billing-enabled project before relying on it.
- Daily export limits. Standard properties have a daily export limit on event volume. A site that grows past it, or a peak season that exceeds it, can see the daily export interrupted. Streaming export or a GA4 360 upgrade addresses this; plan before the peak.
- Default table expiration on the dataset. Someone sets a dataset-level expiration to save cost and deletes history months later.
- Deleted links. Unlinking and relinking does not backfill the gap in between.
The cost side of keeping the export is usually smaller than teams fear; BigQuery cost control for marketing shows how to keep it predictable.
Explaining the gap to stakeholders
A stitched history has a seam, and the people reading the dashboards deserve to know where it is. Mark the link date on every trend chart that crosses it, and add a short note to the report explaining which metrics come from aggregated history and which from the event export, and the typical difference between them measured in the overlap period.
Be explicit about what the history cannot do. Year-on-year sessions, revenue by channel and top landing pages are fine. Funnel paths, cohort retention and anything that depends on following individual users can only be analysed from the link date onwards, and a comparison that silently mixes the two will be wrong in ways nobody can see. Stating that up front prevents the most common misuse of backfilled data: a confident chart built on a mix of sources nobody remembers combining.
Link it today
The only real fix for missing history is linking early. If your property is not yet linked, link it to a billing-enabled project today, choose the dataset region deliberately because it cannot be changed later, decide between daily and streaming export based on volume, and confirm the first daily tables arrive. Then run the aggregated backfill for everything before that date. The model-first approach to the GA4 export describes what to build on top once the data is flowing.
Final thoughts
Raw GA4 events from before the link date are gone, and no tool will bring them back. Aggregated history is not: with a well-designed Data API backfill, calibrated against an overlap period and stitched to the event export, most trend reporting survives intact. Link the export now, protect it from expiry and limits, and recover what history allows.
If you want a backfill designed and stitched properly, our analytics engineering team does this often, and a free audit will check whether your current export is quietly losing data.
Topics: Cloud Data, BigQuery export, BigQuery, GA4, analytics engineering
More articles on the Samarth Analytics blog · Markdown version of this article