• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

How to refine AwStats results concerning screen resolution with device-pixel ratio?


I already asked a question concerning the screen resolution statistics, & got a good answer. (Read also FAQ-COM142 on the AwStats page.) Now, we need to refine the results in our company, as there are only five resolutions enlisted with a sixth entry called "Others" that amount currently to about 26%. (If these "Other" resolutions had been only 5%, say, it would not have been a problem.)

Also, it is important for our Web designer to know what kind of device accessed our company Web page. He thinks that the device/pixel ratio would help him when making design decisions.

My question:
a. How is it possible to get more entries in the screen statitics?
b. How can the device/pixel ratio be added to the statistics?

Thanks in advance!Currently displayed screen resolution statistics
Ahmet Ekrem SABAN
Ahmet Ekrem SABAN
  • 2
2 Solutions
Use the MAX value for the device-pixel section you created; see http://www.awstats.org/docs/awstats_config.html#Max

Exact value to increase is MaxNbOfScreenSizesShown = 5
Ahmet Ekrem SABANSenior IT consultantAuthor Commented:
Thank you very much! I entered MaxNbOfScreenSizesShown = 20. This morning, we had in the screen resolution statistics only one single line with 100%, and the only resolution appeared was 1024×768. Now, we try " = 10", as we cannot believe that only one resolution accessed our Web page. To be 100% sure, I also accessed it with my Nokia Lumia 930 that has a different resolution.

Do you have also an idea about the b part of the question?
The b part of your question is actually a bit more complex; as awstats is a log analyzer the first thing you need is to actually have the device pixel ratio data be in the raw log files as far as I am aware that is not the case.

A workaround would be to call the device pixel ratio through javascript (window.devicePixelRatio) and log that data separately to a database for analyses.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now