adikahorvath
3/7/2014 - 1:21 PM

measure retina display

measure retina display

if (window.devicePixelRatio > 1) {
  var retinaValue = window.devicePixelRatio;
  
  console.log(retinaValue);
  _gaq.push(['_trackEvent', 'retinaValue', retinaValue]);
}