> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/documentation/documentation-nl/optimaliseer-je-installatie/geo-headers.md).

# GEO-headers

Gebruik de locatiegegevens (land, regio, stad, IP-adres en postcode) die AdPage automatisch toevoegt aan elk inkomend verzoek in je GTM-servercontainer.

### Wat zijn GEO-headers?

Heb je betere locatie-informatie nodig voor geavanceerde server-side logica? Gebruik de GEO-headers. AdPage server-side tagging voegt automatisch geografische informatie over de bezoeker als headers toe aan elke inkomende aanvraag. Zo kun je zien vanwaar een bezoeker je site bezoekt, zonder afhankelijk te zijn van afzonderlijke API's of externe services.

De volgende headers worden toegevoegd aan de **inkomende HTTP-aanvraag** in je GTM-servercontainer:

| Header             | Bevat                        |
| ------------------ | ---------------------------- |
| `X-Geo-Country`    | Het land van de bezoeker     |
| `X-Geo-Region`     | De regio van de bezoeker     |
| `X-Geo-City`       | De stad van de bezoeker      |
| `X-Geo-Ipaddress`  | Het IP-adres van de bezoeker |
| `X-Geo-PostalCode` | De postcode van de bezoeker  |

De waarden worden opgezocht in een geolocatiedatabase op basis van het IP-adres van de bezoeker en toegevoegd aan de headers.

{% hint style="info" %}
Dit product bevat GeoLite2-gegevens, gemaakt door MaxMind, beschikbaar via <https://www.maxmind.com>.
{% endhint %}

### Waarom GEO-headers gebruiken?

* **Locatiespecifieke targeting** — herken het land, de regio of de stad van een gebruiker voor nauwkeurigere targeting en segmentatie.
* **Regiospecifieke instellingen en toestemming** — privacyregels (zoals de AVG) verschillen per regio, dus het aanpassen van trackinggedrag op basis van de locatie van een gebruiker kan cruciaal zijn. GEO-headers helpen je gebruikersgegevens op een rechtmatige, conforme manier te verzamelen zonder een al te complexe configuratie.
* **Naadloze integratie met sGTM** — omdat de headers op serverniveau worden toegevoegd, heb je geen aparte scripts of API-aanroepen nodig om locatiegegevens te krijgen.

### Moet ik iets instellen?

Nee. De GEO-headers zijn automatisch beschikbaar en worden met elke aanvraag naar je servercontainer meegestuurd.

<figure><img src="https://2136026570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FPIrkSLHF8M7UFNA0PPLh%2Fimage.png?alt=media&amp;token=abb4b9fe-e144-447a-9cc7-d4baae622661" alt=""><figcaption></figcaption></figure>

### GEO-headers gebruiken in je tags

Om de locatiegegevens in specifieke tags te gebruiken, maak je een **Aanvraagheader** variabele in je GTM-servercontainer.

<figure><img src="https://2136026570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FJzNIjekIRR5EDcE9t3A9%2Fimage.png?alt=media&amp;token=c5a56fea-fb1c-45e3-97b9-2c1a886b8a51" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

#### Maak een nieuwe variabele

Ga in je GTM-servercontainer naar **Variabelen** en klik op **Nieuw** onder **Door gebruiker gedefinieerde variabelen**.
{% endstep %}

{% step %}

#### Kies Aanvraagheader

Selecteer **Aanvraagheader** als variabeletype en voer de header die je nodig hebt in als de **Headernaam**, bijvoorbeeld `X-Geo-Country`.
{% endstep %}

{% step %}

#### Sla de variabele op en gebruik deze

Geef de variabele een duidelijke naam (bijvoorbeeld `Aanvraagheader - X-Geo-Country`), sla deze op en gebruik deze in je tags, triggers of andere variabelen waar je de locatiegegevens nodig hebt.
{% endstep %}
{% endstepper %}

Herhaal dit voor elke GEO-header die je wilt gebruiken.

{% hint style="success" %}
Gebruik de [GTM Preview-modus](/documentation/documentation-nl/aan-de-slag/de-voorbeeldmodus-van-gtm-gebruiken.md) om de waarden te controleren: open een inkomende aanvraag en bekijk de requestheaders, of controleer de waarde van je nieuwe variabele.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.adpage.io/documentation/documentation-nl/optimaliseer-je-installatie/geo-headers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
