Sub topic 5
Sampling: when GA4 estimates instead of counting
Prerequisites and the basic idea
This chapter assumes you know the difference between a dimension and a metric, and that you have used GA4 Explorations. Sampling means GA4 calculates a report from part of the available event data instead of processing every matching event.
For example, suppose a property records 100 million events during a selected date range. An Exploration might process a representative sample of 10 million events, then estimate the totals for all 100 million. This reduces processing time and system load, but unusual segments and small groups can become less accurate.
Sampling affects estimated results, not the data collected by your property. The raw events still exist in Google's systems for the applicable retention period. The report query determines whether GA4 needs to sample them.
Where sampling appears
Sampling is most commonly visible in Explorations. A large date range, many dimensions, complex filters, or a high-volume property can make an Exploration exceed its processing quota. GA4 then shows a sampling indicator near the report.
Standard Reports usually prioritize predefined, efficient queries and generally do not show the same sampling behavior. The Data API can expose report metadata, but you should not assume that an API response is automatically unsampled. Check the response documentation and metadata for the report type and API version you use.
The sampling percentage tells you how much of the available data was processed. A report based on 50% of the data may be useful for broad trends. It is less dependable for a small campaign, rare event, or narrow audience.
| Report situation | Likely effect | Suitable use |
|---|---|---|
| Short date range and common dimensions | Little or no sampling | Detailed comparisons |
| Long date range on a high-volume property | Sampling may occur | Directional trends |
| Many dimensions and filters in one Exploration | Sampling is more likely | Initial investigation |
| Exact event-level analysis | Use BigQuery export | Auditing and reconciliation |
How to recognize sampling
Look for the sampling indicator in the Exploration interface. It normally identifies that the report uses sampled data and gives the percentage of events included. Record this percentage when exporting or sharing results.
Do not confuse sampling with other GA4 data behavior:
- Sampling estimates values from a subset of events.
- Thresholding withholds some rows to protect user privacy.
- The
(other)row combines less common dimension values when a report contains too many distinct values.
These mechanisms can occur in related workflows, so inspect the report status before explaining a surprising number.
Reducing sampling
Start with the smallest date range that answers the question. Remove dimensions and filters that you do not need. Split a large analysis into several smaller reports, then compare or combine the results carefully.
Use a predefined Standard Report when it answers the question. For exact event-level work, query the BigQuery export instead. The export contains event rows that you can aggregate with SQL, although it requires your own handling of identity, late-arriving events, time zones, and metric definitions.
A sampled report is not automatically useless. Use it for directional questions such as whether traffic increased after a release. Avoid treating it as an exact count when the decision depends on a small difference.
A practical decision rule
Ask whether the question needs an estimate or an exact count. If it asks for a broad pattern, a sampled Exploration may be sufficient. If it asks for a contractual total, a small conversion difference, or a complete list of events, redesign the query or use BigQuery.
Exercise
An Exploration uses 25% of the available data to compare two campaigns. The campaigns differ by 2%. Should you report the result as an exact winner?
Show answer
No. The result is an estimate, and the small difference may be sampling error. Narrow the query, split the analysis, or use the BigQuery export for an exact event-level comparison.