Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 745 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 745 Bytes

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.