Give more info about your use case...
I want when any user open my website then they will redirect to local link(on wix site) based on their geolocation. So i can show different page based on user country.
@Karan Kalsi You can try to modify this code.
@Heath H-M Thanks.