The geo object
Describes the geo portion of the context object.
The geo
object is located in the context object. It contains information about the end user's geographic location like their IP address, country, state, and so on.
Important
If the API request contains inconsistent geographic information, the Sitecore Discover AI system can not utilize geo-specific intelligence.
The following table lists the attributes supported in the geo
object:
Name | Type | Description |
---|---|---|
| string | Optional. IP address of the user that is sent by the browser or native application. NoteDo not pass the IP of your server or proxy. If IP is not specified, it is read from the X-Forwarded-For header of the request. If there is no X-Forwarded-For header, the IP of the request is used. |
| string | Optional. Two-letter country code (ISO Alpha-2). Computed automatically using IP if not provided. |
| string | Optional. Full name of state or province (also referred to as region). Computed automatically using IP if not provided. Example: |
| string | Optional. Full name of city. Computed automatically using IP if not provided. |
| string | Optional. Zip/Postal code of the location. Computed automatically using IP if not provided. |