Adds the Matomo tracking system to your website.
Matomo is an Open Source analytics tool to track
This module is compatible with Matomo 3.x and 4.x.
- Matomo installation
- Matomo website account
- Install this module using the official Backdrop CMS instructions
In the settings page enter your Matomo website ID.
You will also need to define what user roles should be tracked.
Simply tick the roles you would like to monitor.
HTML footer can confirm this by viewing the page source from
HTTP URL vs. HTTPS URL
If your website has https turned on, it is necessary that the Matomo install
also has https turned on. This prevents "mixed content" warnings in browsers.
It's absolutely OK and actually recommended that both url settings use https -
if your Matomo install has it.
Browsers load content via https from within a http page, but refuse to load http
content from within a https page.
- Matomo HTTP URL:
- Matomo HTTPS URL:
One example for custom variables tracking is the "User roles" tracking. Enter
the below configuration data into the custom variables settings form under
Name: User roles
Name: User ids
More details about custom variables can be found in the Matomo API documentation
textarea. These can be found on various blog posts, or on the
official Matomo pages.
An example for "Code snippet (before)":
This disables all tracking cookies for Matomo (GDPR, to avoid the necessity of a
cookie consent banner).
To speed up page loading you may also cache the matomo.js
file locally. You need to make sure the site file system is in public
Bugs and Feature requests should be reported in the Issue Queue
- Ported to Backdrop CMS by Joseph Flatt (https://github.com/hosef).
- Maintained for Drupal by Alexander Hass (https://www.drupal.org/u/hass).
- Initial Drupal development by Alexander Hass (https://www.drupal.org/u/hass).
This project is GPL v2 software. See the LICENSE.txt file in this directory for