Created
January 21, 2013 15:13
-
-
Save alextea/4586740 to your computer and use it in GitHub Desktop.
Javascript snippet to track pixel density ratio.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// track pixel density ratio | |
if (window.devicePixelRatio) { | |
_gaq.push(['_setCustomVar', 11, 'Pixel Ratio', String(window.devicePixelRatio), 2 ]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment