Integrate Matomo analytics dashboards directly into your Strapi admin panel

Latest version

v1.0.1

released March 24, 2025

npm install strapi-plugin-matomo
Logo - Strapi Matomo plugin

Strapi v5 - Matomo plugin

Add your Matomo analytics dashboard to Strapi

GitHub package.json version Monthly download on NPM

A plugin for Strapi that embeds Matomo analytics dashboards.

Supported Strapi version

Currently only Strapi v5 is supported.

Installation

With npm

npm install strapi-plugin-matomo

With yarn

yarn add strapi-plugin-matomo

In the config/plugins.ts file add:

module.exports = ({ env }) => ({
  // ...other plugins
  matomo: {
    config: {
      widgetURL: env('MATOMO_WIDGET_URL'),
    },
  },
});

You can get the widgetURL in Matomo by going to _Site > Settings > Platform > Widgets It looks something like this:

https://your-matomo-instance.com/index.php?module=Widgetize&action=iframe&widget=1&idSite=1&period=day&date=today&token_auth=abc123

☝️ This link allows you to embed Matomo reports on other websites or share them publicly, depending on permissions.

☝️ If you're using the strapi::security middleware with CSP enabled, make sure to allow your-matomo-instance.com as a frame-src. Your config/middlewares.ts should look something like:

 {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
            "frame-src": ["https://your-matomo-instance.com"],
        ...

📝 License

MIT License

Made by TobeyTG ✌️

Submit your content

Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.

Submit
Submit your content