WebmasterID logoWebmasterID
Conversion & funnels

Randomization unit

The randomization unit is the thing you randomly assign to control or treatment: a user, a session, a device, a cookie, or a cluster. The choice must match how you analyse and how users experience the change. Mismatches cause two classic failures — a user flipping variants between sessions (inconsistent experience) and analysing at a finer grain than you assigned (understated variance, false significance).

Partially verified

Unit must match experience and analysis

If you randomise by session but a user returns across sessions, they may see control today and treatment tomorrow — an inconsistent experience that muddies the effect. So the unit should usually be the most stable identifier that still gives each user one experience: a logged-in user or account ID where available, a first-party cookie otherwise. Whatever you choose, every observation from that unit stays in one arm.

Analyse at the unit you assigned

A common error is randomising by user but computing significance per pageview or per session. Multiple correlated observations from the same user are not independent, so treating them as independent understates variance and inflates significance — a false positive engine. Aggregate to the randomisation unit first, or use methods (like clustered standard errors or the delta method) that account for the correlation.

The unit also bounds your defence against interference: cluster units limit spillover between users.

How it appears in analytics and logs

Analysing at a finer grain than the assignment unit understates variance and inflates significance; a too-fine unit also lets users see both variants.

Diagnostic use case

Pick the unit that gives each user a consistent experience and matches your analysis grain — usually a stable user or account ID, not the raw session.

What WebmasterID can help detect

WebmasterID's first-party identifiers let you assign and analyse on the same stable unit so variance is not understated.

Common mistakes

Privacy and accuracy notes

Prefer first-party, privacy-safe identifiers for the unit; avoid fingerprinting to construct a stable ID.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.