ga-server

v0.0.6
Google Analytics API for Node.js.
analytics

Google Analytics API

NPM version

Google Analytics API for Node.js.

Installation

$ npm install ga-server

Usage

Create a new instance.

var GoogleAnalytics = require('ga-server');

var ga = new GoogleAnalytics({
  id: '',
  clientEmail: '',
  privateKey: ''
});

API

See here for more info.

startDate(date)

Alias: start

endDate(date)

Alias: end

metrics(metrics)

dimensions(dimensions)

sort(sort)

filter(filters)

segment(segment)

samplingLevel(level)

startIndex(index)

skip(index)

This is an alias for startIndex(i + 1).

maxResults(max)

Alias: limit

output(output)

fields(fields)

prettyPrint(prettyPrint)

userIp(ip)

Alias: ip

quotaUser(quotaUser)

exec(callback)

License

MIT

npm i ga-server

Metadata

  • MIT
  • Whatever
  • Tommy Chen
  • released 8/4/2014

Downloads

Maintainers