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

Compatibility with windows 11? #83

Open
Tennyleaz opened this issue Mar 15, 2022 · 0 comments
Open

Compatibility with windows 11? #83

Tennyleaz opened this issue Mar 15, 2022 · 0 comments

Comments

@Tennyleaz
Copy link

Tennyleaz commented Mar 15, 2022

We used to track Windows versions like this:

int osMajor = Environment.OSVersion.Version.Major;
int osMinor = Environment.OSVersion.Version.Minor;
string architecture = Environment.Is64BitOperatingSystem ? "; x64" : "; x86";
piwikTracker.SetUserAgent("Mozilla/5.0 (Windows NT " + osMajor + "." + osMinor + architecture + ")");

Could we also set the user agent to Windows 11 in something like:

piwikTracker.SetUserAgent("Mozilla/5.0 (Windows NT 11.0; x64 )");

So we could correctly differ Windows 11 from 10 in Matomo web UI?

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

1 participant