Every time a browser asks for a page, it introduces itself. That introduction is a single line of text, and it has grown long and confusing over the years because browsers copy each other's tokens to stay compatible with old websites.
What a user agent string looks like
A desktop browser sends something like this:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36It mentions Mozilla, AppleWebKit, Chrome and Safari, but it is Chrome. Software called a user agent parser reads strings like this and turns them into a browser name, a version, an operating system and a device type.
Crawlers name themselves in the same header. OpenAI's training crawler, for example, includes the token GPTBot, and Google's search crawler includes Googlebot. The crawler directory lists the tokens of the bots Reveata recognises.
What analytics tools do with it
- Browser, OS and device reports. The parser works out whether a visit came from a phone, tablet or desktop.
- Bot filtering. Requests whose user agent names a known crawler are kept out of visitor counts.
- Cookieless counting. Some tools combine the user agent with other signals to tell visitors apart on one day without cookies.
How Reveata uses it
Reveata reads the user agent on its server to derive browser, operating system and device type. It keeps the browser's major version only (for example 129) and the operating system's major and minor version, and infers nothing beyond what the string says.
The same header drives bot detection. Every request is checked against a list of known crawlers and AI agents, plus a general bot detector. Recognised bots are stored as bot hits, separately from your visitors, and never count as visits (Bot and AI crawler traffic).
In cookieless mode, the server identifies a visitor for one day with a hash of a random daily salt, your website, the IP address and the user agent. The salt is deleted after its day, so the hash cannot be traced back.
Why a user agent cannot be trusted alone
The header is just text, and anyone can set it. Scrapers often claim to be Googlebot or GPTBot because sites let those through. Reveata therefore checks crawler requests against the IP ranges their operators publish and marks them verified, spoofed or unverifiable (crawler verification). Browsers are also trimming what they send: some reduce the detail in the string to make people harder to fingerprint, so very precise version or device reports are getting rarer.