TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Data Sampling in Analytics: When It Is Fine and When It Misleads

Data sampling means reading a subset to estimate the whole. The main sampling methods, where analytics tools sample, how small segments and rare events go wrong, and rules for trusting sampled numbers.

Chen Yu Published Nov 4, 2026 4 min read Analytics
Sample data. Rough 95% margin of error at a 3% rate; the smaller the group, the wider the range.Sample data

Try it on your own data

Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.

Start free

Data sampling means looking at part of the data to estimate the whole. Done well, it gives fast answers that are close enough. Done carelessly, a small segment or a rare event can look twice as big or small as it really is. This guide covers the main sampling methods, where analytics tools sample, and how to tell when a sampled number is safe to use.

What you will learn

  • Sampling estimates the whole from a part; error grows as the counted group gets smaller
  • Large totals survive sampling well; small segments and rare events do not
  • Know where your tool samples: at collection, at query time or only in specific features

What data sampling is

Sampling means working with part of a dataset to estimate a value for the whole. Surveys sample people; analytics tools may sample events or sessions to keep storage or queries fast.

A sample is useful when it is large enough and picked fairly. It misleads when the part you look at is small, or when the way it was picked is related to what you measure.

Sampling methods

The table lists the common methods. For behaviour data, sampling whole sessions or visitors (a form of cluster sampling) keeps journeys intact, so funnels and paths still make sense.

MethodHow it picksGood for
Simple randomEvery record has the same chanceGeneral estimates on large data
SystematicEvery nth recordStreams such as 1 in 10 events
StratifiedRandom within groups, such as each countryMaking sure small groups are represented
ClusterWhole groups, such as all events of a sessionKeeping sessions or visitors intact
ConvenienceWhatever is easiest to getQuick checks only; prone to bias

For behaviour data, sampling by session or visitor keeps journeys whole.

Where analytics tools sample

Sampling can happen at three points:

  1. At collection. Only part of the traffic is recorded. This saves storage, but the dropped data is gone for good.
  2. At query time. The data is stored in full, but a report reads a subset to answer faster.
  3. In specific features. Recording every session or every click is expensive, so features like session replay or autocapture often have their own rate.

In TapCub, session replay records 10% of sessions by default and autocapture has its own sample rate, both set by you. The collector also has a spike brake: if a minute has more than 1,000 events and more than 10 times the same hour's average over the past 7 days, it keeps about 1 in 10 events for roughly 10 minutes. That protects the pipeline during floods; it is not a standing sample.

A worked example

A report built from a 10% sample shows a 3.1% conversion rate for all traffic, against 3.0% on full data. Close enough. But paid social shows 4.6% in the sample and 2.9% on full data. The sample contained only 90 paid social sessions, so one or two extra conversions moved the rate by more than a point.

The chart shows the rough margin of error for each group at a 3% rate: under one point for the large groups, about three and a half points for the smallest.

sampling check

All traffic

3.1% vs 3.0%

sample vs full

Paid social

4.6% vs 2.9%

small segment

Sessions in sample

2,400

of 24,000

Conversion rate from a 10% sample vs full data

Sample
All traffic (2,400 sampled)±0.7 pts
Organic (1,100 sampled)±1.0 pts
Email (180 sampled)±2.5 pts
Paid social (90 sampled)±3.5 pts
Sample data
Sample data. Rough 95% margin of error at a 3% rate; the smaller the group, the wider the range.

When to trust sampled numbers

  • Large totals: usually fine.
  • Small segments: check how many sessions or conversions the sample actually contains. Under a few hundred sessions, treat the number as a rough range.
  • Rare events: a sample can miss them entirely or overstate them.
  • Comparisons: a difference between two sampled groups needs a significance check.
  • Decisions with money attached: rerun on full data first.

FAQ

What is data sampling in simple terms?

Looking at part of the data to estimate something about all of it.

Is sampled data accurate?

For large groups it is usually close. For small groups and rare events the error can be large.

How can I tell if a report is sampled?

Most tools mark sampled reports, often with an icon or a note on the share of data used. If unsure, check the tool's documentation for where it samples.

Related: statistical significance and data latency.

Was this article helpful?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

Know where sampling applies

Session replay and autocapture use a rate you set, and spike sampling only applies during traffic floods.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics