Are you interested in client-side JavaScript? Read this for client-side information.

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.

Learn how to make your app data-driven with StatHat


© 2011-2017 Numerotron Inc