From b45e8f4d4c686cf893ed1dc62428e4a755c24edf Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 22 Nov 2024 17:46:02 +0800 Subject: [PATCH] =?UTF-8?q?Docs:=20=E5=A2=9E=E5=8A=A0=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=8F=92=E4=BB=B6=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 25 +++++++++ .../getting-started/configuration/index.md | 54 +++++++++++++++++++ .../getting-started/configuration/index.md | 54 +++++++++++++++++++ package.json | 2 +- 4 files changed, 134 insertions(+), 1 deletion(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 9817117..0884bf6 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -596,6 +596,31 @@ disableThemeInject = false # server url for your tracker if you're self hosting # 自行托管追踪器时的主机路径 server = "" + # FixIt 0.3.16 | NEW Baidu Analytics + [analytics.baidu] + id = "" + # FixIt 0.3.16 | NEW Umami Analytics + [analytics.umami] + data_website_id = "" + src = "" + data_host_url = "" + data_domains = "" + # FixIt 0.3.16 | NEW Plausible Analytics + [analytics.plausible] + data_domain = "" + src = "" + # FixIt 0.3.16 | NEW Cloudflare Analytics + [analytics.cloudflare] + token = "" + # FixIt 0.3.16 | NEW Splitbee Analytics + [analytics.splitbee] + enable = false + # no cookie mode + no_cookie = true + # respect the do not track setting of the browser + do_not_track = true + # token(optional), more info on https://splitbee.io/docs/embed-the-script + data_token = "" # Cookie consent config # Cookie 许可配置 diff --git a/content/en/documentation/getting-started/configuration/index.md b/content/en/documentation/getting-started/configuration/index.md index 9933163..c6605bd 100644 --- a/content/en/documentation/getting-started/configuration/index.md +++ b/content/en/documentation/getting-started/configuration/index.md @@ -1134,6 +1134,23 @@ thumbnailUrl [params.analytics.fathom] id = "" server = "" + [params.analytics.baidu] + id = "" + [params.analytics.umami] + data_website_id = "" + src = "" + data_host_url = "" + data_domains = "" + [params.analytics.plausible] + data_domain = "" + src = "" + [params.analytics.cloudflare] + token = "" + [params.analytics.splitbee] + enable = false + no_cookie = true + do_not_track = true + data_token = "" ``` enable @@ -1151,6 +1168,43 @@ fathom - id: `string` Fathom Analytics ID. - server: `string` Server URL for your tracker if you're self hosting. +baidu +: {{< version 0.3.16 >}}\ +`map` Baidu Analytics Configuration. + +- id: `string` Baidu Analytics ID. + +umami +: {{< version 0.3.16 >}}\ +`map` Umami Analytics Configuration. + +- data_website_id: `string` Umami Analytics website ID. +- src: `string` The script URL of Umami Analytics. +- data_host_url: `string` The host URL of Umami Analytics. +- data_domains: `string` The domain of Umami Analytics. + +plausible +: {{< version 0.3.16 >}}\ +`map` Plausible Analytics Configuration. + +- data_domain: `string` Plausible Analytics domain. +- src: `string` The script URL of Plausible Analytics. + +cloudflare +: {{< version 0.3.16 >}}\ +`map` Cloudflare Analytics Configuration. + +- token: `string` Cloudflare Analytics token. + +splitbee +: {{< version 0.3.16 >}}\ +`map` Splitbee Analytics Configuration. + +- enable: `bool` Whether to enable Splitbee Analytics. Default is `false`. +- no_cookie: `bool` Whether to use no cookie mode. Default is `true`. +- do_not_track: `bool` Whether to respect the do not track setting of the browser. Default is `true`. +- data_token: `string` Splitbee Analytics token. + ### cookieconsent `map` Cookie consent Configuration. diff --git a/content/zh-cn/documentation/getting-started/configuration/index.md b/content/zh-cn/documentation/getting-started/configuration/index.md index 407ec85..5f50ec7 100644 --- a/content/zh-cn/documentation/getting-started/configuration/index.md +++ b/content/zh-cn/documentation/getting-started/configuration/index.md @@ -1137,6 +1137,23 @@ thumbnailUrl [params.analytics.fathom] id = "" server = "" + [params.analytics.baidu] + id = "" + [params.analytics.umami] + data_website_id = "" + src = "" + data_host_url = "" + data_domains = "" + [params.analytics.plausible] + data_domain = "" + src = "" + [params.analytics.cloudflare] + token = "" + [params.analytics.splitbee] + enable = false + no_cookie = true + do_not_track = true + data_token = "" ``` enable @@ -1154,6 +1171,43 @@ fathom - id: `string` Fathom Analytics ID。 - server: `string` Fathom Analytics 服务器地址。 +baidu +: {{< version 0.3.16 >}}\ +`map` 百度统计配置。 + +- id: `string` 百度分析 ID。 + +umami +: {{< version 0.3.16 >}}\ +`map` Umami Analytics 配置。 + +- data_website_id: `string` Umami 分析网站 ID。 +- src: `string` Umami 分析脚本 URL。 +- data_host_url: `string` Umami 分析主机 URL。 +- data_domains: `string` Umami 分析域。 + +plausible +: {{< version 0.3.16 >}}\ +`map` Plausible Analytics 配置。 + +- data_domain: `string` Plausible 分析域。 +- src: `string` Plausible 分析脚本 URL。 + +cloudflare +: {{< version 0.3.16 >}}\ +`map` Cloudflare Analytics 配置。 + +- token: `string` Cloudflare Analytics 令牌。 + +splitbee +: {{< version 0.3.16 >}}\ +`map` Splitbee Analytics 配置。 + +- enable: `bool` 是否启用 Splitbee Analytics。默认为 `false`。 +- no_cookie: `bool` 是否使用无 cookie 模式。默认为 `true`。 +- do_not_track: `bool` 是否尊重浏览器的不跟踪设置。默认为 `true`。 +- data_token: `string` Splitbee Analytics 令牌。 + ### cookieconsent `map` Cookie 许可配置。 diff --git a/package.json b/package.json index 23393ab..1f33da2 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "lint:md": "autocorrect content --lint && markdownlint-cli2 \"content/**/*.md\"", "prepare": "husky install", "build": "hugo --gc --minify --logLevel info", - "server": "hugo server -D --disableFastRender --navigateToChanged --ignoreCache -O", + "server": "hugo server -D --disableFastRender --navigateToChanged --ignoreCache --renderToMemory -O", "server:production": "npm run server -- -e production", "server:development": "cross-env HUGO_MODULE_WORKSPACE=hugo.work npm run server -- --ignoreVendorPaths \"**\"", "update:theme": "hugo mod get -u github.com/hugo-fixit/FixIt@dev && hugo mod tidy"