Hi,
Windows 11 is being recorded as Windows 10. This was a screenshot of a visit I made, I’m running Windows 11, but Matomo recorded it as Windows 10.
Thanks,
Bryn
Lukas
(Lukas Winkler)
May 10, 2022, 11:37am
2
Hi,
This is kind of working as “intended”:
opened 03:53AM - 10 Dec 21 UTC
closed 09:45AM - 08 Mar 22 UTC
not-in-changelog
Currently, the user agent strings for windows 10 and 11 are both `Windows NT 10.… 0`, and in oss.yml they are treated as same OS.
This is Edge 96 on windows 11 looks like on my machine:
`Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36 Edg/96.0.1054.29`
Could it detect windows 11 using client hint?
[Detecting Windows 11 using User-Agent Client Hints](https://docs.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11)
(Edge on) Windows 11 is sending an user agent that tells the server that it is Windows 10.
One can avoid this by listening to the new ClientHints header, which is already supported by DeviceDetector (the library by Matomo that detects devices), but the integration into Matomo is not yet finished (but might be with the next release):
matomo-org:4.x-dev
← matomo-org:clienthints
opened 04:33PM - 24 Feb 22 UTC
### Description:
this requires https://github.com/matomo-org/device-detector/… pull/6989 to be finished and released
fixes #16125
### Review
* [ ] [Functional review done](https://developer.matomo.org/guides/pull-request-reviews#functional-review-done)
* [ ] [Potential edge cases thought about](https://developer.matomo.org/guides/pull-request-reviews#potential-edge-cases-thought-about) (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
* [ ] [Usability review done](https://developer.matomo.org/guides/pull-request-reviews#usability-review-done) (is anything maybe unclear or think about anything that would cause people to reach out to support)
* [ ] [Security review done](https://developer.matomo.org/guides/security-in-piwik#checklist)
* [ ] [Wording review done](https://developer.matomo.org/guides/pull-request-reviews#translations-wording-review-done)
* [ ] [Code review done](https://developer.matomo.org/guides/pull-request-reviews#code-review-done)
* [ ] [Tests were added if useful/possible](https://developer.matomo.org/guides/pull-request-reviews#tests-were-added-if-usefulpossible)
* [ ] [Reviewed for breaking changes](https://developer.matomo.org/guides/pull-request-reviews#reviewed-for-breaking-changes)
* [ ] [Developer changelog updated if needed](https://developer.matomo.org/guides/pull-request-reviews#developer-changelog-updated-if-needed)
* [ ] [Documentation added if needed](https://developer.matomo.org/guides/pull-request-reviews#documentation-added-if-needed)
* [ ] Existing documentation updated if needed