Written by: Robert R. Russell on Tuesday, September 22, 2020.
I discussed migrating from Google Analytics and Jetpack to Matomo in a previous post. Though I haven’t used it for a significant amount of time I am finding it very useful.
There are two ways you can self-host Matomo. As a plugin for WordPress or as an independent web application. The WordPress plugin is the most accessible and most straightforward option for analytics on one WordPress installation. However, if you administer more than one website, the dedicated web application is a better option.
The only real difficulty I ran into was getting GeoIP working. That is due primarily to a lack of Debian packages for the correct PHP extension and no clear subheadings for system managed updates of the GeoIP databases.
#Assuming Matomo installed at /var/www/html/matomo #Assuming geoipupdate places the databases in /usr/share/GeoIP/ cd /var/www/html/matomo/misc/ for DB in `ls /usr/share/GeoIP/*.mmdb` do ln -s /usr/share/GeoIP/$DB ./ done #All .mmdb databases are now linked to the system databases updated by geoipupdate.
©2020 Robert R. Russell — All rights reserved