A user agent is a string of text that a browser or app includes in every HTTP request, describing the software and device making the request — for example the OS, OS version, device model, and browser engine. It's a standard part of how web traffic identifies itself to servers.
The user agent in attribution
When a deterministic [[device-id]] isn't available (the common case post-[[att]]), attribution falls back to [[probabilistic-attribution]]: matching an ad click to an install using a combination of IP address, timestamp, and the user-agent string. The UA contributes device/OS detail that narrows the match. Because none of these signals is a stable unique ID, the result is a statistical probability, not a certainty.
Spoofing and privacy. Because the UA is self-reported, it can be trivially faked — fraud farms rotate fake user agents to disguise [[bot-traffic]], and [[fingerprinting]] uses the UA as one input. In response, Apple and Google have been reducing UA granularity (UA "freezing"/reduction) to limit cross-site fingerprinting, consistent with the wider move away from trackable signals.