So I got a request from a user to create an episode where we learn how to use localized dynamic pages based on where the visitors come from. So if a visitor come from New York we should redirect them to the New York page and if they come from Tel Aviv we should show them the Tel Aviv dynamic page.
We have accomplished this by using fetch and the ip-api service. We could use the getCurrentGeolocation available in Wix Code but then the visitors will be prompted to allow the web page to see their location and I don’t like this.
We have published a in depth episode on our site Wix Show (https://www.wixshow.com) where you will get full source code and learn how to utilize this in your own projects.
This is great for tourist sites to show different content depending on where the users are from as well as localized agency pages that target different cities.