Sub topic 13
Choosing the right surface for the question
This chapter assumes you have read the earlier chapters. You should know how thresholding, sampling, and the (other) row work, and be comfortable reading basic SQL and Python. Here you put that knowledge to use by choosing where to run a question, so the data loss that affects the answer is the kind you can accept.
Each surface alters data differently
GA4 gives you four ways to read the same events. They differ in which distortions can reach your numbers.
| Surface | Thresholding | Sampling | (other) row | Typical strength |
|---|---|---|---|---|
| Standard reports | Yes, when demographic, Google signals, or small-count conditions apply | Not applied to the main reports | Yes, for high-cardinality dimensions | Fast answers to common questions |
| Explorations | Yes | Yes, once a query exceeds the quota of events | Yes | Flexible ad hoc analysis such as funnels and paths |
| Data API | Yes, flagged in response metadata | Not the main concern | Yes, flagged in response metadata | Repeatable, automated reports |
| BigQuery export | No | No | No | Row-level event data |
BigQuery has no thresholds, sampling, or (other) row because it exports raw events. Those mechanisms are applied by the reporting layer. The cost is that you now own the logic: you compute sessions, attribution, and user counts yourself.
Ask four questions in order
Choose a surface by working through these questions. Each one rules out a surface or confirms one.
- Does the question require exact counts or complete rows? Billing reconciliation, audits, and small-segment analysis do. If yes, lean toward BigQuery.
- Does it involve a dimension with many distinct values? Page URLs with query strings, search terms, and user IDs do. If yes, expect an (other) row in standard reports and the API, and consider BigQuery.
- Does it need to run repeatedly or feed another system? If yes, use the Data API, or BigQuery for large volumes.
- Is it a one-off exploration of a hypothesis? If yes, use Explorations, and check the sampling indicator before you trust the result.
The diagram turns these questions into a path.
Worked scenarios
Scenario 1: A weekly dashboard of top landing pages
A dashboard needs top landing pages by sessions, updated every Monday. The site has tens of thousands of distinct URLs because of query parameters.
- Standard reports would show an (other) row once the page dimension exceeds the row limits for that table.
- Explorations cannot be scheduled for automated delivery into a dashboard.
- The Data API fits, because you can request the dimension you need and check
data_loss_from_other_rowon every run.
If the flag is true, your top-N list is still usually right, but the totals are incomplete. When totals matter, fall back to BigQuery for that one table.
Scenario 2: Conversion rate for a small audience
A marketer wants the purchase rate for visitors aged 25 to 34 in one city. Demographic dimensions combined with a small population are exactly what triggers thresholding.
- In standard reports and Explorations, rows can disappear silently or the totals can shrink.
- Adjusting the reporting identity may help, but it will not rescue a segment that is too small.
- BigQuery export does not contain demographic data in the same form as the interface. If the segment depends on Google signals demographics, the export cannot reproduce it.
For this question the realistic answer is to widen the segment or date range until the report stops withholding rows. You can also change the question to one BigQuery can answer, for example by using a first-party attribute you collect yourself.
Scenario 3: A funnel over a full year on a busy property
An analyst builds a funnel exploration over twelve months. The sampling indicator shows that only part of the events were used.
- Shorten the date range and compare, to see how much the result moves.
- Remove unneeded segments and dimensions, since each one adds work to the query.
- If the shape of the funnel changes between runs, stop using Explorations for this question and write the funnel in SQL against the export.
Checking for data loss in code
When you use the Data API, make the check part of the pipeline. This script runs a report and refuses to treat the data as complete when either flag is set. Replace the property ID with your own.
from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import DateRange, Dimension, Metric, RunReportRequest
client = BetaAnalyticsDataClient()
request = RunReportRequest(
property="properties/123456789",
dimensions=[Dimension(name="pagePath")],
metrics=[Metric(name="activeUsers")],
date_ranges=[DateRange(start_date="2026-01-01", end_date="2026-01-31")],
)
response = client.run_report(request)
other_row = response.metadata.data_loss_from_other_row
thresholded = response.metadata.subject_to_thresholding
if other_row or thresholded:
print("Incomplete data. Other row:", other_row, "Thresholded:", thresholded)
print("Rerun this question against the BigQuery export.")
else:
print("Complete report with", len(response.rows), "rows")The fallback query below answers the same question from raw events, with no thresholding, no sampling, and no (other) row.
SELECT
event_date,
(SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location') AS page_location,
COUNT(DISTINCT user_pseudo_id) AS users
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20260101' AND '20260131'
AND event_name = 'page_view'
GROUP BY event_date, page_location
ORDER BY users DESC;Expect the two results to differ somewhat even when the flags are clear. The export counts user_pseudo_id over raw events, while the interface uses its own user definitions and reporting identity. The two are different measurements, not one measurement with a flaw.
Matching the fix to the mechanism
Choosing a surface is often a decision about which mechanism you can tolerate. Use this table when you already know which one is affecting you.
| Problem you see | First thing to try | Switch surface when |
|---|---|---|
| Rows missing or totals lower than expected (thresholding) | Remove demographic dimensions, widen the date range, review reporting identity | The segment is inherently small and you need every row |
| Sampling indicator shows partial data | Shorten the range, remove segments, reduce dimensions | The question needs the full range at full precision |
| (other) row holds a large share of the total | Use a lower-cardinality dimension, filter, or shorten the date range | You need the long tail itself |
The pattern is that report design changes the amount of data lost, while changing surface removes the mechanism. Try design changes first, because they are cheap. Move to BigQuery when the question itself requires what the reporting layer withholds.
Costs of moving to BigQuery
BigQuery is not a free upgrade, so weigh these before moving a question there.
- Setup and history. You must link the property, and nothing exists before the link date.
- Event volume limits. Daily export has a cap for standard properties. Streaming export is an option. Check current limits in the Google documentation before relying on completeness.
- Query cost and skill. Wildcard queries scan data you pay for. Always restrict
_TABLE_SUFFIX, as the example does. - Rebuilding definitions. Sessions, engaged sessions, and channel grouping are not columns you can select. You derive them from event parameters, and your logic may differ from the interface.
- Consent and modeling. Modeled data and behavioral modeling from consent mode are not in the export, so numbers may be lower than the interface for properties that use them.
Common mistakes
- Assuming the Data API avoids thresholding because it is "raw." It is the same reporting layer, which is why it exposes the flags.
- Reading an Exploration without checking the sampling indicator, then comparing it to a standard report as if both were complete.
- Trusting a table that has no (other) row. A missing row does not prove nothing was merged. Check the API flag or compare totals.
- Moving to BigQuery for a question that depends on Google signals demographics, which the export does not carry in the same way.
Exercise
Your team needs a monthly report of purchases by product SKU for 40,000 SKUs, delivered automatically to a finance system, with totals that must reconcile exactly. Which surface do you choose, and what do you check if you start with the Data API?
Show answer
Choose the BigQuery export, because the SKU dimension has high cardinality (so an (other) row is likely) and finance needs exact totals. If you start with the Data API, check data_loss_from_other_row and subject_to_thresholding in the response metadata. If either is true, rerun the question in BigQuery. Remember that the export has no history before the link date.
Exercise
An analyst reports that a year-long funnel exploration shows a 12% drop between steps 2 and 3. A colleague reruns it over one quarter and sees 18%. What is the likely cause, and what is the next step?
Show answer
The year-long exploration probably exceeded the sampling quota, so it used a subset of events and gave an estimate. Check the sampling indicator on both runs. Run the quarters separately or reduce segments and dimensions. If the funnel result keeps changing, compute the funnel in SQL on the BigQuery export, which is not sampled.