# What is data sampling in analytics?

> Data sampling means a report reads only part of the events and scales the result up. GA4 can sample a query above 10 million events on a standard property.

By Yos Riady. Updated 2026-11-18. Published 2026-11-18. Canonical URL: https://manalens.dev/glossary/sampling

Data sampling means a report reads only part of the events and scales the result up to estimate the whole. Tools sample to answer large queries fast. In Google Analytics 4, sampling can apply when a query needs more than 10 million events on a standard property, so some numbers are estimates.

## Key points

- A sampled report reads part of the events and divides the count by the share of data read.
- Google Analytics 4 can sample when a query needs more than 10 million events on a standard property.
- In Manalens SQL, count events with uniqExact(message_id) for an exact count.

## How does a sampled number work?

The formula is: estimated total = count in the sample / share of the data read. Google Analytics defines sampling as analyzing a subset of data to find meaningful information in a larger data set. When it samples, it scales the result up, and the data quality icon shows the share of data used.

Sources: Google Analytics Help: About data sampling in GA4.

## What does an example look like?

Example numbers: a report reads 20% of the events and finds 1,000 level_complete events. The estimate is 1,000 / 0.20 = 5,000. For one small level with 12 fails in the sample, the estimate is 60, but a few more or fewer fails in the sample move it by 5 each time.

Sources: worked example.

## Why does sampling matter for indie PC and web games?

Indie decisions often rest on small groups: one build, one creator link or one level. Small groups are where a scaled estimate is least stable. Google suggests a shorter date range as one way to reduce sampling.

- [A/B testing in games: when is a result real?](https://manalens.dev/blog/ab-testing-games-statistical-significance)
- [A/B test significance calculator](https://manalens.dev/tools/ab-test-significance-calculator)
- [SQL explorer](https://manalens.dev/features/sql-explorer)

Sources: Google Analytics Help: About data sampling in GA4.

## How do I get exact counts in Manalens?

In SQL, count events with uniqExact(message_id), because a client retry can repeat a row. ClickHouse says uniqExact calculates the exact number of different values, and it uses more memory than uniq. Ask AI and chart SQL count player and session IDs with uniqExact as well.

Sources: Manalens SQL explorer guide and Ask AI documentation; ClickHouse documentation: uniqExact.

## Frequently asked questions

### When does Google Analytics 4 sample data?

When the events that a report or an exploration needs are more than the quota of the property. Google gives 10 million events as the quota for event level queries on a standard property. A shorter date range is one way to reduce sampling.

### How can I tell if a number is sampled?

In Google Analytics 4, the data quality icon shows the share of data that a sampled report used. In SQL that you write yourself, use exact functions. In Manalens SQL, count events with uniqExact(message_id) for an exact count, because a client retry can repeat a row in the raw events table.

### Why is a sampled number risky for a small group?

A sampled report scales each event in the sample up to the whole. If a report reads 20% of the events, each sampled event stands for 5. For one small level with 12 fails in the sample, the estimate is 60, and one more or one fewer fail in the sample moves it by 5.

## Sources

- [Google Analytics Help: About data sampling in GA4 (read 19 November 2026)](https://support.google.com/analytics/answer/13331292)
- [ClickHouse documentation: uniqExact (read 19 November 2026)](https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/uniqexact)

## Related guides

- [A/B testing in games: when is a result real?](https://manalens.dev/blog/ab-testing-games-statistical-significance)
- [A/B test significance calculator](https://manalens.dev/tools/ab-test-significance-calculator)
- [SQL explorer](https://manalens.dev/features/sql-explorer)
- [SQL for game analytics](https://manalens.dev/glossary/sql)
- [Event](https://manalens.dev/glossary/event)
