Visit the Admin panel -> Settings -> General -> Geolocation
Check the 'Enable Geolocation' field.
Select a 'GeoIP Service' - NOTE: By selecting a GeoIP service, its website link (and if required, API/license key fields) will be shown.
(If available) Get the GeoIP service API key (or license key) and insert it in the geolocation settings form.
By selecting 'maxmind.com (Database)' as GeoIP service, you have to:
Download the latest binary version of the 'GeoLite2-City.mmdb' database.
Extract it in the Maxmind database folder at /storage/database/maxmind/ like this /storage/database/maxmind/GeoLite2-City.mmdb
You can replace the current file (if exists) to update the Maxmind database.
NOTE: It's important to note that the lite (free) versions of the Maxmind databases are not accurate. Please check out this link for more information: https://support.maxmind.com/geolite-faq/.
If you want to redirect users to their country's website based on their IP address, you should leave blank the parameter "Default Country".
IMPORTANT: When you reset this option by setting a default country, you need clear all your browser's session and cookies (and other data like: hosted app\'s data and cache, etc.) to see the effect of the change.
You are done.