New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoIP 2 doesn’t show visitors data #14691
Comments
The command line might be wrong since apache wouldn't set the headers there. I suppose you can ignore it and rely on the UI which tells you that GeoIP2 Apache is being used. It seems otherwise like some server setup issue which we can't provide support here in the issue tracker unfortunately as this is quite server specific. In the screen you posted it looks like generally the location is being detected? It shows the right ORG etc. which it wouldn't be able to detect from the language provider. |
Well, I created the headers in accordance with the requested by UI. It gets exactly what it wants. |
Sorry I'm not quite 100% sure what you mean? |
I just want it to correctly determine geodata. |
Sorry I'm still not understanding what you mean? In the UI it looks like things are already working and you correctly determine geodata? @sgiehl do you maybe know more here? |
@DenisVS are you using JS tracking or log import? |
JS via tracker-proxy |
That might possibly the issue. Haven't had a closer look at the proxy script. But apache sets the variables based on the IP of the request. Which would be the one of the server when the request is proxied with curl. The correct IP is send with the tracking data, so it's displayed correctly in Matomo, but Apache doesn't see it and can't locate the IP correctly. |
It's already doing this maybe @sgiehl https://github.com/matomo-org/tracker-proxy/blob/master/proxy.php#L192-L196 ? Seems like we can close the issue and @DenisVS would maybe need to configure to use the correct IP in apache? |
@tsteur that is only used to determine the IP that is sent as |
Thanks, created matomo-org/tracker-proxy#51 |
This is a copy of my issue from the official forum, because there are still no answers.
https://forum.matomo.org/t/geoip-2-doesnt-show-visitors-data/33452
After setting up, my server provides the necessary HTTP headers:
My configuration for server variables is remapped appropriately:
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:
What’s wrong?
The text was updated successfully, but these errors were encountered: