I'm attempting to use Gogole Analytics event tracking to track browser viewport size.
I'm using event tracking already in a bunch of other user-initiated places with jQuery and everthing works fine. This doesn't seem to be working though:
I have this at the bottom of my html page:
<script type="text/javascript">
<!--
$(function() {
_gaq.push(['_trackEvent', 'Viewport Width', $(window).width(), $(window).width() + 'x' + $(window).height(), 0, true]);
_gaq.push(['_trackEvent', 'Viewport Height', $(window).height(), $(window).width() + 'x' + $(window).height(), 0, true]);
});
//-->
</script>
Not quite sure why nothing is being registered in Google Analytics. Half the day and nothing tracked. Also, Google analytics has Real-Time event reporting and I'm seeing other events come in but not these.