> ## Documentation Index
> Fetch the complete documentation index at: https://www.mintlify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarity

> 将 Microsoft Clarity 集成到你的 Mintlify 文档站点，以捕获会话录制、热图和用户交互分析。

在你的 `docs.json` 文件中添加以下内容，将 Analytics 数据发送到 Microsoft Clarity。

<CodeGroup>
  ```json docs.json 中的 Analytics 选项 theme={null}
  "integrations": {
      "clarity": {
          "projectId": "required"
      }
  }
  ```

  ```json 示例 theme={null}
  "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。


## Related topics

- [Analytics 集成](/zh/integrations/analytics/overview.md)
- [docs.json schema 参考](/zh/organize/settings-reference.md)
- [配置](/zh/editor/configurations.md)
