@m0uH opened this Issue on February 23rd 2017

I think it's really confusing if UHD devices like 4k monitors and smartphones get listed under visitor devices with the "wrong" resolution. As stated in #10296 it does make sense from a website point of view but in this way you can't differentiate between HiDPI devices and normal devices. E.g. it could be worth or necessary to provide images on a website with higher resolutions if more and more users with HiDPI displays are going to visit a website. With the current state this could not be tracked.

A solution could be to simply record both, the real screen resolution, which should also be presented under the device informations, and the "actual" resolution / viewport size.

@tsteur commented on February 23rd 2017 Member

A devicePixelRatio report could be good as well 👍

@johsin18 commented on July 23rd 2018

So I have implemented a plugin for reporting statistics on the device pixel ratio here:
https://github.com/johsin18/DevicePixelRatioMatomoPlugin

It does not change the screen resolution report at all. This is how it should stay IMHO, it would make sense though to rename "Screen Resolution" to "Screen Size (in CSS pixels)".

A code review of my plugin by an expert would be appreciated. I'm currently testing it on my private Matomo instance, it seems to work fine. If everything goes well, I would enroll it to the Marketplace in a week or so.

@johsin18 commented on July 30th 2018

I have published the plugin now. @tsteur @sgiehl a code review would still be appreciated.

Powered by GitHub Issue Mirror