[ad_1]
I’m looking for some recommendations for good geolocation solutions for WordPress. I’d like the ability to both dynamically change content and also full redirects based mainly on the state the visitor is in. At peak season for our business we get about 300k sessions a month, which can add up with some of these services.
One service that looks to be near the top of the list is: [https://www.if-so.com/location-based-content-wordpress-plugin/](https://www.if-so.com/location-based-content-wordpress-plugin/)
Appreciate all the suggestions!
[ad_2]
You can either use one of the leading plugins called :GeoTargeting WP or you can write the code yourself and leverage the HTML5 Geolocation API. However in either cases, the user WILL BE PROMPTED to share their location. So if they decline you wont have it. Another way of doing it, which is much less accurate is doing it via IP. However, if you are behind a CDN like cloudflares CDN, you will need a lot of code to write to make it work. Unless of your you have the Cloudflare Enterprise Plan, which shows the Orginal IP Header, but those plans start at like 4000 K a month. Also nothing prevents you from using both methods and cross referencing and consolidating them. But you need to be proficient at writing code.
If you can write code yourself, I suggest going with Maxmind or Google Geolocation API.