0.0.6 • Published 10 years ago

ga-server v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago