Matomo logo

This module provides an API to retrieve statistics from the open source Matomo web analytics platform. This module is intended for developers to integrate statistics in their projects. It has no UI for end users or site builders.

Requirements

  • A Matomo server
  • Matomo server configuration details:
    • Authorization token
    • Site ID (e.g. 1)
    • Secure (HTTPS) Matomo server URL

The Matomo reporting API PHP library PHP library is automatically installed when using composer.

For more information see the README

Recommended modules

It is recommend to use the Matomo Analytics module.
The Matomo reporting API module is usually used as an extension of the Matomo Analytics module but can also be used standalone. In case the Matomo Analytics module is enabled you can reuse its configuration so that the user doesn't need to input the same settings twice.

Security

Make sure that the authentication token is stored in a safe place and that for communication with the Matomo server a secured HTTPS URL is being used.

For detailed security information see the README

Examples

See the matomo_reporting_api_example module for an example implementation of a block that shows some Matomo statistics.

Supporting organizations: 

Project information

Releases