A poor man's Google Analytics using node.js and Redis
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
app.js
package.json
pixel.gif

README.md

#dissect A poor man's Google Analytics

Super simple, non production ready web analytics node.js app, in the vein of Google Analytics, Piwik, AWStats and Webalizer.

Tracks page impressions and visits (30 minutes sessions) per day, week and month.

Be sure to start this with the following environment variables:

REDISSECRET="whathappensinvegasstaysinvegas"
REDISPORT="1337"
HOST="example.com"
PORT=80
REFERERURL="www.example1.com"

Put this in the page you want to track:

<script type="text/javascript">
  (function() {
    var pxl = document.createElement('img');
    pxl.async = true;
    pxl.src = 'http://www.example2.com' + "?time=" + Math.random();
    pxl.width = 1;
    pxl.height = 1;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(pxl, s);
  })();
</script>