I'm trying to track page clicks for my app. For this, i'm using Google Analytics. On App load, it is counting the users properly. But, i need to track user's usage of app, in which page, user has visited, etc. details.
My code for tracking page view on render is as follows:
And when user enters each view, in painted listener, i've added following code snippet.:
var _gaq = _gaq || ;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script'); s.parentNode.insertBefore(ga, s);
But, i was not able to see this tracked event data in my Google analytics account page.
_gaq.push(['_trackEvent', 'LoginForm', 'clicked']);
Please suggest me how to achieve tracking each view hit.