City based popup on Kentico Page

Saurabh Sharma asked on July 19, 2016 22:00

Hi, What is the best approach to display a popup message on a page based on city. A message like "Welcome XYZ from <City Name>".

Recent Answers


Roman Hutnyk answered on July 20, 2016 14:33

Could you please describe your case in more details.

I assume that your issue is around getting city. Unfortunately you haven't provided enough details.

I'd try macro, but it depends where does city value sits.

0 votesVote for this answer Mark as a Correct answer

Saurabh Sharma answered on July 20, 2016 21:33

I want to fetch the IP address of the user and then based on that IP address display the city name. When I go to System->Macros->Console and run CMSContext.Current.AnalyticsContext.CurrentGeoLocation.City I am getting same city names irrespective of the location from where the CMS page was accessed.

Thanks for you time and help.

0 votesVote for this answer Mark as a Correct answer

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