How to configure Geolocation Lookup Provider to Sitecore - madoibito/SitecoreGeoLocationLookupProvider GitHub Wiki

This project contains following IP geolocation lookup providers for Sitecore DMS.

IP-API provides a free IP geolocation service. DocoDocoJP also is an IP geolocation provider in Japan. Be careful ip-api will ban your IP address if you request Geolocation Infromation over 240 per minutes.Please look at each provider's site for license details and restrictions.

1.How to configure ip-api lookup provider for Sitecore DMS.

Open Sitecore.Analytics.config and edit lookupManager like following.Comment out default max mind provider.

<add name="default" type="Netplanetes.Analytics.Lookups.IpApi.IpApiProvider,Netplanetes.Analytics.Lookups"/>

Add Netplanetes.Lookup.UrlTemplate setting like following.UrlTemplate is a endpoint of Ip-api to get geolocation information of visitor ip address.{0} is a placeholder for visitor IP.

<setting name="Netplanetes.Lookup.UrlTemplate" value="http://ip-api.com/xml/{0}" />

You can add Netplanetes.Lookup.Timeout setting if you want to extend timeout. default value is 30000 milli seconds.

2.How to configure Doco Doco JP lookup provider for Sitecore DMS.

Along with IP-API provider , open Sitecore.Analytics.config and edit lookupManager like following.Comment out default max mind provider.

<add name="default" type="Netplanetes.Analytics.DocoDocoJp.DocoDocoJpProvider,Netplanetes.Analytics.Lookups">

Add Netplanetes.Lookup.UrlTemplate , Netplanetes.Lookup.ApplicationId, Netplanetes.Lookup.ApplicationSecret settings.ApplicationId and ApplicationSecret corresponds to key1 and key2 each other. you need to contact docodocojp to get key1 and key2 issued.

<setting name="Netplanetes.Lookup.UrlTemplate" value="http://api.docodoco.jp/v4/search?key1={0}&amp;key2={1}&amp;ipadr={2}" />

<setting name="Netplanetes.Lookup.ApplicationId" value="XXXXXX" />

<setting name="Netplanetes.Lookup.ApplicationSecret" value="YYYYY" />

You can add Netplanetes.Lookup.Timeout setting if you want to extend timeout same as ip-api. default value is 30000 milli seconds.