google-analytics-js

JavaScript mini library to track usage of injected script via Google Analytics.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
google-analytics-js
430.1.25 years ago9 years agoMinified + gzip package size for google-analytics-js in KB

Readme

google-analytics-js
JavaScript mini library to track usage of injected script via Google Analytics.
This project is a mini JavaScript library to track using of your bookmarklets or JavaScript includes when injected in to another web site.
The function can be called multiple times, so it could be a conditional call or it could be used to track Ajax requests within your page.
Usage
gaTrack('UA-123456', 'yoursite.com', '/js/script.js');

Automatically exported from https://code.google.com/p/google-analytics-js on 2015-07-26.
Originally by @remy.