Super basic and simple analytics that just works.
Clone this Github repo to a folder you have on your server, install Flask, and run python analytics.py
.
Add this to your website's HTML:
<img src="your_ip:your_port" style="display: none">
To see the requests coming in at real time, you can do the following if you're in the working directory.
tail -f logfile.txt
I created this as a 20 minute long hack to get analytics on my website but thought it might be useful to make this free and open source. The most important thing for me is to make the user experience nice. Something as simple as Google Analytics but a lot less evil.
This code is waving the FOSS flag high and proud. Check the LICENSE for the full text of the MIT license.