Track the users view your webpage, generate visit logs.


A simple visitor tracking application powered by node.js.

Change the port and log location in the file

exports.config = 
    port: 3002
    location: "./log.txt"

Install the depended modules:

sudo npm install -d

Start the application:

npm start

Stop the application:

forever stopall

Add more configuration into Nginx:

# including in server block
location /_/ {
  proxy_pass      http://tracking_app/;
  proxy_redirect off;

# outside of server block
upstream tracking_app {

Embe the JavaScript tracking code on your webpages:

<script type="text/javascript" src="/_/_.js"></script>