This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
The following commit(s) were added to refs/heads/main by this push:
new 1327905 add matomo (#203)
1327905 is described below
commit 13279055341aa0a9176d876d340c52cfce7a61cd
Author: CritasWang <[email protected]>
AuthorDate: Mon Mar 25 10:43:20 2024 +0800
add matomo (#203)
---
src/.vuepress/components/PageFooter.vue | 3 ---
src/.vuepress/config.ts | 19 +++++++++++++++----
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/.vuepress/components/PageFooter.vue
b/src/.vuepress/components/PageFooter.vue
index 58d4187..fa1bebb 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</p>
<p style="text-align: center; margin-top: 10px; color: #909399; font-size:
12px; margin: 0 30px;">
<strong>Have a question?</strong> Connect with us on QQ, WeChat, or
Slack. <a href="https://github.com/apache/iotdb/issues/1995">Join the
community</a> now.</p>
- <p style="text-align: center; margin-top: 10px; color: #909399; font-size:
12px; margin: 0 30px;">
- We use <a href="https://analytics.google.com">Google Analytics</a> to
collect anonymous, aggregated usage information.
- </p>
</footer>
</template>
<script setup lang="ts">
diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts
index 4ebd9aa..62e3b6c 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: {