We use Google Analytics to track events, but events don't seem to track 100% of the time. Sometimes they track, and sometimes not. We do not exceed the quota limit per session (at most, we have 20 events per session). This should not be a problem.
Tracking does not work consistently on our regular website, as well as on our version of the HTML5 mobile application, although it is much less reliable with the version of the HTML5 mobile application.
code:
var share_url = 'http://twitter.com/intent/tweet?text='; // Log in GA _gaq.push( ['_trackEvent', 'Share Twitter', ''] ); // Open URL in browser open_external( share_url + encodeURIComponent( msg ) ); function open_external( url ) { window.open( url + '#phonegap=external' ); }
source share