Neverending Perpetual Motion
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

visitor-tracking

0.0.1 • Public • Published

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>

Keywords

none

install

npm i visitor-tracking

Downloadsweekly downloads

1

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar