Homebrew analytics

See the GitHub page for code for making your own website analytics for logging page views or events such as link clicks.

Also here: Zip file with the PHP files (subdirectory to be saved in the website root directory) and the script to be placed in the site's pages' header. Apart from that, in an ideal world, if the site has a MySQL database (I'm using Dreamhost's), then just changing the passwords in logging_passwords.php and running the database-reset PHP page (/analyticsphp/reset_VisitLogs.php?password=xxx) should be all that's needed to have it running.

The output page (/analyticsphp/show_visitlogs.php?password=xxx) currently shows:

Your current visit in clicks.