Sub topic 13
Limits that affect results: thresholds, sampling and freshness
An exploration can look complete and still be missing rows, built from a subset of events, or lacking this morning's data. This chapter covers the four limits you meet most often in Free-form explorations: data thresholds, sampling, data freshness and data retention. It also shows how to notice each one and what to change in response.
This chapter assumes you can already build a Free-form table with rows, columns and values, and that you know the difference between event-scoped and user-scoped fields.
Why these limits exist
GA4 collects events, and an exploration asks a question of those events at the moment you open it. Three things can get in the way:
- Privacy rules can hide small groups of users.
- Very large queries can be answered from a subset of the data to save processing.
- Events take time to be processed, and old event-level data is deleted after a retention period.
None of these produce an error message. The table renders and the numbers look plausible, so you have to check for the signs yourself.
Data thresholds
A data threshold is a rule that withholds rows when showing them could let someone work out who an individual user is. GA4 applies thresholds mainly when a property collects Google signals, or when a report uses demographic or interest dimensions such as age, gender or interests. The exact limits are not published, and they can change.
What you see is not a warning that numbers are wrong. Rows that fall under the threshold are left out, so totals can be lower than you expect and a row you were sure existed may be absent. In the exploration header, an icon next to the title shows when thresholding has been applied, and hovering over it explains why.
Ways to reduce thresholding:
- Change the reporting identity. In Admin, under Reporting identity, switch to "Device-based". That setting ignores Google signals, so it no longer triggers thresholding on that basis. It also changes how users are counted, so figures may differ from before.
- Drop demographic and interest dimensions if the question does not need them.
- Use a longer date range or fewer dimensions. A bigger audience per row is less likely to fall below the threshold, so broad questions are safer than narrow ones.
- Use a different property setup. Turning off Google signals also removes the thresholding it causes. This is an Admin-level decision with consequences for other features, so do not make it casually.
The pattern to watch for is a narrow slice, such as one landing page by one city by one age group. Each added dimension splits users into smaller groups, which makes thresholding more likely.
Sampling
Sampling means GA4 computes your result from part of the data and scales it up, rather than reading every event. Explorations sample when a query would touch more events than the property's quota allows. For a standard property that quota is about 10 million events per query. For GA4 360 it is far higher, about 1 billion. Standard reports mostly avoid sampling, so a number that differs between a standard report and an exploration may be caused by sampling.
The quality icon at the top left of the exploration tells you what happened:
| Icon colour | Meaning | What to do |
|---|---|---|
| Green | The exploration uses 100% of available data | Nothing |
| Yellow | The exploration is sampled | Check the sample percentage and narrow the query if precision matters |
Hover over the icon to see the share of events used. A sample of a few percent is unreliable for small segments. A sample above roughly 50% is usually fine for large trends.
To get closer to unsampled results:
- Shorten the date range. Sampling is decided by the number of events in the range, so splitting a year into quarters often removes it.
- Remove segments you do not need. Each segment adds work to the query.
- Use fewer, simpler fields. User-scoped and high-cardinality fields (many distinct values, such as page URL with parameters) add cost.
- Move to standard reports or the Data API for the headline number, then use the exploration for exploration only.
Data freshness
GA4 does not show events the instant they happen. Events are collected, processed and then made available to reports. Processing can take 24 to 48 hours, so the most recent day or two may be incomplete and will often grow when you reopen the exploration later.
This produces a common mistake. A line chart over the last 7 days shows a sharp drop on the final two days, and the drop looks like a traffic problem. It is usually only unprocessed data. Two habits avoid this:
- End date ranges at "yesterday" at the latest, and prefer two or three days ago for important comparisons.
- Compare complete periods against complete periods, never a finished week against a week still being processed.
For what is happening right now, use the Realtime report. Explorations are not designed for that.
Data retention
GA4 keeps event-level data for a limited time, set in Admin under Data retention. The choices are 2 months or 14 months on a standard property, and the default is 2 months. Explorations read event-level data, so they can only look back as far as this setting allows. Standard reports use aggregated data and are not affected the same way.
Practical consequences:
- If you ask for a date range beyond retention, the exploration shows data only for the days still stored, and older days appear empty.
- Changing the setting to 14 months does not restore data already deleted. It only affects data going forward, so set it early.
- Resetting user data on new activity extends how long a returning user's data is kept, but it does not bring back expired events.
If you need long-run trends, export to BigQuery or save summary tables regularly.
Incompatible fields
Not every dimension and metric can sit in the same exploration. GA4 greys out fields that do not work together with what you have already chosen, usually because they have different scopes. A session-scoped metric cannot meaningfully be broken down by an event-scoped dimension, for example. This is a limit on what can be asked, not a data loss, but it can look like missing data when a field you expect is unavailable. If a field is greyed out, hover over it for the reason, then either remove the conflicting field or pick a field with a matching scope.
Reading limits from the Data API
The Data API reports two of these limits directly in its response metadata. The subjectToThresholding flag shows that rows were withheld. The dataLossFromOtherRow flag shows that rare values were grouped into an "(other)" row.
This script runs a simple report and prints both flags. Replace the property ID with your own, and set GOOGLE_APPLICATION_CREDENTIALS to a service account key file that has Viewer access to the property.
from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import (
DateRange,
Dimension,
Metric,
RunReportRequest,
)
PROPERTY_ID = "123456789" # replace with your GA4 property ID
client = BetaAnalyticsDataClient()
request = RunReportRequest(
property=f"properties/{PROPERTY_ID}",
dimensions=[Dimension(name="sessionDefaultChannelGroup")],
metrics=[Metric(name="sessions")],
date_ranges=[DateRange(start_date="28daysAgo", end_date="2daysAgo")],
)
response = client.run_report(request)
for row in response.rows:
print(row.dimension_values[0].value, row.metric_values[0].value)
print("Subject to thresholding:", response.metadata.subject_to_thresholding)
print("Data lost to (other) row:", response.metadata.data_loss_from_other_row)The end date is 2daysAgo on purpose, so the range avoids the days most likely to be unprocessed.
A short checklist
Before you share or act on an exploration, run through these checks:
- Is the quality icon green, or is the sample large enough for your smallest segment?
- Is a threshold notice shown, and are the missing rows important to your question?
- Does the date range end at least two days ago?
- Does the range sit inside your retention period?
- Do your totals match a standard report for a simple view of the same range? If not, the likely reasons are sampling, thresholding or a different filter.
Exercise
A line chart of sessions for the last 7 days shows traffic dropping by about 40% on the last two days. The quality icon is green and no threshold notice is shown. What is the most likely cause, and how do you confirm it?
Show answer
The most likely cause is data freshness: GA4 can take 24 to 48 hours to process events, so the last two days are incomplete. Confirm by reopening the exploration a day later and seeing that those days have grown, or by changing the end date to two or three days ago and checking that the drop disappears.
Exercise
You build a table of sessions by landing page, city and age bracket for the last 30 days. Several landing pages you know exist are missing. Name the limit involved and two changes that could bring the rows back.
Show answer
The limit is data thresholding. Age is a demographic dimension, and splitting by city as well creates small groups that GA4 withholds. Remove the age dimension (or the city dimension), or switch the property's reporting identity to Device-based. A longer date range can also help by making each group larger.
Exercise
An exploration covering a full year shows a yellow quality icon, and a figure for a small segment differs from the same figure in a standard report. Give two ways to get a more precise number.
Show answer
Split the year into shorter date ranges (for example quarters) so each query has fewer events, and remove unneeded segments or high-cardinality fields. You can also use a standard report or the Data API for the headline figure.