A simple webserver and script for tracking basic, non-intrusive site statistics.
Go to file
Andrew Lalis 133d6576a7 Upgraded handy-httpd to v8.1.0 2024-01-25 20:24:27 -05:00
source Add --last-days arg, and fix user agent windowing. 2023-11-05 10:29:00 -05:00
test-site updated readme, improved implementation. 2023-10-04 13:30:00 -04:00
.gitignore updated readme, improved implementation. 2023-10-04 13:30:00 -04:00
LICENSE Initial commit 2023-10-03 11:04:59 -04:00
README.md updated readme, improved implementation. 2023-10-04 13:30:00 -04:00
deploy.sh Refactored the report generation feature quite a bit. 2023-11-05 10:18:12 -05:00
dub.json Upgraded handy-httpd to v8.1.0 2024-01-25 20:24:27 -05:00
dub.selections.json Upgraded handy-httpd to v8.1.0 2024-01-25 20:24:27 -05:00
sitestat.js updated readme, improved implementation. 2023-10-04 13:30:00 -04:00
sitestat.service Added improved reporting and utils 2023-10-05 12:35:52 -04:00

README.md

sitestat

A simple webserver and script for tracking basic, non-intrusive site statistics using a websocket.

Simply run sitestat on your server, and add <script src="path/to/sitestat.js" async></script> to the <head> of any page you'd like to track statistics on.

It will record some basic information about each user's interaction session on each page, and save those sessions into an SQLite3 database for later analysis.

What Information is Collected?

Right now, the following information is collected from each user's session on a page monitored by sitestat:

  • The time they opened the page.
  • The time they closed the page (telling us how long they viewed the page).
  • Their user agent (browser name and associated details).
  • The exact URL they visited.
  • Certain anonymized actions done by the user on the page, like mouse clicks, button presses, copy-to-clipboard, etc. From any action, we simply save the name of the action, and no other information.