Progress

2021-11-18

Took a look at the documentation to update it for the new implementation of analytics. The documentation doesn’t really need to change. Instead, I’ll just mirror the existing documentation when I install Matomo for them. I’ll need to pay attention to the path, the credentials, and the dashboard layout. Reference this document:

Transclude of esci-website-maintenance-guide-20211117.docx

2021-11-17

I set up an on-prem analytics solution locally. Rather than rolling it out by just copying it over, we will use this as a dry run and re-run the setup on their infrastructure.

Matomo is the analytics solution we used. I installed it by downloading and uncompressing. Then, I copied the contents to the web root (/drupal/ in our local project).

I tried to hit that URL but got an error. This was because the .htaccess was blocking this file. I added this line to grant access:

  RewriteCond %{REQUEST_URI} !^/matomo/(.*)\.php$

After that, I started the setup. When it got to the database portion of the setup, I went over via PHPMyAdmin and created the database along with the user. I entered those details along with the host (database for the local Docker infrastructure) into the setup.

Once the app setup was complete, I had to configure the Drupal module. This requires getting the site ID. It seems the first site on an on-prem installation is always ID 1, but you can verify by hitting the cog in the top right of the Matomo interface and going to “Websites” “Manage.” This will list any sites along with their ID.

After this is configured, I tried hitting the site via Brave, but it must be doing something to block the tracking even though my Brave shield was off. Switching to Safari logged a hit.