This a module to make interacting with the statsmcfly.com API easy.
npm install statsmcfly
var statsmcfly = require('statsmcfly');
statsmcfly.settings({
apikey: 'myapikey'
});
statsmcfly.track({
event:'new user sign up',
type: 'c',
value:'1'
}, function(err, response) {
console.log("err: " + err);
console.log("response: " + response);
});
-
apikey
: your api key
-
event
: name of event to track -
value
: value you want to store. can be numbers, strings or json objects -
type
:c
for count orv
for value, optional -
timestamp
: unix timestamp optional
-
event
: name of event to return results for.