Add matomo tracking script

This commit is contained in:
Serafeim Chatzopoulos 2023-07-20 17:07:00 +03:00
parent d851cae07b
commit 11c378a47c
3 changed files with 27 additions and 0 deletions

View File

@ -142,7 +142,15 @@ const config = {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
matomo: {
matomoUrl: 'https://analytics.openaire.eu/',
siteId: '373',
phpLoader: 'piwik.php',
},
}),
plugins: [
'docusaurus-plugin-matomo',
],
};
module.exports = config;

18
package-lock.json generated
View File

@ -13,6 +13,7 @@
"@easyops-cn/docusaurus-search-local": "^0.33.6",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"docusaurus-plugin-matomo": "^0.0.6",
"dotenv": "^16.0.3",
"hast-util-is-element": "^1.1.0",
"prism-react-renderer": "^1.3.5",
@ -5599,6 +5600,17 @@
"node": ">=6"
}
},
"node_modules/docusaurus-plugin-matomo": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/docusaurus-plugin-matomo/-/docusaurus-plugin-matomo-0.0.6.tgz",
"integrity": "sha512-zAhUz3eMaW2tUJsvV5guOMwb554swoVEeI55BZA10LVk3+PyfWYpBl2FEHITe0ofA8/vG6BTuTzGNSWxW70NwA==",
"engines": {
"node": ">=12.13.0"
},
"peerDependencies": {
"@docusaurus/core": "^2.0.0-alpha.56"
}
},
"node_modules/dom-converter": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz",
@ -16728,6 +16740,12 @@
"@leichtgewicht/ip-codec": "^2.0.1"
}
},
"docusaurus-plugin-matomo": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/docusaurus-plugin-matomo/-/docusaurus-plugin-matomo-0.0.6.tgz",
"integrity": "sha512-zAhUz3eMaW2tUJsvV5guOMwb554swoVEeI55BZA10LVk3+PyfWYpBl2FEHITe0ofA8/vG6BTuTzGNSWxW70NwA==",
"requires": {}
},
"dom-converter": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz",

View File

@ -19,6 +19,7 @@
"@easyops-cn/docusaurus-search-local": "^0.33.6",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"docusaurus-plugin-matomo": "^0.0.6",
"dotenv": "^16.0.3",
"hast-util-is-element": "^1.1.0",
"prism-react-renderer": "^1.3.5",