0.0.1 • Published 12 years ago

googalytics v0.0.1

Weekly downloads
4
License
-
Repository
github
Last release
12 years ago

Googalytics

Simple node module to send custom server-side events to Google Analytics

Heavily influenced by the Gabba project from the guys at the Hybrid Group (http://github.com/hybridgroup/gabba)

Examples

Initialize

var GA = require("googalytics");
GA.initialize('UA-12345678-1', 'someplace.com', function () {
  GA.trackPage('page title', 'pageName', function (err, resp) {
    if (!err, resp.statusCode === 200) {
      console.log('it worked!');
    }
  });
});

What do those variables mean?!

The answers, as per usual, can be learned from the Google: https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting#gifParameters