I am not big on the Google Ecosystem and realized I would like some sort of analytics embedded on my static sites to track which posts are doing well and which aren’t doing so hot. You’re being tracked! Does this scare you because it sure as hell scarese me! That’s were I found Matomo to take the place of Google Analytics.
It took me about 12 minutes to get a docker-compose file up and running.
Docker for the win. Matomo supports a docker image!
It requires a mysql backend but that’s easy enough to spin up using the latest mariadb image!
Created this based off of my kanboard dockerfile and I had no problems. Also, subtle brag I got this spun up on the first try.
docker-compose up and it worked.
JS Tracking API
Right now I am not using the tracking API, but I am for sure going to check it out?
Tracking HTTP API
Still haven’t figured this out either… I will come back around to it eventually?
HTTPS Required, but for the test environment this was a little annoying.
Make sure your firewalls aren’t busted.
sudo ufw allow 80 and then
sudo ufw allow 443 to allow traffic through.
The NGINX Configuration was really annoying until I realized that it was the firewall causing the issue.
NGINX Let’s Encrypt
apt-get install python-certbot-nginx
sudo certbot --nginx -d matomo.itsltns.io
My Own Demise
I was using UblockOrigin and it blocked the script from loading, nice. I disabled the ublock script from taking place and the tracking worked.