Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

In Google Analytics, "Screen Resolution" is a default dimension under Audience > Technology > Browser & OS reports, but pixel density is nowhere to be found.

How can I use Google Analytics to determine how many of my visitors are using Retina or other high-def displays?

share|improve this question

2 Answers 2

Google Analytics does not support pixel ratio by default but you can add it with script for a custom variable. See for more details.

share|improve this answer

Lets turn that around and ask why would you care?

Assuming it's to determine if image/icon size is an issue, I've recently tossed all the multiple-resolution icons and replaced them with SVG graphics. Logos and larger non-vector images are all 2x size in a plain <img> tag.

Positive side effects are faster loads (the SVG is in the main style sheet) and easier modification. Haven't encountered any negative side effects yet.

If IE8 compatibility is required I will run one sprite file - make one page with all your icons and you can just screencapture it for instant sprites.

share|improve this answer
You should care as if there's no high pixel ratio users, then sending everyone 2x sized images is a grand waste of everyone's time and resources. Also if everyone happens to be using 3x pixel ratio devices, then you still aren't providing full res pictures to your user base. –  andrewb Mar 26 at 22:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.