I found this script that will track the page zoom. I’ve tested it with a consol.log() to confirm the results are accurate and that script is working. When I add that value in my google event tracking code I don’t see it coming into google analytics. Is there something wrong with how i’m tracking my event?
// Track page zoom level
var zoomLevel = DetectZoom.zoom();
$(document).ready(function() {
_gaq.push(['_trackEvent', 'Site Info', 'Zoom Level', zoomLevel]);
});
The optional label parameter for
_trackEventis supposed to be a string, and can cause_trackEventto fail silently if it’s an int. TryAlso, I’d suggest using the optional nonenteraction parameter so the
_trackEventcall doesn’t affect your bounce rate: