mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
5a3d1ddabb
* docs: sync es/fr/zh translations with recent English updates * docs: tighten descriptions and replace HTML entities with real quotes --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
---
|
||
title: "Plausible"
|
||
description: "将 Plausible Analytics 集成到你的 Mintlify 文档,实现轻量级、尊重隐私的访客跟踪,无需 Cookie 或同意横幅。"
|
||
keywords: ["Plausible Analytics", "privacy-respecting analytics", "self-hosted analytics", "domain configuration"]
|
||
boost: 3
|
||
---
|
||
|
||
在 `docs.json` 中添加你站点的 domain,以将 Analytics 发送至 Plausible。
|
||
|
||
<Info>
|
||
为 domain 或服务器填写时不要包含 `https://`。
|
||
</Info>
|
||
|
||
<CodeGroup>
|
||
|
||
```json docs.json 中的 Analytics 选项
|
||
"integrations": {
|
||
"plausible": {
|
||
"domain": "your-documentation-domain",
|
||
"server": "optional - your self-hosted Plausible server hostname"
|
||
}
|
||
}
|
||
```
|
||
|
||
```json 示例
|
||
"integrations": {
|
||
"plausible": {
|
||
"domain": "docs.domain.com"
|
||
}
|
||
}
|
||
```
|
||
|
||
</CodeGroup>
|
||
|
||
### 配置选项
|
||
|
||
<ParamField path="domain" type="string" required>
|
||
你的文档站点的 domain。例如 `docs.example.com`。请不要包含 `https://`。
|
||
</ParamField>
|
||
|
||
<ParamField path="server" type="string">
|
||
你自托管 Plausible 实例的主机名。例如 `plausible.example.com`。仅在你自托管 Plausible 时需要。省略此字段将使用 `plausible.io`。请不要包含 `https://`。
|
||
</ParamField> |