Konfiguration

GEO header in Heytag: Region specific behavior for sGTM

Lukas Becker
by Lukas Becker

Geo-headers make it possible to automatically add country information to server-side requests—without client-side scripts, without cookies, and without any additional front-end effort. Heytag provides its own easy-to-use header for this purpose, which can be used directly in the sGTM setup.

Header name: X-GEO-Country

The value contains the ISO 3166-1 Alpha-2 country code (e.g., DE, AT, CH). The data comes from the IPinfo database (IPinfo Inc.).

Region specific behavior

Heytag supports region-specific behavior, as recommended by Google for server-side implementations. This allows you to control how tags behave based on the user’s country of origin—for example, for different consent settings or market-specific ad delivery rules.

How it works

The Heytag determines the country of origin for each request and sets the value as an HTTP header:

X-GEO-Country: DE

Activation in the Heytag setup

The Geo-Header is enabled in all Heytag instances. The IPinfo database is updated automatically.

Back to overview