0.0.4 • Published 14 years ago
kissmetrics v0.0.4
node-kissmetrics
A KISSmetrics library for node.js
Usage
Basically, you simply create a new KM Client instance,
var kissmetrics = require('kissmetrics')
var kmClient = new kissmetrics({ key: KM_KEY });
and then issue commands using the provided methods,e.g.:
// Creating an alias
kmClient.alias(km_ai_decoded || identity, [username, email], callback);
// Recording an event
kmClient.record(km_ai_decoded || identity, 'signed up', callback);
etc.
For more information / documentation on how to use the methods, I suggest you take a look at the source code ; all the methods are accompanied by proper jsDocs.