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

Need better version detection for macOS #19832

Closed
KingsLine opened this issue Oct 7, 2022 · 4 comments
Closed

Need better version detection for macOS #19832

KingsLine opened this issue Oct 7, 2022 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@KingsLine
Copy link

I am using the latest version of Matomo (4.12.0) and have noticed for awhile now that every version of macOS since Catalina (10.15) is reported as 10.15. While, in fact, Big Sur (macOS 11.0 released in 2020) and Monterey (macOS 12.0 released in 2021) are subsequent releases to Catalina.

Matomo_stuck_10 15

I have confirmed this via BrowserStack by testing in a clean browser environment using macOS 12.2.1. Matomo reports it as a visit from a macOS 10.15 device.

Someone must have noticed this, right? Is this just my installation somehow?

@Findus23
Copy link
Member

Findus23 commented Oct 8, 2022

Hi,

Can you share the user agent your browser is sending to Matomo? (And which browser you are using)
(e.g. by visiting https://devicedetector.lw1.at/)

If that's what the user agent is telling Matomo (and if I remember Apple is intentionally freezing the UA), there is not much that can be done here.

@KingsLine
Copy link
Author

Ah, I see now.

Yes, here is the UA string: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15.

So it appears it's an operating system limitation as this happens in both the latest versions of Safari and Chrome on macOS 12.6.

@KingsLine
Copy link
Author

Update: it appears that Matomo can sniff the OS version from Chrome (due to JSON/headers) but not Safari on macOS. I confirmed this using BrowserStack. So, apparently, I have a bunch of visitors using Safari.

@sgiehl
Copy link
Member

sgiehl commented Oct 10, 2022

@KingsLine with Matomo 4.12 we have added support for client hints. In browsers using client hints like chrome, it might be possible to detect the correct OS version using such now. For Safari and other brothers not supporting client hints, there is actually not much we can do, as the useragent reports the incorrect version...

@sgiehl sgiehl closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2022
@justinvelluppillai justinvelluppillai added the answered For when a question was asked and we referred to forum or answered it. label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants