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

Track visitor preferences with Matomo #18969

Open
sjvolkmann opened this issue Mar 18, 2022 · 3 comments
Open

Track visitor preferences with Matomo #18969

sjvolkmann opened this issue Mar 18, 2022 · 3 comments
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins.

Comments

@sjvolkmann
Copy link

Many websites also have settings for people who are not logged in, such as dark theme or larger font size. It would be useful and helpful if Matomo could summarize their use in statistics.

@sgiehl
Copy link
Member

sgiehl commented Mar 18, 2022

Hi @killarnee. You can achieve that by using custom dimensions: https://matomo.org/docs/custom-dimensions/

@sgiehl sgiehl closed this as completed Mar 18, 2022
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Mar 18, 2022
@sjvolkmann
Copy link
Author

@sgiehl Thanks, I've tried it, but I think it fits better with the built-in standard metrics like display width. I mean settings like prefers-color-scheme, I don't know if you can track this with JavaScript at all, but it's worth a try.

I would be happy if this idea would be pursued further.

@sgiehl
Copy link
Member

sgiehl commented Mar 22, 2022

@killarnee Tracking CSS properties with javascript is possible. But it also requires some special css, which can be access by the javascript. E.g. some sort of element that is only visible for certain css media selectors and then check in javascript if it is visible or not. Nevertheless this wont be something we will include in core, but this might be a candidate for an additional plugin.

@sgiehl sgiehl reopened this Mar 22, 2022
@sgiehl sgiehl added c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. and removed answered For when a question was asked and we referred to forum or answered it. labels Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins.
Projects
None yet
Development

No branches or pull requests

3 participants