This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new f8d6db8a add matomo (#55)
f8d6db8a is described below
commit f8d6db8a83a09611fcbc4d4128a3c901c051ddfe
Author: CritasWang <[email protected]>
AuthorDate: Mon Mar 25 10:24:36 2024 +0800
add matomo (#55)
---
docs/package.json | 1 -
docs/pnpm-lock.yaml | 15 ---------------
docs/src/.vuepress/components/PageFooter.vue | 3 ---
docs/src/.vuepress/config.ts | 19 +++++++++++++++----
4 files changed, 15 insertions(+), 23 deletions(-)
diff --git a/docs/package.json b/docs/package.json
index 2fa9c3a5..782a03fa 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -18,7 +18,6 @@
"@docsearch/react": "^3.5.2",
"@vuepress/client": "2.0.0-rc.0",
"@vuepress/plugin-docsearch": "2.0.0-rc.0",
- "@vuepress/plugin-google-analytics": "2.0.0-rc.0",
"@vuepress/shared": "2.0.0-rc.0",
"@vuepress/utils": "2.0.0-rc.0",
"gh-pages": "^6.1.1",
diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index d326d624..7721fca8 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -20,9 +20,6 @@ devDependencies:
'@vuepress/plugin-docsearch':
specifier: 2.0.0-rc.0
version: 2.0.0-rc.0(@algolia/[email protected])([email protected])
- '@vuepress/plugin-google-analytics':
- specifier: 2.0.0-rc.0
- version: 2.0.0-rc.0
'@vuepress/shared':
specifier: 2.0.0-rc.0
version: 2.0.0-rc.0
@@ -1317,18 +1314,6 @@ packages:
- typescript
dev: true
- /@vuepress/[email protected]:
- resolution: {integrity:
sha512-rkYW2LGkLAfRFtaFWVPr1V2mS6hwgYhn2hLeJAF5xHlC3PcjCiSV0cqH7ooeCo+FBJUlCtMQ9N8iSNl63vd7VQ==}
- dependencies:
- '@vuepress/client': 2.0.0-rc.0
- '@vuepress/core': 2.0.0-rc.0
- '@vuepress/utils': 2.0.0-rc.0
- transitivePeerDependencies:
- - '@vue/composition-api'
- - supports-color
- - typescript
- dev: true
-
/@vuepress/[email protected]:
resolution: {integrity:
sha512-peU1lYKsmKikIe/0pkJuHzD/k6xW2TuqdvKVhV4I//aOE1WxsREKJ4ACcldmoIsnysoDydAUqKT6xDPGyDsH2g==}
dependencies:
diff --git a/docs/src/.vuepress/components/PageFooter.vue
b/docs/src/.vuepress/components/PageFooter.vue
index 87b28c24..9fa86e09 100644
--- a/docs/src/.vuepress/components/PageFooter.vue
+++ b/docs/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 issues. </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/docs/src/.vuepress/config.ts b/docs/src/.vuepress/config.ts
index f51ce11c..f93d14c4 100644
--- a/docs/src/.vuepress/config.ts
+++ b/docs/src/.vuepress/config.ts
@@ -17,7 +17,6 @@
import { getDirname, path } from '@vuepress/utils';
import { defineUserConfig } from "vuepress";
-import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics';
import { docsearchPlugin } from './components/docsearch/node/index.js';
import theme from "./theme.js";
@@ -42,6 +41,21 @@ export default defineUserConfig({
theme,
head: [
['link', { rel: 'icon', href: '/favicon.ico' }],
+ ['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', '53']);
+ 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);
+ })();
+ `],
],
alias: {
'@theme-hope/components/PageFooter': path.resolve(
@@ -103,9 +117,6 @@ export default defineUserConfig({
},
},
}),
- googleAnalyticsPlugin({
- id: 'G-5MM3J6X84E',
- }),
],
// Enable it with pwa
// shouldPrefetch: false,