---
title: Settings - Geolocation
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Settings in this category configure the geolocation feature for contacts.

> **Note:** **Using GeoIP2 Databases**
>
> The initially used GeoLite and GeoIP Legacy Databases will be [discontinued](https://blog.maxmind.com/2018/01/02/discontinuation-of-the-geolite-legacy-databases/). We recommend transitioning to the newer GeoLite2 or GeoIP2 Databases – see [Using geolocation for contacts](https://docs.kentico.com/k11/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-contacts/using-geolocation-for-contacts.md).

| General                                                                                                                                                                                                                                                              |                                                                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Enable contact geolocation by IP                                                                                                                                                                                                                                     | Indicates if the system tracks the geographic locations of contacts based on their IP addresses.                                                                                                                               |
| Suffix for mapped data                                                                                                                                                                                                                                               | Allows you to specify an optional suffix, which the system adds to the values of contact fields obtained using geolocation. The suffix is only added to text-based fields.                                                     |
| Geolocation data to contact fields mapping                                                                                                                                                                                                                           |                                                                                                                                                                                                                                |
| This section allows you to configure the mapping of the geolocation data to the fields of Kentico contacts. Use the drop-down lists to select the target fields into which the system maps the information. Mind the type restrictions when assigning target fields. |                                                                                                                                                                                                                                |
| Country                                                                                                                                                                                                                                                              | Accepts integer-based and text-based fields.<br>When mapping to integer fields, the _Country ID_ value is used<br>Text-based fields use the _Country display name_ value                                                       |
| State                                                                                                                                                                                                                                                                | Accepts integer-based and text-based fields.<br>When mapping to integer fields, the _State ID_ value is used<br>Text-based fields use the _State display name_ value                                                           |
| City                                                                                                                                                                                                                                                                 | Accepts text-based fields.                                                                                                                                                                                                     |
| Postal code                                                                                                                                                                                                                                                          | Accepts integer-based and text-based fields.                                                                                                                                                                                   |
| Area code                                                                                                                                                                                                                                                            | Accepts integer-based and text-based fields.<br>Note: The area code data is not available when using GeoIP2 Databases.                                                                                                         |
| Metro code                                                                                                                                                                                                                                                           | Accepts integer-based and text-based fields.                                                                                                                                                                                   |
| DMA code                                                                                                                                                                                                                                                             | Accepts integer-based and text-based fields.<br>Note: The DMA code data is not available when using GeoIP2 Databases.                                                                                                          |
| Latitude                                                                                                                                                                                                                                                             | Accepts floating-point number and text‑based fields.                                                                                                                                                                           |
| Longitude                                                                                                                                                                                                                                                            | Accepts floating-point number and text‑based fields.                                                                                                                                                                           |
| Organization/ISP (GeoIPOrg required)                                                                                                                                                                                                                                 | Accepts text-based fields.<br>Note: Organization data is only available if you have the GeoIP Organization Database (Legacy) or [GeoLite2 ASN Database](https://dev.maxmind.com/geoip/geoip2/geolite2/) added to your project. |

> **Info:** By default, Kentico contacts do not have fields for storing the **Area code**, **Metro code**, **DMA code**, **Latitude** and **Longitude** geolocation data. To learn how to create custom fields for holding the data, see [Adding custom fields to contacts](https://docs.kentico.com/k11/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-contacts/adding-custom-fields-to-contacts.md).
