mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
4b465465dd
Generated-By: mintlify-agent Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
36 lines
808 B
Plaintext
36 lines
808 B
Plaintext
---
|
|
title: "Clarity"
|
|
description: "将 Microsoft Clarity 集成到你的 Mintlify 文档站点,以捕获会话录制、热图和用户交互分析。"
|
|
keywords: ["Microsoft Clarity", "session recording", "heatmaps", "user sessions"]
|
|
boost: 3
|
|
---
|
|
|
|
在你的 `docs.json` 文件中添加以下内容,将 Analytics 数据发送到 Microsoft Clarity。
|
|
|
|
<CodeGroup>
|
|
|
|
```json docs.json 中的 Analytics 选项
|
|
"integrations": {
|
|
"clarity": {
|
|
"projectId": "required"
|
|
}
|
|
}
|
|
```
|
|
|
|
```json 示例
|
|
"integrations": {
|
|
"clarity": {
|
|
"projectId": "abc123xyz"
|
|
}
|
|
}
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
<div id="get-your-project-id">
|
|
## 获取项目 ID
|
|
</div>
|
|
|
|
1. 创建一个 [Clarity 帐户](https://clarity.microsoft.com/projects)。
|
|
2. 点击 **Get tracking code**。
|
|
3. 从跟踪代码中复制项目 ID。 |