I was using Matomo for multiple different sites. But, it slows sites down a little, and all of the sudden after upgrading it, I got a lot of errors and it just stopped working well.
Also, I got to thinking, all I personally care about is every now and then seeing, roughly, how many people are visiting. Plus, if you get rid of all the fancy tracking stuff, you're instantly more GDPR compliant.
So, I've added TinyAnalytics to my Flarum and some other sites. Works great! You just extract the directory/files somewhere, and add the following to the end of your Flarum index.php. Not sure if this will get overwritten during an upgrade. But, it's just two lines of code so, if it gets overwritten, I just add this back:
include '/var/www/TinyAnalytics/tracker.php';
record_visit('mywebsite');
Then I can visit a page and see: