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 |
|---|---|---|
|
|
string |
User's IP address sent by the browser or native application. Note Do 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 |
|
|
string |
Two-letter Country Code in ISO Alpha-2 format. Computed automatically from the IP address. |
|
|
string |
State or province name (also referred to as region). This must be a full name, not a state code. For example: Computed automatically from the IP address. |
|
|
string |
City name. This must be a full name, not a code. Computed automatically from the IP address. |
|
|
string |
Zip code or postal code of the location. Computed automatically from the IP address. |