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:

KeyTypeDescription
ipstringUser'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.
countrystringTwo-letter Country Code in ISO Alpha-2 format.Computed automatically from the IP address.
statestringState 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.
citystringCity name. This must be a full name, not a code.Computed automatically from the IP address.
zipstringZip code or postal code of the location.Computed automatically from the IP address.
If you have suggestions for improving this article, let us know!