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

Wrong device resolution (almost always 360x640) #11569

Closed
ghost opened this issue Mar 31, 2017 · 7 comments
Closed

Wrong device resolution (almost always 360x640) #11569

ghost opened this issue Mar 31, 2017 · 7 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ghost
Copy link

ghost commented Mar 31, 2017

I've noticed that there are an excessive number of devices with resolution 360x640, which is obviously wrong. This resolution made me even more suspicious that something is wrong, because it appears with devices that run some high-end devices with relatively recent Android versions, which seems impossible that they actually use such low resolution screens.

Upon further investigation, I found that indeed the 360x640 is completely wrong.

For example, an HTC One M8 device running Android 6 Marshmallow with a resolution of 1080x1920 is reported as 360x640. Same problem with the Samsung Galaxy S7 running Android 6.0.1 with a resolution of 1440x2560, again reported as 360x640.

@mattab
Copy link
Member

mattab commented May 8, 2017

Thanks for the report. Would you maybe be able to troubleshoot further this issue i case you are familiar with JavaScript and could debug what is wrong with the tracker?

@mattab mattab added this to the Backlog (Help wanted) milestone May 8, 2017
@ghost
Copy link
Author

ghost commented May 10, 2017

I am unable to run piwik at the moment, because it does not run on CentOS 7.3 (which is the latest version), hopefully I'll have that sorted out soon.

@mattab
Copy link
Member

mattab commented Jun 21, 2017

Have you made some progress @jsmad
what is not working with Centos 7.3 exactly?

@ghost
Copy link
Author

ghost commented Jun 30, 2017

piwik 3.0.4 will not run under CentOS 7.3 because the default PHP version of CentOS is too old (5.4.16).

unfortunately, due to various reasons, I am not in liberty to install a newer PHP because my servers are certified to run official packages only, thus 5.4.16 will probably be the only version I'll be able to run under CentOS 7.3. I am not sure what 7.4 will use, probably another 5.4.x release.

what is sad, is the fact that I couldn't find anything specific in the piwik code that requires a newer version, so maybe I'll make a patch for myself to force piwik 3.0.4 to run under php 5.4.

@mattab
Copy link
Member

mattab commented Jul 10, 2017

what is sad, is the fact that I couldn't find anything specific in the piwik code that requires a newer version, so maybe I'll make a patch for myself to force piwik 3.0.4 to run under php 5.4.

It would be more sad to patch Piwik to run on an old insecure PHP version and waste time on this... We very much recommend using a better host / server setup and use modern software 👍

@mneudert
Copy link
Member

Regarding the screen sizes shown I don't think the values you are seeing are wrong. At least when tracking a website.

I had the opportunity to look at a physical Galaxy S7 Edge and the numbers are correct regarding the pixels used for website styling.

If you take a look at https://mydevice.io/devices/ you can see there is not only "CSS height" but also "physical height". The difference made up due to the "pixel ratio". And the S7 actually displays a website with the styles defined for a 360 pixel width while using all it's physical pixels do make everything look crips and.

#11405 is probably the issue you want to track for getting the tracking information extended to include the relevant information.

@sgiehl
Copy link
Member

sgiehl commented Sep 10, 2017

Thanks for the explanation @mneudert. Closing in favor of #11405

@sgiehl sgiehl closed this as completed Sep 10, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants