Simple tool for [Google analytics Measurement Protocol] 1
#Usage
Set your tracking Id in ga.js
gaId : 'UA-58883190-0',
Page Tracking
//Page Tracking
ga.pageview(hostname, page, title);
Event Tracking
//Page Tracking
ga.event(category, action, label, value);
Transaction Hit
//Page Tracking
ga.transaction(id, affiliation, revenue, shipping, tax, currencyCode);
Item Hit
//Page Tracking
ga.item(transactionID, name, price, quantity, code, variation, currencyCode);
Social Interactions
//Page Tracking
ga.social(action, network, target);
Exception Tracking
//Page Tracking
ga.exception(description, isFatal);
User Timing Tracking
//Page Tracking
ga.timing(category, variable, time, label);
App / Screen Tracking
//Page Tracking
ga.screenview(appName, appVersion, appId, screenName, appInstallerID);
Requires jQuery 1.x or higher.