Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple visitor tracking application powered by node.js.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Tracking out site clicks.
.gitignore q
LICENSE-MIT q
README.md q
app.coffee q
config.coffee q
package.json Updated

README.md

Introduction

A simple visitor tracking application powered by node.js.

Configuration and installation

Change the port and log location in the file config.coffee

exports.config = 
  http:
    port: 3002
  log:
    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 {
  server 127.0.0.1:3200;
}

Embe the JavaScript tracking code on your webpages:

<script type="text/javascript" src="/_/_.js"></script>
Something went wrong with that request. Please try again.