Skip to content

Instantly share code, notes, and snippets.

@simondahla
Forked from andrewrocco/ga-ratio.js
Last active February 28, 2019 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simondahla/8022148 to your computer and use it in GitHub Desktop.
Save simondahla/8022148 to your computer and use it in GitHub Desktop.
var pixelRatio = (window.devicePixelRatio >= 1.5) ? "high" : "normal";
ga('send', 'pageview', {'dimension5': pixelRatio});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment