Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (15 sloc) 0.342 kb

Node-GA

Server side google analytics

Install

npm install ga

Usage

var ua = "UA-XXX";
var host = 'nodega.jga.me';
var ga = new GoogleAnalytics(ua, host);
ga.trackPage('testing/1');
ga.trackEvent({
    category: 'Videos',
    action: 'Video Loading',
    label: 'Gone With the Wind',
    value: 42
});
Something went wrong with that request. Please try again.