Smart links and web-to-app
What is a user agent?
Short answer
A user agent is the text a browser sends in the User-Agent header of every request, naming the browser, its version and the operating system. Servers use it to tell an iPhone from an Android phone or a desktop. Chrome now sends a reduced version, and the missing detail moved to User-Agent Client Hints.
What it is used for
A server sees the user agent before it sends anything back, so it is the first clue about the device. A smart link reads it to choose between the App Store, Google Play and the website. Analytics use it for the device and browser breakdown. It also shows when a request comes from an in-app browser or from an automated fetcher, since many of them name themselves in it.
The string is free text with no fixed structure, and any client can send whatever it likes. Treat it as a hint, not as proof.
What Chrome removed
A user agent used to carry the exact Android version and the phone model. That much detail helps to single out one device among many, so Chrome reduced it. Chrome on Android now reports the same fixed values for every phone, Android 10 and model K, and only the major browser version is real.
The operating system family is still there, so telling Android from iOS works as before. What a server can no longer read from the string is the phone model and the actual Android version. That affects anything tied to a brand, such as sending Huawei phones to AppGallery.
How Client Hints work
User-Agent Client Hints deliver the same facts as separate, structured headers. By default a Chromium browser sends three: Sec-CH-UA with the browser brand and major version, Sec-CH-UA-Mobile, and Sec-CH-UA-Platform with the operating system.
Anything more has to be requested. The server lists the hints it wants in an Accept-CH response header, for example Sec-CH-UA-Model and Sec-CH-UA-Platform-Version, and the browser includes them on later requests. Client Hints are only sent over HTTPS, and the browser may leave a value empty.
For a link, the catch is in the word later. The first request is often the only one, so the extra hints arrive after the routing decision unless the service plans for it.
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36Try it here
See what Instagram and TikTok do to your link
Paste a link to check how in-app browsers open it, or open the checker inside an app to see its user agent.
This browser, right now
Reading your browser…
Test your link here
Paste the link you put in bios and posts, then tap it. This page watches what happens after the tap and tells you.
A web link, a store link or an app scheme. It stays on this device.
Check a user agent
Paste a user agent from your server logs or analytics to see which app’s browser sent it.
Frequently asked questions
Why does Chrome report every phone as Android 10 and model K?
It is deliberate. Chrome reduced the user agent so the string no longer carries the exact Android version and the phone model. Every Android phone sends the same fixed values, and servers that need the real ones ask for them through Client Hints.
Can a user agent be faked?
Yes. It is a header set by the client, and browsers, scripts and testing tools can send any value. It is good enough for routing and statistics, where an occasional wrong value does little harm, and not suitable as a security check.
What are User-Agent Client Hints?
A set of request headers that carry browser and device facts one by one. Three basic ones are sent by default in Chromium browsers. Detailed ones, such as the phone model and the full platform version, are sent only after the server asks for them with Accept-CH.
Related terms
- Geo-routing
Geo-routing means sending visitors of the same link to different destinations depending on their country. For apps it is mostly used to pick the right store: one link can open RuStore for Android users in Russia and Google Play elsewhere, with the country taken from the visitor’s IP address.
- In-app browser
An in-app browser is the built-in browser that apps such as Instagram, TikTok, Facebook and LinkedIn use to open links without sending people out of the app. Because it keeps them inside, Universal Links and App Links often don’t open your app from there, and people land on a web page instead.
- Bot clicks
Bot clicks are visits to a link made by software, not people: link-preview crawlers from WhatsApp, iMessage, Slack and Facebook, search engine bots, and email or security scanners that check links before delivery. They inflate click counts, so good link analytics keep them apart from real clicks.
One link for every phone
Create a free smart link and QR code that sends iPhones to the App Store, Android phones to Google Play and desktops to your website.