a simple pixel tracker for node
A simple pixel-tracker for node.js
Collect some data with parameters, along with the defaults
var tracker =tracker// ..appall'/pixel' trackermiddlewareapp
var tracker =
callback function is called with
result. Multiple callbacks can be used.
pixel-tracker has a few configurable options.
disable_cookies defaults to false
maxAge defaults to 2 days, which may not be desirable based on your use case
A function to be called for each http request which calls
response.end with a 1x1 pixel for every request and then calls all the functions provided with
tracker.use. This works out of the box with express and would also work with any vanilla http server as long as a cookies implementation is provided for the response object (or cookies are disabled)
var tracker =tracker
npm install pixel-tracker
npm install -g tap && npm test