What is the best approach to display a popup message on a page based on city.
A message like "Welcome XYZ from <City Name>".
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.
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.
Please, sign in to be able to submit a new answer.