Skip to content
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

Country guessing from browser language not working properly. #363

Open
micichon opened this issue Oct 13, 2023 · 1 comment
Open

Country guessing from browser language not working properly. #363

micichon opened this issue Oct 13, 2023 · 1 comment

Comments

@micichon
Copy link

Hello!

Summary

I have a problem with Matomo trying to guess users location form web Browser. My application is not very complicated, that's why I want it to use default geolocation setting. However as much as geolocation works properly when I use the application on Android, It does not work when I try to use it on IOS. Matomo shows the message that it recognises the web language but does not set the localisation properly. I am scratching my head why that might be the case and I would appreciate all the help I can get.

Here Matomo is properly recognizing the location when using Android:
image

And here is the same but when using Iphone:
image

Note that I tried to change the browser languages to match and be different and it did not help.

@sgiehl
Copy link
Member

sgiehl commented Oct 30, 2023

Matomo basically detects the language based on the headers sent with the request. So this detection depends on the HTTP_ACCEPT_LANGUAGE. If iOS sends that as en, Matomo can't detect anything based on that, as English is a language spoken in too many countries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants