Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b55f85b3 authored by Julie Thézénas's avatar Julie Thézénas Committed by Christophe Chaudier
Browse files

feat: add matomo plugin

parent 4014c1c8
No related branches found
No related tags found
1 merge request!45Resolve "Add matomo stats"
...@@ -100,7 +100,7 @@ module.exports = { ...@@ -100,7 +100,7 @@ module.exports = {
], ],
}, },
], ],
// eslint-disable-next-line quotes // eslint-disable-next-line quotes
copyright: `Lydra © ${new Date().getFullYear()}` +"<br/>"+ `Froggit est fièrement fabriqué avec ❤️ par <a href="http://lydra.fr/">Lydra</a> avec des Logiciels Libres et hébergé en 🇫🇷 chez <a href="https://www.scaleway.fr/">Scaleway</a>` +"<br/>"+ `Construit avec <a href="https://docusaurus.io/fr">Docusaurus</a>`, copyright: `Lydra © ${new Date().getFullYear()}` +"<br/>"+ `Froggit est fièrement fabriqué avec ❤️ par <a href="http://lydra.fr/">Lydra</a> avec des Logiciels Libres et hébergé en 🇫🇷 chez <a href="https://www.scaleway.fr/">Scaleway</a>` +"<br/>"+ `Construit avec <a href="https://docusaurus.io/fr">Docusaurus</a>`,
}, },
...@@ -131,4 +131,18 @@ module.exports = { ...@@ -131,4 +131,18 @@ module.exports = {
}, },
], ],
], ],
plugins: [
[
// https://github.com/gabrielcsapo/docusaurus-plugin-matomo#usage
require.resolve("@gabrielcsapo/docusaurus-plugin-matomo"),
{
siteId: "5",
matomoUrl: "https://stats.esprit-libre-conseil.com",
siteUrl: process.env.DOCUSAURUS_URL || "https://froggit.fr",
matomoPhpScript: "m.php",
matomoJsScript: "m.js",
enableJSErrorTracking: true,
},
],
],
}; };
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"@fortawesome/free-regular-svg-icons": "^6.1.1", "@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1", "@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18", "@fortawesome/react-fontawesome": "^0.1.18",
"@gabrielcsapo/docusaurus-plugin-matomo": "^0.1.2",
"@mdx-js/react": "^1.6.21", "@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^6.2.1", "@svgr/webpack": "^6.2.1",
"clsx": "^1.1.1", "clsx": "^1.1.1",
...@@ -2665,6 +2666,14 @@ ...@@ -2665,6 +2666,14 @@
"react": ">=16.x" "react": ">=16.x"
} }
}, },
"node_modules/@gabrielcsapo/docusaurus-plugin-matomo": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/@gabrielcsapo/docusaurus-plugin-matomo/-/docusaurus-plugin-matomo-0.1.2.tgz",
"integrity": "sha512-sn0o9dz1DQTjPYgsm0e4QXrbHddorrS6qsTlS/ypfZ4vQJg+tcrUEI+VQzWYI66K0bChy5i2RDgczTSED/JDSQ==",
"dependencies": {
"@docusaurus/types": "^2.0.0-beta.14"
}
},
"node_modules/@hapi/hoek": { "node_modules/@hapi/hoek": {
"version": "9.2.1", "version": "9.2.1",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz",
...@@ -12962,6 +12971,19 @@ ...@@ -12962,6 +12971,19 @@
"is-typedarray": "^1.0.0" "is-typedarray": "^1.0.0"
} }
}, },
"node_modules/typescript": {
"version": "4.6.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz",
"integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==",
"peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=4.2.0"
}
},
"node_modules/ua-parser-js": { "node_modules/ua-parser-js": {
"version": "0.7.31", "version": "0.7.31",
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz",
...@@ -16173,6 +16195,14 @@ ...@@ -16173,6 +16195,14 @@
"prop-types": "^15.8.1" "prop-types": "^15.8.1"
} }
}, },
"@gabrielcsapo/docusaurus-plugin-matomo": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/@gabrielcsapo/docusaurus-plugin-matomo/-/docusaurus-plugin-matomo-0.1.2.tgz",
"integrity": "sha512-sn0o9dz1DQTjPYgsm0e4QXrbHddorrS6qsTlS/ypfZ4vQJg+tcrUEI+VQzWYI66K0bChy5i2RDgczTSED/JDSQ==",
"requires": {
"@docusaurus/types": "^2.0.0-beta.14"
}
},
"@hapi/hoek": { "@hapi/hoek": {
"version": "9.2.1", "version": "9.2.1",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz",
...@@ -23696,6 +23726,12 @@ ...@@ -23696,6 +23726,12 @@
"is-typedarray": "^1.0.0" "is-typedarray": "^1.0.0"
} }
}, },
"typescript": {
"version": "4.6.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz",
"integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==",
"peer": true
},
"ua-parser-js": { "ua-parser-js": {
"version": "0.7.31", "version": "0.7.31",
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment