Skip to content

Instantly share code, notes, and snippets.

@alextea alextea/gist:4586740
Created Jan 21, 2013

Embed
What would you like to do?
Javascript snippet to track pixel density ratio.
// 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
You can’t perform that action at this time.