
Integrate Matomo analytics dashboards directly into your Strapi admin panel
released March 24, 2025
npm install strapi-plugin-matomo
A plugin for Strapi that embeds Matomo analytics dashboards.
Currently only Strapi v5 is supported.
With npm
npm install strapi-plugin-matomoWith yarn
yarn add strapi-plugin-matomoIn 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"],
...Made by TobeyTG ✌️
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
