Shynet is a modern, privacy-friendly, and detailed web analytics tool that works without cookies or JS. It’s one of my most successful open source projects. Check out the source code and installation instructions on GitHub.