Geo context object
Sitecore Discover AI considers the geo information in requests and events. If your request contains inconsistent information, Discover is unable to use geo-specific intelligence.
The following table describes the keys in the geo context object:
| Key | Type | Description |
|---|---|---|
| ip | string | User's IP address sent by the browser or native application.NoteDo not pass the IP address of your server or proxy.Discover uses the X-Forwarded-For header if the user's IP address is not specified. If there is no X-Forwarded-For header, Discover uses the IP address of the request. |
| country | string | Two-letter Country Code in ISO Alpha-2 format.Computed automatically from the IP address. |
| state | string | State or province name (also referred to as region). This must be a full name, not a state code. For example: North Dakota and not ND.Computed automatically from the IP address. |
| city | string | City name. This must be a full name, not a code.Computed automatically from the IP address. |
| zip | string | Zip code or postal code of the location.Computed automatically from the IP address. |
If you have suggestions for improving this article, let us know!