pushlytics
v0.0.1
Published
Simple server to serve a pixel and record metrics in a LevelDB instance
Downloads
2
Readme
pushlytics
Simple server to serve a pixel and record metrics in a LevelDB instance
install
$ npm install -g pushlytics
usage
usage: pushlytics [-hV] [-p port] [-r route] [-d dbpath] [-n dbprefix]
example
$ pushlytics -p 8888 -r '/path/to/pixel.gif' -d /data/pixel -n analytics
All values in the query string are serialized into a JSON
string and stored with its key being a call to Date.now()
$ curl localhost:8888/path/to/pixel.gif?user=1234&event=pageload
Use something like lev or ldb to read from the database on the command line or read directly using level and sublevel.
license
MIT