This is an automated email from the ASF dual-hosted git repository.
kranti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iggy-website.git
The following commit(s) were added to refs/heads/main by this push:
new 157c77414 add matomo script for site analytics on analytics.apache.org
157c77414 is described below
commit 157c774143c1847289a6e08f0670a98af905a195
Author: kparisa <[email protected]>
AuthorDate: Thu Sep 25 14:24:36 2025 +0530
add matomo script for site analytics on analytics.apache.org
---
docusaurus.config.ts | 11 +++++++++++
package.json | 2 ++
2 files changed, 13 insertions(+)
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 908e96bd0..053f9bd3f 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -24,6 +24,11 @@ const config: Config = {
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
+ plugins: [
+ "docusaurus-plugin-sass",
+ 'docusaurus-plugin-matomo',
+ ],
+
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
@@ -203,6 +208,12 @@ ApacheĀ®, the names of Apache projects, and the feather
logo are either register
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
+ matomo: {
+ matomoUrl: 'https://analytics.apache.org/',
+ siteId: '80',
+ phpLoader: 'matomo.php',
+ jsLoader: 'matomo.js',
+ },
} satisfies Preset.ThemeConfig,
};
diff --git a/package.json b/package.json
index a020bf00c..8581e1e04 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,8 @@
"@docusaurus/preset-classic": "3.7.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
+ "docusaurus-plugin-matomo": "^0.0.8",
+ "docusaurus-plugin-sass": "^0.2.5",
"prism-react-renderer": "^2.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"