Website analytics are essential for understanding visitor behaviour and making data-driven decisions to improve website performance.
However, many popular analytics tools like Google Analytics raise concerns about user privacy and data ownership.
If you're concerned about data privacy, you may seek an alternative to Google Analytics.
One such alternative is Umami Analytics.
Umami is a privacy-focused web analytics tool designed to respect user privacy. It doesn't collect any personally identifiable information (PII) about your visitors, and it doesn't track users across your website or other websites.
You may benefit from using UmamiAnalytics because it is privacy-focused, data ownership, simplicity, speed, and open-source.
Those who use WordPress might find it easy to add the tracker script to WordPress. But you might wonder how to opt out of the tracker when reviewing website pages.
There is an easy way for you and other users not to be tracked by the Umamiscript.
First, you will need to install a code snippet plugin like WPCode. We can add the script tracker using this plugin.
Using this plugin, we can only show the script logged-in users. Scroll down to find the 'Smart Conditional Logic' section. Toggle on this, then on the condition set to 'hide'.Lastly, you can just choose 'logged-in', 'is' and 'true'. Make sure you set this snippet active and save.
Now, you can access the main domain front-end as long as you are logged in.