npm install --save docusaurus-plugin-matomo
docusaurus.config.js
module.exports = {
plugins: [
'docusaurus-plugin-matomo',
],
themeConfig: {
matomo: {
matomoUrl: 'https://your.matomo.instance/',
siteId: 'ID',
phpLoader: 'matomo.php',
jsLoader: 'matomo.js',
},
},
};