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:
- Date since logging started
- Number of visits, and number of visits with any clicks
- Page visit counter (one count per visit)
- Median visit duration per page [s]
- All clicks on links
- Preceding Page Probability (P3) - likelihood a page was opened during a visit before a given target page
- All logging
Your current visit in clicks.