a simple pixel tracker for node.js
JavaScript
Pull request Compare This branch is 20 commits behind tblobaum:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
index.js
package.json
readme.md

readme.md

pixel-tracker

A simple pixel-tracker for node.js

Build Status

Example

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()

Install

npm install pixel-tracker

License

MIT