Recommended releases

Download Released

Adds the Matomo tracking system to your website.

Matomo is an Open Source analytics tool to track
website traffic.


  • Matomo installation
  • Matomo website account



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.

All pages will now have the required JavaScript added to the
HTML footer can confirm this by viewing the page source from
your browser.

This module is compatible with Matomo 3.x and 4.x.

Custom variables

One example for custom variables tracking is the "User roles" tracking. Enter
the below configuration data into the custom variables settings form under

Slot: 1
Name: User roles
Value: [current-user:matomo-role-names]
Scope: Visitor

Slot: 1
Name: User ids
Value: [current-user:matomo-role-ids]
Scope: Visitor

More details about custom variables can be found in the Matomo API documentation

Advanced Settings

You can include additional JavaScript snippets in the advanced
textarea. These can be found on various blog posts, or on the
official Matomo pages. Support is not provided for any customisations
you include.

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
download mode.


Bugs and Feature requests should be reported in the Issue Queue

Current Maintainers



This project is GPL v2 software. See the LICENSE.txt file in this directory for
complete text.