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
Wrong Location for Opera Mini users #10816
Comments
If Opera Next is detected it should use the icon https://github.com/piwik/piwik/blob/3.x-dev/plugins/DevicesDetection/images/browsers/ON.gif Isn't that correct? |
Ooh, not really |
Ok. Opera and Opera Mini use icons that are almost identical. This one ise used for Opera Mini and may need an update: https://github.com/piwik/piwik/blob/3.x-dev/plugins/DevicesDetection/images/browsers/OI.gif |
Yeah it will need an update and it will also be better if the right IP of the visitor using Opera Mini is used to identify his right location instead of always indicate the Opera Mini's server location. This dysfunction creat big statistics errors for countries where Opera Mini is largely used. |
@evrard-c Maybe Opera Mini still forward the original user IP in another HTTP header? we have similar cases already see: http://piwik.org/faq/how-to-install/faq_98/ if you have access to a opera mini please visit a page |
@mattab as you asked, I created a test page with To identify the location of the visitor, Piwik uses the IP in
|
Thanks @evrard-c for the details.
Do you maybe have a link to this doc? Note: currently you can configure Piwik to read the HTTP_X_FORWARDED_FOR IP instead of REMOTE_ADDR, as documented in: http://piwik.org/faq/how-to-install/faq_98/ - but this will apply to all visits... so this does not work too well when only opera mini users will set this header. Once confirmed then, it sounds like we will need to add a "Special case" handling for Opera mini users, and always read HTTP_X_FORWARDED_FOR for these users. |
@mattab , |
Or add 195.189.142.0/23 to proxy_ips? |
This solved the problem for Opera Mini
|
When a user access to the site by using Opera Mini, Piwik displays a wrong location, this location always be "Norway" or "EU". This wrong location occur because Opera Mini is a proxy browser, so the location indicated by Piwik it's the location of Opera Mini's server not the user location.
Piwik use the IP adress of Opera Mini server instead of the true IP adress of the user.
This can be fixed by using the real IP of the user like Opera explanes it in this page when talking about "X-Forwarded-For"
It might be better to also have the real Opera Mini icon instead of the same as Opera because they don't have the same icon, each has its own.
Yes, i know that it looks like an Opera Mini's advocacy, but when you work on a project in a country where Opera Mini reach 85% of the traffic, you don't really have choice. ;)
The text was updated successfully, but these errors were encountered: