@DenisVS wrote:
After setting up, my server provides the necessary HTTP headers:
["HTTP_X_REAL_IP"]=> string(12) "51.15.106.67" ["HTTP_GEOIP2_AUTONOMOUS_SYSTEM_NUMBER"]=> string(5) "12876" ["HTTP_GEOIP2_AUTONOMOUS_SYSTEM_ORGANIZATION"]=> string(13) "Online S.a.s." ["HTTP_GEOIP2_CONTINENT_CODE"]=> string(2) "EU" ["HTTP_GEOIP2_CONTINENT_GEONAME_ID"]=> string(7) "6255148" ["HTTP_GEOIP2_CONTINENT_NAMES"]=> string(6) "Europe" ["HTTP_GEOIP2_COUNTRY_GEONAME_ID"]=> string(7) "2750405" ["HTTP_GEOIP2_COUNTRY_ISO_CODE"]=> string(2) "NL" ["HTTP_GEOIP2_COUNTRY_NAMES"]=> string(11) "Netherlands" ["HTTP_GEOIP2_LOCATION_ACCURACY_RADIUS"]=> string(3) "500" ["HTTP_GEOIP2_LOCATION_LATITUDE"]=> string(8) "52.38240" ["HTTP_GEOIP2_LOCATION_LONGITUDE"]=> string(7) "4.89950" ["HTTP_GEOIP2_LOCATION_TIME_ZONE"]=> string(16) "Europe/Amsterdam" ["HTTP_GEOIP2_REGISTERED_COUNTRY_GEONAME_ID"]=> string(7) "2750405" ["HTTP_GEOIP2_REGISTERED_COUNTRY_ISO_CODE"]=> string(2) "NL" ["HTTP_GEOIP2_REGISTERED_COUNTRY_NAMES"]=> string(11) "Netherlands"
My configuration for server variables is remapped appropriately:
HTTP_GEOIP2_CONTINENT_CODE Default: MM_CONTINENT_CODE HTTP_GEOIP2_CONTINENT_NAMES Default: MM_CONTINENT_NAME HTTP_GEOIP2_COUNTRY_ISO_CODE Default: MM_COUNTRY_CODE HTTP_GEOIP2_COUNTRY_NAMES Default: MM_COUNTRY_NAME HTTP_GEOIP2_LOCATION_LATITUDE Default: MM_LATITUDE HTTP_GEOIP2_LOCATION_LONGITUDE Default: MM_LONGITUDE HTTP_GEOIP2_POSTAL_CODE Default: MM_POSTAL_CODE HTTP_GEOIP2_CITY_NAMES Default: MM_CITY_NAME HTTP_GEOIP2_AUTONOMOUS_SYSTEM_NUMBER Default: MM_ISP HTTP_GEOIP2_AUTONOMOUS_SYSTEM_ORGANIZATION Default: MM_ORG
In the “settings” section of Matomo, everything looks decent (look at screenshot).
But all information about users in real-time section is the IP and location based on browser language settings.
When I run test in console it give something like:> php /path/to/my/site/piwik/console diagnostics:run Geolocation: WARNING The default location provider guesses a visitor's country based on the language they use. This is not very accurate, so we recommend installing and using GeoIP. 1 warnings detected
What’s wrong?
Posts: 1
Participants: 1