Sub topic 6
Exploration quotas and the sampling indicator
This chapter assumes you have read the earlier chapters on reporting surfaces and on how sampling works. You should be comfortable opening a report in Explore, choosing dimensions and metrics, and reading a date range. The chapter covers three things: the limit that makes GA4 sample, the icon that tells you when it happened, and the ways to stay under the limit.
Where the quota applies
Standard reports in the Reports section read from pre-aggregated tables. Because of that, they are generally not sampled, although they can still be thresholded or have an (other) row. Explorations work differently. They build each report from event-level data when you open it or change it. This is flexible, but it costs processing time, so Google caps how many events one query may scan.
The cap is called the sampling quota. It is a count of events per query, per property.
| Property type | Events per query before sampling starts |
|---|---|
| Standard GA4 | 10 million |
| GA4 360 | 1 billion |
These figures come from Google's documentation. Check the current Analytics Help pages before you rely on them, because limits change.
If the date range of your query covers fewer events than the quota, GA4 reads all of them and the result is unsampled. If it covers more, GA4 reads a subset and scales the results up to estimate the full total. The result is an estimate with a margin of error. It is not a count.
Three details of the quota are easy to get wrong:
- It applies per query. A new query gets a fresh allowance, so there is no daily budget that you use up.
- It is based on the events in the date range you chose, not on how many rows the report shows.
- It is a property-level count. A busy property reaches the cap with a much shorter date range than a quiet one.
Reading the sampling indicator
Every Exploration shows a shield icon in the top-right area of the report. It is the only place where GA4 tells you that sampling happened.
- A green shield means the report is based on 100% of the available data.
- A yellow shield means the report is sampled.
Hover over or click the icon to see the details. For a sampled report, GA4 shows the share of available data used, and the number of events read compared with the number in the date range. A message such as "based on 31.2% of available data" is typical.
Treat the indicator as part of the report. A screenshot of an Exploration without the shield visible loses the most important caveat. When you share an Exploration, tell the reader what color the shield was.
What happens inside a sampled query
The flow below shows the decision GA4 makes each time an Exploration runs.
Because the totals are scaled up, a sampled number is an estimate of the true value, not a smaller number. Sampled metrics should be close to the unsampled ones when the data is spread evenly. The estimate gets worse in two cases:
- Rare events. If only a handful of conversions exist in the sample, scaling them up can be far off.
- Small segments. A segment that makes up 1% of traffic may have very few rows in the sample.
Worked example: how far back can you go?
Suppose a standard property records about 800,000 events per day. You want to know how many days an Exploration can cover without sampling.
- The quota is 10,000,000 events.
- 10,000,000 / 800,000 = 12.5.
- A 12-day range holds about 9.6 million events, which is under the quota. A 13-day range holds about 10.4 million, which is over it.
A 31-day range holds about 24.8 million events. GA4 would read roughly 10 million of them, about 40%, and scale the results by about 2.5.
The Python function below does this arithmetic for any event rate and date range, so you can plan queries before you build them.
def sampling_estimate(events_per_day: float, days: int, quota: int = 10_000_000) -> dict:
"""Estimate whether an Exploration query will be sampled."""
total_events = events_per_day * days
read_fraction = min(1.0, quota / total_events)
return {
"total_events": int(total_events),
"sampled": total_events > quota,
"fraction_read": round(read_fraction, 3),
"max_unsampled_days": int(quota // events_per_day),
}
for days in (7, 12, 13, 31):
print(days, sampling_estimate(800_000, days))The output shows sampled turning from False to True between 12 and 13 days, and fraction_read dropping to about 0.403 at 31 days. The function is an approximation. Real traffic varies from day to day, so the exact day where sampling starts will move. The shield is the authority, not your estimate.
What changes the event count, and what does not
Because the quota counts events in the date range, only some of your choices affect it.
| Change | Effect on sampling |
|---|---|
| Shorter date range | Reduces the event count. The most reliable fix. |
| Splitting one long range into several shorter queries | Each query gets its own quota. Combine the results outside GA4. |
| Fewer dimensions or metrics | Does not reduce events read by the query. |
| Hiding rows in the table | No effect. |
| Moving to GA4 360 | Raises the quota to 1 billion events. |
In my experience, people often add a filter and expect the shield to turn green. Filters and segments shape what is displayed, but you should not assume they cut the number of events scanned. Test it. Apply the change, then look at the shield again.
Exploration techniques also differ in cost. Free-form tables, funnels, and path analyses all run against the same quota. The shield on each exploration is independent, so check it on every tab you build.
Do not confuse quotas
GA4 has several unrelated limits that people call "quota". Keep them separate.
- Exploration sampling quota (this chapter): events scanned per query. It produces a yellow shield.
- Data API quota: a token budget per property that limits how many requests you can make per day, per hour, and at once. Exceeding it gives you an error, not an estimate. The Data API returns exact figures for the rows it returns, so it does not scale totals the way an Exploration does.
- Data thresholds: rows withheld to protect user privacy. This is a different mechanism, with its own signal (covered earlier in this tutorial).
- The (other) row: rows merged because a dimension has too many unique values. Also separate.
A single report can be hit by more than one of these at once. A sampled Exploration can also have thresholded rows and an (other) row. Check each signal on its own.
Reducing the impact
Work through these options in order, from cheapest to most expensive.
- Shorten the date range. Look for the longest range that still gives a green shield, then use that as your standard window.
- Run several short queries. Export each as a table and add the figures together. Sum additive metrics such as event count. Do not sum user counts, because the same user can appear in more than one range.
- Use a standard report where it can answer the question. It is not subject to the Exploration quota.
- Use the BigQuery export for unsampled detail. It holds every event and has no sampling quota. A later chapter covers this.
- Consider GA4 360. The 1 billion event quota moves the problem far out for most properties. This is a commercial decision and a last resort.
Common errors
- Comparing a sampled Exploration with a standard report and calling GA4 broken. The two may legitimately disagree. Check the shield first.
- Adding up user counts from several short queries. Users are not additive across date ranges.
- Forgetting that a changed date range changes the shield. A report that was green last week can turn yellow when the property grows or when you extend the range.
- Reading a small sampled segment as precise. A yellow shield plus a small segment means a wide margin of error. Treat the figure as a direction, not a measurement.
- Treating a yellow shield as an error to hide. Sampling is expected behavior. State it when you report the number.
Exercise
A standard property averages 2.5 million events per day. You open an Exploration for the last 7 days and see a yellow shield. Explain why, and name the longest date range that could stay unsampled.
Show answer
Seven days is about 17.5 million events, which is over the 10 million quota per query, so GA4 samples the report and shows a yellow shield. The quota allows 10,000,000 / 2,500,000 = 4 days of average traffic, so a 4-day range is the longest that should stay unsampled. You could also run two shorter queries and add the additive metrics together.
Exercise
You run three 10-day Explorations, each with a green shield, and add their "Total users" figures to get a 30-day user count. Why can this number be wrong, and which metric could you safely add instead?
Show answer
A user who visited in more than one 10-day range is counted once in each range, so the sum counts that person more than once and overstates 30-day users. Event count is additive across ranges, so you can safely add it. For a true 30-day user count, run a single query for the full range (accepting possible sampling), or count distinct users in the BigQuery export.