
TL;DR: See title. It's open source and available for free at https://github.com/milesmcc/shynet
Borrowing from the README:
There are a lot of web analytics tools. Unfortunately, most of them come with the following caveats:
Shynet has none of these caveats. You host it yourself, so the data is yours. It works without cookies, so you don't need any intrusive cookie notices. It collects just enough data to be useful, but not enough to be creepy. It's open source and intended to be self-hosted. And you may even find the interface easy to use.
To be clear: Shynet isn't for everyone. It's great for personal projects and small to medium size websites, but hasn't been tested with ultra-high traffic sites. It's also requires a fair amount of technical know-how to deploy and maintain, so if you need a one-click solution, you're best served with other tools.
Anyway, I hope some of you will find Shynet helpful in your projects!