WebmasterID logoWebmasterID
User agents

User agent in analytics

Analytics platforms parse the user-agent string to report browser, operating system, and device-type breakdowns. Because the user agent is client-supplied, increasingly reduced, and easily spoofed — and because bots send their own strings — these breakdowns are useful approximations, not exact device censuses.

Verified against primary sources

What this means

Most analytics platforms read the User-Agent header (and, where available, Client Hints) to categorise each visit by browser, operating system, and device type. That is how you get charts like Chrome vs Safari, Windows vs macOS, or desktop vs mobile.

This works well at the coarse level. The structure of the user agent reliably distinguishes broad families and form factors, which is usually what these reports are for.

Why the numbers are approximate

Several factors make user-agent-based device reports approximate rather than exact. User-agent reduction freezes or removes detail (OS version, device model), so fine-grained splits are unreliable. Spoofing means some clients deliberately misreport. And bots send their own user agents, so unless the tool excludes them well, automation leaks into the charts.

The result is a good approximation of your human device mix, not a precise census. Treat exact version and model breakdowns with particular caution, since those are the first things reduction removes.

Getting more trustworthy breakdowns

Prefer tools that classify bots out before building human device reports, so automation does not distort the mix. Where you need finer device detail, use Client Hints (requested explicitly) rather than squeezing it from the legacy string.

Keep device reporting at the coarse-category level. Aggregating many high-entropy user-agent and Client-Hint values to identify individuals crosses into fingerprinting and undermines both privacy and trust in the data.

How it appears in analytics and logs

Analytics device reports come from parsing the user agent. They reflect what clients claimed, filtered by whatever bot exclusion the tool applies. They approximate your real device mix but cannot be exact given reduction, spoofing, and imperfect bot filtering.

Diagnostic use case

Interpret browser, OS, and device charts in analytics correctly, knowing their limits, and avoid over-trusting precise version or model splits derived from the user agent.

What WebmasterID can help detect

WebmasterID derives coarse browser, OS, and device context from the user agent for human-traffic breakdowns, while classifying bots out separately, so device charts are not polluted by automation or stretched into fingerprints.

Common mistakes

Privacy and accuracy notes

Using the user agent for coarse browser/OS/device breakdowns is privacy-safe when it stops at broad categories. Combining many user-agent details to single out individuals is fingerprinting; WebmasterID stays at the coarse-category level.

Frequently asked questions

Why do my analytics show a browser version that seems stuck?
User-agent reduction freezes parts of the string, so some version and platform details no longer update. The coarse browser family is still accurate; the frozen detail is expected, not a bug.

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.