Matomo
Integrate Matomo analytics dashboards directly into your Strapi admin panel
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-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"],
...📝 License
Made by TobeyTG ✌️
Install now
npm install strapi-plugin-matomo
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.