I have setup GeoIP in a Matomo instance, but the Country is not showing India or any other except US. Also Region & City are not recognized and shown as unknown always. Due to this issue, real time map is not getting loaded.
The Matomo server is running from a private LAN and with special access, it can be accessed from public internet for testing purposes.
I have done the following changes in an attempt to fix the issue:
- Turned off language based guess as specified in: https://matomo.org/faq/troubleshooting/faq_65/
- Made config changes for Matomo Apache server to allow the SVG file format to be sent for Location tracking.
- Setup Apache GeoIP 2 but ended up getting the error
The MM_COUNTRY_CODE $_SERVER variable is not set. Your server may not be configured correctly., even though I had downloaded the free City and Country DBs from MaxMind and specified it in the configuration file.
Kindly provide your valuable comments to solve this issue.