diff --git a/home/docusaurus.config.js b/home/docusaurus.config.js index f395b9d2c0f..1d1a8f84074 100644 --- a/home/docusaurus.config.js +++ b/home/docusaurus.config.js @@ -27,6 +27,12 @@ module.exports = { locales: ['zh-cn', 'en'], }, themeConfig: { + matomo: { + matomoUrl: 'https://analytics.apache.org/', + siteId: '67', + phpLoader: 'matomo.php', + jsLoader: 'matomo.js', + }, image: '/img/hertzbeat-logo.svg', liveCodeBlock: { playgroundPosition: 'bottom', @@ -344,6 +350,7 @@ module.exports = { fromExtensions: ['html'], }, ], + 'docusaurus-plugin-matomo', '@docusaurus/plugin-ideal-image', [ '@docusaurus/plugin-pwa', diff --git a/home/package.json b/home/package.json index e503487cca5..ddf065f8459 100644 --- a/home/package.json +++ b/home/package.json @@ -32,7 +32,9 @@ "aos": "^2.3.4", "clsx": "1.2.1", "color": "3.2.1", + "docusaurus-plugin-matomo": "^0.0.8", "file-loader": "6.2.0", + "markdownlint-cli2": "^0.13.0", "react": "17.0.2", "react-dom": "17.0.2", "react-slick": "0.29.0", @@ -41,8 +43,7 @@ "swiper": "7.4.1", "url-loader": "4.1.1", "workbox-routing": "6.5.3", - "workbox-strategies": "6.5.3", - "markdownlint-cli2": "^0.13.0" + "workbox-strategies": "6.5.3" }, "browserslist": { "production": [ diff --git a/web-app/src/index.html b/web-app/src/index.html index 69ac68bc072..1905675a2ab 100644 --- a/web-app/src/index.html +++ b/web-app/src/index.html @@ -7,14 +7,22 @@ - - + + +