Edge Side Includes (ESI)
You can use the following properties in Edge Side Include (ESI) directives using the <esi:vars>
element in designs and pages.
The ESIs on this page are available for Matrix SaaS customers. |
GeoIP ESI variables
<esi:vars>$(GEOIP_COLO)</esi:vars>
You can also specify multiple properties in a single <esi:vars>
element.
<esi:vars>$(GEOIP_COLO),$(GEOIP_REGION)</esi:vars>
- GEOIP_COLO
-
Retrieves the three-letter IATA airport code for the closest server.
For example,SYD
. - GEOIP_CONTINENT
-
Retrieves the two-letter continent code of the incoming request.
For example,NA
,EU
, orOC
. - GEOIP_CITY
-
Retrieves the city of the incoming request.
For example,Sydney
. - GEOIP_COUNTRY
-
Retrieves the two-letter country of the incoming request.
For example:US
,FR
orNZ
. - GEOIP_LATITUDE
-
Retrieves the latitudinal coordinates of the incoming request.
For example:-27.46790
. - GEOIP_METROCODE
-
Retrieves the Google AdWords metro code matching the
GEOIP_CITY
returned.
For example,635
for Austin, Texas.Google AdWords Metro Codes match Nielsen Media Research Designated Market Area (DMA) broadcasting market codes for North American metropolitan areas. Read the Wikipedia article on Media markets for conceptual information and a diagram showing the market areas in North America. - GEOIP_POSTALCODE
-
Retrieves the regional postal code for the
GEOIP_CITY
.
For example,2000
. - GEOIP_REGION
-
Retrieves the ISO 3166-2 first-level region name for the
GEOIP_CITY
.
For example,New South Wales
- GEOIP_REGIONCODE
-
Retrieves the ISO 3166-2 principal subdivision code for the
GEOIP_CITY
.
For example,NSW
. - GEOIP_TIMEZONE
-
Retrieves the timezone region information in the format
<Country>/<Region>
.
For example,Australia/Sydney
.