Take the 2-minute tour ×
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 https://github.com/tysonmatanich/GetDevicePixelRatio 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

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.