Geolocation not working for contacts

Tomasz Sikora asked on August 23, 2017 11:54

I have geolocation enabled:

Image Text

My contact is being created automatically:

Image Text

But no geolocation data is present.

I have GeoLiteCity.dat database in place

Image Text

And I don't know what else I can do to get City/ZIP code automaticlly. Is there something I'm missing?

Recent Answers


Sandro Jankovic answered on August 23, 2017 16:39 (last edited on August 23, 2017 16:43)

Is it possible that you forgot the Web.config key?

<add key="CMSGeoIPLocationFileName" value="GeoIPCity.dat" />

Also check if the app has file permissions for the .dat

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 23, 2017 16:44

Some contacts like bots will not have geolocation info stored. Pretty common for this. Make sure you test with a valid user in a incognito window with cookies cleared. Even better to try this on another device.

0 votesVote for this answer Mark as a Correct answer

Tomasz Sikora answered on August 23, 2017 17:10

@Sandro Isn't that a way to provide other more precise database that you need to purchase first? Do I need to set any config file entry for GeoLiteCity.dat ?

0 votesVote for this answer Mark as a Correct answer

Sandro Jankovic answered on August 23, 2017 17:19

Ah yes you are right, it is not needed for the lite version. I just checked one of my projects using the lite version and we not have any special keys for it. I'd start by checking if you can actually read from that file.

For testing purposes I'd give the user full permissions and test as Brenden suggested. Let us know how it goes.

0 votesVote for this answer Mark as a Correct answer

Tomasz Sikora answered on August 24, 2017 11:18

I've checked file permissions, I have all permissions granted to my admin account, IUSR, SYSTEM, my local account, my admin account and IIS_IUSRS account (full controll, modify, execute, read, write). Still no geolocation info present. I tried with incognito window, Anonymous user appeared, but without address / country being filled. No events were generated in windows event log or events application inside Kentico.

What else can I check? Maybe I could attach myself with visual studio debugger somewhere?

0 votesVote for this answer Mark as a Correct answer

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