/
IP Lookup Location

IP Lookup Location

We are often asked how to make CX decisions as targeted as possible. Once of the methods is to clearly understand as much as possible about the person interacting at the time of interaction. This Public Template is especially useful for our brands with an offline presence; it takes the IP address at the time of interaction and provides back into the flow of the rule various location details including country, city, latitude, and longitude. These fields can then be used in further personalisation - nearest store offers of direction information for example.

 

Input Data

Field

Description

Example

Field

Description

Example

IP

IP Address - Provided by the calling system. This would as standard be gathered in the tracking tagging.

81.141.1.226

Configuration

By default the Public template calls out to the API at https://ip-api.com/ and provides back the location information. At its basic tier you can make 45 calls for free per min. Good for small usage or testing. Beyond this volume it has a competative paid for tier. Configuration for the paid for tier can be done by adapting the Public Template appropriately and saving it in your local client.

Processing

This tile template will take the IP field in the flow and generate a series of location fields that should identify where the person was when the call was made.

Getting geolocation data from an IP is useful but is not always 100% accurate. For identifying a closest store or local weather it’s fine. It should not be relied upon to provide important location information, proximity to a forest fire for example!

Output Data

Field

Description

Example

Field

Description

Example

city

Expected nearest City

York

country

Expected country

Great Britain

countryCode

Provides country ISO codes as described in the ISO 3166 international standard numerical

GBR

IP

IP Address

81.141.1.226

latitude

Measurement of distance north or south of the Equator

51.2279

longitude

Measurement east or west of the prime meridian

-2.5261

postalCode

Postal district level

BA4

Related content