Matomo

Matomo (formerly Piwik) is an Open Source Web Analytics software that you can self-host on your own infrastructure.