This is an automated email from the ASF dual-hosted git repository.
luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new b288797d7ef [feat] add analytic matomo (#410)
b288797d7ef is described below
commit b288797d7ef9bddb97cd92c32cdafd15d47a4ac0
Author: velodb-Linjiang <[email protected]>
AuthorDate: Thu Feb 29 11:24:18 2024 +0800
[feat] add analytic matomo (#410)
Co-authored-by: jeffrey <[email protected]>
---
docusaurus.config.js | 7 +++++++
package.json | 1 +
2 files changed, 8 insertions(+)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 2d995b219f5..7ba28176222 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -64,6 +64,7 @@ const config = {
customFields: {},
plugins: [
'docusaurus-plugin-sass',
+ 'docusaurus-plugin-matomo',
// Use custom blog plugin
versionsPlugin,
[
@@ -219,6 +220,12 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
+ matomo: {
+ matomoUrl: 'https://analytics.apache.org/',
+ siteId: '43',
+ phpLoader: 'matomo.php',
+ jsLoader: 'matomo.js',
+ },
announcementBar: {
id: 'support_us',
content: `<a href="https://github.com/apache/doris"
target="_blank" style="display: flex; width: 100%; align-items: center;
justify-content: center; margin-left: 4px; text-decoration: none; color:
white">Do you ❤️ Doris? Give us a 🌟 on GitHub
diff --git a/package.json b/package.json
index 35fe0118c7d..761eaeff1c3 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
"autoprefixer": "^10.4.16",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.3",
+ "docusaurus-plugin-matomo": "^0.0.8",
"docusaurus-plugin-sass": "^0.2.3",
"postcss": "^8.4.32",
"prism-react-renderer": "^2.0.4",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]