Headers & User-Agent

Every click on a short link arrives with a packet of metadata — HTTP headers. They are the source of everything link analytics knows about who clicked, from where and on what device.


Definition

HTTP headers are key-value metadata fields transmitted with every HTTP request and response. Request headers — sent by the browser with every request — contain information about the client making the request: what software it is, what language it prefers, where it came from and what content types it accepts.

For URL shorteners, request headers are the primary raw data source for link analytics. Every data point in the analytics dashboard — device type, OS, browser, language, referrer source — originates from parsing request headers captured at the moment of the click.

The Key Headers for Link Analytics

User-Agent

The User-Agent header identifies the software making the request. For browser clicks, it is a structured string containing browser name and version, rendering engine, OS name and version, and device type signals.

Mobile example (iPhone, Safari):

Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1

Desktop example (Windows, Chrome):

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

User-Agent parsing produces the device type (mobile/desktop/tablet), OS (iOS, Android, Windows, macOS, Linux), OS version and browser (Chrome, Safari, Firefox, Edge, Samsung Internet) data seen in link analytics dashboards.

Referer

Accept-Language

The Accept-Language header specifies the visitor's preferred language(s), as configured in their browser. It is used as a proxy for locale and language preference. Useful for understanding the language makeup of an audience reached by a link — particularly relevant for multilingual campaigns where the language distribution of clicks may inform localisation decisions.

IP Address (Not a Header, But Related)

The connecting IP address is not transmitted in a header — it is implicit in the TCP connection. It is used for geographic lookup: the IP address is matched against a geo-IP database to determine the country of origin, then discarded in GDPR-compliant implementations. Only the derived country value is stored in click analytics — not the IP address itself.

User-Agent Client Hints: The Modern Replacement

Modern Chrome-based browsers are gradually replacing the full User-Agent string with User-Agent Client Hints — a more structured, privacy-preserving mechanism that provides device and browser information in structured header fields rather than a single long string. The transition affects how detailed device analytics can be in future implementations, but the core data — device type, OS, browser — remains available.

Related Terms

FAQ

What is a User-Agent string?

A text field in the HTTP User-Agent header identifying the software making the request — browser name/version, rendering engine, OS name/version and device signals. URL shorteners parse it to produce device type, OS and browser analytics per click.

How does the Referer header work in link analytics?

Contains the URL of the page from which the visitor navigated. Parsed to identify traffic source: Facebook.com → social/Facebook; google.com → search/Google; absent → direct. Email apps, messaging apps and some privacy tools strip the Referer, making those clicks appear as direct.

URL Shortener

Cuttly simplifies link management by offering a user-friendly URL shortener that includes branded short links. Boost your brand’s growth with short, memorable, and engaging links, while seamlessly managing and tracking your links using Cuttly's versatile platform. Generate branded short links, create customizable QR codes, build link-in-bio pages, and run interactive surveys—all in one place.

Cuttly More Than Just a URL Shortener

Cuttly is a comprehensive, ever-evolving platform for link shortening that combines innovation and user-friendliness to deliver a seamless experience in managing and shortening URLs.