It's super-simple to track custom stats with node.js and StatHat. First, install the StatHat npm module:
$ npm install stathat
Include the module in your code:
var stathat = require('stathat');
Make calls to StatHat. You do not need to create the stats first using the web interface.
stathat.trackEZCount("steve@stathat.com", "messages sent - female to male", 1, function(status, json) {});
That's all there is to it.
© 2011-2017 Numerotron Inc