Implementing analytics on any web platform is not a difficult job but keeping it privacy-focused is. Considering the privacy of individual users, we should always think twice before considering any platform. I would like to divide this article into two main categories. First, we will talk about some industry-leading analytics tools, second will jump on open source solutions.
Some sites are enabled with Google Ads as well as Google Analytics which is helping the Google algorithm to get the most out of it. Google keeps cookies on your browser which helps Google to track your activities, even on other sites.
Going with free options like Google, you might not be sure how Google will use your data. Since you took free service you need to pay the cost by data.
On the other side, we have some paid options like Adobe Analytics. It comes with great features, but having adobe analytics on a web platform is not an easy job for small businesses. Adobe comes with its license cost, which is not easy to procure for small businesses.
Mostly these tools keep your data on their own servers (Eg. SAAS), so you don't have direct control over your data. In some cases it is fine, but in countries like Germany where data privacy laws are very strong you need to inform end-users that all information you are taking from them and where it is going to be used.
I recently came across an open-source analytics tool called umami.is which is a self-hosted solution. It gives you full access to the data which is being collected from end-users. By default, this tool collects data in an anonymous manner, without creating any third-party cookie.
Their goal is to provide you with a friendlier, privacy-focused alternative to Google Analytics and a free, open-sourced alternative to paid solutions.
Like Umami, Plausible is slightly new in open-source analytics tools. It is fast, and only collects a small amount of information - that includes numbers of unique visitors and the top pages they visited, the number of page views, the bounce rate, and referrers. Plausible is simple and very focused.