GEO Location data

Teresa Boettcher asked on March 16, 2018 19:30

Can someone explain how the GeoLocation data is loaded into Kentico from Maxmind. We want to be sure we are loading the database. Also want to know what file we are loading. From within Kentico there are two scheduled processes. One that runs once a month that I believe downloads the data, and the scheduled process runs every two minutes that updates the database session. Why would you update the database every two minutes?

Recent Answers


Peter Mogilnitski answered on March 16, 2018 19:46 (last edited on March 16, 2018 19:46)

There is a file from Maxmind (the free one, but you can buy more detailed and more frequently updated). It is located in CMS\App_Data\CMSModules\WebAnalytics\MaxMind\GeoLiteCity.dat This a file used buy Kentico to resolve IP to location. The free file is downloaded once a month. We have paid version which gets updated once a week and our build process downloads this file per week. The process which runs every 2 minutes is resolving the incoming IPs for contacts. You can change settings by going to settings\online marketing\geo location. I guess if you turn off analytics or disable 'geo location by IP' the task should stop. Read more here

0 votesVote for this answer Mark as a Correct answer

Teresa Boettcher answered on March 16, 2018 19:56

Is the GeoLiteCity.dat the free one? We would like to reference the paid one which I believe is GeoIPCity.dat. How do we change the file name within Kentico?

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on March 16, 2018 20:02 (last edited on March 16, 2018 20:06)

GeoLiteCity.dat is the free one, GeoIPCity.dat - is the paid one. Just copy GeoIPCity.dat in the same folder as GeoLiteCity.dat. Do not change the name just add key to you web.config <add key="CMSGeoIPLocationFileName" value="GeoIPCity.dat" />.

Read the documentation here

0 votesVote for this answer Mark as a Correct answer

Teresa Boettcher answered on March 16, 2018 20:14

Ok, this is what I have in the web config file right now, https://client.kentico.com/GEOIP/GeoLiteCity-dat /> I just tried changing it to https://client.kentico.com/GEOIP/GeoIPCity.dat. When I try and reference it within IE it doesn't work.

0 votesVote for this answer Mark as a Correct answer

Teresa Boettcher answered on March 16, 2018 21:39

I added the new key to the web.config file; Moved the dat file to the correct location; executed the scheduled job to load the data. How can I tell if the data was loaded?

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on March 16, 2018 22:20

I would go to the system -> macros -> Console and try this macro AnalyticsContext.CurrentGeoLocation.Country.DisplayName It should resolve your country.

0 votesVote for this answer Mark as a Correct answer

Teresa Boettcher answered on March 19, 2018 13:45

When I go to System > macros > Console and execute the macro, there is no Output.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on March 19, 2018 18:08 (last edited on March 19, 2018 18:11)

if you dont anything in the output window there is a macro error. Typo or something else. Even if I turn geolocation off or do it locally (localhost)- I still will get cms.country (0)as output

0 votesVote for this answer Mark as a Correct answer

Teresa Boettcher answered on March 27, 2018 20:14

Good afternoon Peter, after communicating with MaxMind, they are suggesting we reference and download a database different than what we have currently. The new database that they recommend includes a file with a .mmdb extension instead of the .dat extension. Is it possible to upload this through Kentico?

0 votesVote for this answer Mark as a Correct answer

Teresa Boettcher answered on April 6, 2018 17:31

Is there anyone that help me? I want to be able to upload the new database that MaxMind suggests. It contains a .mmdb file instead of a .dat file

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.