Platform independent js SDK for tracking via google analytics HTTP interface
Usage:
ga.init({
trackingId: 'UA-12345678-99',
appName: 'My app',
appVersion: '1.0.0.0'
}).trackSession(true);
ga.trackView('main_view');
ga.trackEvent('Event category', 'Event action');