From 8a3e0582cb4dbdfbb8a9c95449b1e8d10d1e404e Mon Sep 17 00:00:00 2001
From: CritasWang
Date: Mon, 25 Mar 2024 10:25:18 +0800
Subject: [PATCH 1/2] add matomo
---
src/.vuepress/config.ts | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts
index 4ebd9aa86..62e3b6c57 100644
--- a/src/.vuepress/config.ts
+++ b/src/.vuepress/config.ts
@@ -19,7 +19,6 @@
import { getDirname, path } from '@vuepress/utils';
import { defineUserConfig, viteBundler } from 'vuepress';
-import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics';
import { redirectPlugin } from 'vuepress-plugin-redirect';
import { docsearchPlugin } from './components/docsearch/node/index.js';
import theme from './theme.js';
@@ -49,6 +48,21 @@ export default defineUserConfig({
['meta', { name: 'Keywords', content: 'TSDB, time series, time series database, IoTDB, IoT database, IoT data management,时序数据库, 时间序列管理, IoTDB, 物联网数据库, 实时数据库, 物联网数据管理, 物联网数据' }],
['meta', { name: 'baidu-site-verification', content: 'wfKETzB3OT' }],
['meta', { name: 'google-site-verification', content: 'mZWAoRY0yj_HAr-s47zHCGHzx5Ju-RVm5wDbPnwQYFo' }],
+ ['script', { type: 'text/javascript' }, `
+var _paq = window._paq = window._paq || [];
+/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+_paq.push(["setDoNotTrack", true]);
+_paq.push(["disableCookies"]);
+_paq.push(['trackPageView']);
+_paq.push(['enableLinkTracking']);
+(function() {
+ var u="https://analytics.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '56']);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+})();
+ `],
],
shouldPrefetch: false,
@@ -118,9 +132,6 @@ export default defineUserConfig({
'/zh/UserGuide/Master/QuickStart/QuickStart.html': '/zh/UserGuide/V1.1.x/QuickStart/QuickStart.html',
},
}),
- googleAnalyticsPlugin({
- id: 'G-5MM3J6X84E',
- }),
],
bundler: viteBundler({
vuePluginOptions: {
From f574613792c04dc82f542cd22b6f4a433715ea8b Mon Sep 17 00:00:00 2001
From: CritasWang
Date: Mon, 25 Mar 2024 10:28:47 +0800
Subject: [PATCH 2/2] remove footer
---
src/.vuepress/components/PageFooter.vue | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/.vuepress/components/PageFooter.vue b/src/.vuepress/components/PageFooter.vue
index 58d4187bf..fa1bebbc0 100644
--- a/src/.vuepress/components/PageFooter.vue
+++ b/src/.vuepress/components/PageFooter.vue
@@ -23,9 +23,6 @@
Apache and the Apache feather logo are trademarks of The Apache Software Foundation
Have a question? Connect with us on QQ, WeChat, or Slack. Join the community now.
-
- We use Google Analytics to collect anonymous, aggregated usage information.
-