Analytics are important for nearly every website, but if you're a fan of free and open source software, the idea of letting Google monitor all of your site's traffic might not sound too good. There is, however, another option. You can install and host your own analytics with Matomor(formerly Piwik). Matomo is an open source PHP application that you can run yourself, putting you in control of your analytics platform. Plus, Matomo actually respects your users and doesn't try to break tracking protection.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-matomo-open-source-analytics-on-ubuntu-18-04-bionic-beaver-linux