function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sam CameroSam Camero 

Stats of most commonly used desktop screen resolutions when viewing Salesforce

Are there any stats breaking down what desktop screen resolutions users are viewing Salesforce Lightning and how many for each? Would be interested to see the breakdown so we can design/dev accordingly for the most used resolutions but still be responsive.
Marzorati ClaudioMarzorati Claudio
Hi Sam,

I think that only by using Analytics you can collect this info with some report.

Otherwise you can collect info by tracing (with Javascript) these info and collect them in a custom object in Salesforce.
For sure you have to colect a lot of data before you can use them, but it could be a simple solution for your use case.

For example some data that you can collect
 
var width = window.innerWidth;
var height = window.innerHeight;

var device = $A.get("$Browser.formFactor");
console.log('Mobile? ' + device != 'DESKTOP');

Claudio
Sam CameroSam Camero
Thanks Claudio for sharing. Very much appreciated. I'll share with the dev team. 
Marzorati ClaudioMarzorati Claudio
For any othet point of sharing, don't esithate to contact me

Please mark as best answer if you reach your goal
Claudio