HTTP Headers

An overview of all tracking-relevant HTTP headers in owntag SGTM containers.

The following HTTP headers are available to you in requests in owntag Server Side GTM containers:

HeaderDescriptionAdditional Information
x-owntag-useripThe complete IP address of the user, which can be either IPv4 or IPv6.
x-owntag-usercountryThe ISO 3166-1 alpha-2 country code, determined by the owntag geolocationowntag Geolocation
x-owntag-hostThe hostname to which the request was originally sent. Useful if your SGTM container is accessible under multiple hostnames.
x-request-idA random, unique ID of the incoming request in UUIDv4 Format
x-owntag-browser-fingerprintA browser fingerprint as an alternative to cookie-based client IDsowntag Browser Fingerprint
x-owntag-is-botIndicates whether the request is from a bot. true if it is a bot, false otherwise.owntag Bot Detection
x-owntag-device-mobile"true" if the device is a mobile phone, "false" otherwise (tablets are "false")owntag User Agent Info
x-owntag-device-osOperating system name (e.g. “Windows”, “macOS”, “Android”, “iOS”)owntag User Agent Info
x-owntag-device-browserBrowser name (e.g. “Chrome”, “Safari”, “Firefox”)owntag User Agent Info
x-owntag-device-browser-versionFull browser version string (e.g. “120.0.6099.109”)owntag User Agent Info
x-owntag-device-engineRendering engine (e.g. “Blink”, “WebKit”, “Gecko”)owntag User Agent Info
x-owntag-device-engine-versionRendering engine versionowntag User Agent Info
x-owntag-device-platformPlatform type (e.g. “desktop”, “mobile”, “tablet”)owntag User Agent Info

Accessing the HTTP Headers in Server Side GTM

To utilize the information transmitted in the headers, you can create corresponding “Request Header” type variables in Server Side GTM:

Screenshot of the selection of different variable types in Server Side Google Tag Manager

Then, you enter the name of the header as the variable name, such as x-owntag-userip here:

Screenshot of a Server Side GTM Variable of type 'Request Header' with 'x-owntag-userip' in the Name field