A simple pixel-tracker for node.js
Collect any data with parameters, along with some defaults
var tracker = require('pixel-tracker')
tracker.use(function (e, res) {
console.log(res)
/*
{
ua: { browser: 'Chrome', version: '13.0' },
cookies: { _tracker: '0rc8ba4t9fgjp9hz' },
host: 'localhost:3000',
domain: 'localhost',
path: '/pixel',
geo: { ip: '127.0.0.1' }
language: 'en-US,en;q=0.8',
referer: ''
}
*/
})
// ..
app.all('/pixel', tracker.middleware)
app.listen()
npm install pixel-tracker
MIT