Metabase is an Open Source business intelligence and analytics tool. It supports a variety of databases and services as sources for data, and provides a number of data querying and processing tools. Have a look at the GitHub repository as well.
And if you want a few alternatives or complimenting tools, I found this list quite useful.
If you are using Google Analytics, or any other Google marketing tool on your website, make sure to read through the “What is gtag.js with Google Analytics and do I need it?” article. It explains the change in the Google Analytics tracking scripts which are slowly rolling out, and provides some insight into the future.
Tracking Token Stripper addon for Google Chrome removes UTM variables from the URL.