Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

charlesschaefer/etrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REAME

eTrack is a nodejs application to capture basic metrics for your software.

You can set the links your user accessed and actions he executed by calling a function that saves the action in a mongodb collection.

By now, it only saves the information. In a near future we will have an analytical module.

eTrack depends expressjs and mongoose in the server. The client side is stand alone, although it has a optional dependecy of jQuery for automatic links tracking.

Usage

To use eTrack you will need nodejs and npm to be installed. To start your server:

$ git clone https://github.com/charlesschaefer/etrack.git etrack
$ cd etrack
$ npm -d install
$ node app.js
Express server listening on port 3030 in development mode

In your application HTML, you need to call the etrack.js file:

<script type="text/javascript" src="http://localhost:3030/javascripts/etrack.js"></script>

You can listen to your user actions automatically by using the eTrack's trackLinks() function:

<script type="text/javascript">
	var track = new eTrack('http://localhost:3030/track/');
	track.trackLinks('action'); // will catch the data-action="" attribute
</script>
<!-- ..... -->
<a href="an_awesome_page.html" data-action="awesome_page">Visit this awesome Page</a>

You can also trigger an action manually, calling the save() method:

<a href="#awesome_action" onclick="track.save('awesome_action')">Be surprised</a>

About

eTrack is a nodejs scripts that tracks the user actions inside your software. The action may be a page accessed or just a click in something, a mouseover listener, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors