Page MenuHomeGitPull.it

Setup Matomo Border Radio
Closed, ResolvedPublic2 Points

Description

It would be amazing to have a Matomo instance for Border Radio to record some stats and metrics for the website.

It may be hosted in Reyboz for free.

Event Timeline

valerio.bozzolan triaged this task as Normal priority.
/etc/apache2/sites-available/matomo.border-radio.conf
<virtualhost *:443>
	ServerName matomo.border-radio.it

	Include /etc/apache2/my-includes/matomo.conf	

	SSLEngine on
	SSLCertificateFile      /etc/letsencrypt/live/matomo.border-radio.it/cert.pem
	SSLCertificateKeyFile   /etc/letsencrypt/live/matomo.border-radio.it/privkey.pem
	SSLCertificateChainFile /etc/letsencrypt/live/matomo.border-radio.it/chain.pem
</virtualhost>

<virtualhost *:80>
	ServerName matomo.border-radio.it

	Redirect 301 / https://matomo.border-radio.it/
</virtualhost>

Issued certificate:

letsencrypt certonly --webroot --webroot-path=/home/www-data/piwik -d matomo.border-radio.it

Then added a trusted host:

/home/www-data/piwik/config/config.ini.php
trusted_hosts[] = "matomo.border-radio.it"

Installed this plugin in WordPress:

R49 WordPress Matomo

Configured:

/home/www-data/border-radio.it/debian-wp-config.php
// See https://gitpull.it/T587
define( 'MATOMO_PATH', 'https://matomo.border-radio.it/' );
define( 'MATOMO_SITE', 14 );