Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.41 KB

File metadata and controls

15 lines (8 loc) · 1.41 KB

FAQ

Shouldn't the plugin analyze the pure device pixel ratio, without taking the zoom into account?

I do not think that you can query the browser for either the full page zoom or the pure pixel device ratio, window.pixelDeviceRatio gives you both at the same time.

What if the device pixel ratio changes during the visit (e.g. by the user changing the full page zoom level)?

The plugin records the device pixel ratio at the beginning of each visit, later changes are ignored. I might think about an option for taking the value for the last action instead, if you provide me with very good arguments for that.

The exception to this is if the device pixel ratio is initially unknown (for example if the first tracking event of a visit is generated server-side via the API). In this case the plugin will record the first known value from a subsquent tracking event in the visit.

An unknown device pixel ratio is reported for all visitors. What is wrong?

This plugin needs to add a snippet to the JavaScript code that make the browser report visitor actions. To allow this addition, matomo.js must be writable in you installation ("Writable JavaScript Tracker" in System Check must be checked). As the script might be cached on client side, it might take a while until all clients will correctly report the device pixel ratio. If you report the actions using some other API, add "devicePixelRatio=1.23" to the arguments.