mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
bbb1a08ed3
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
35 lines
743 B
Plaintext
35 lines
743 B
Plaintext
---
|
|
title: "Clarity"
|
|
description: "使用 Microsoft Clarity 的 Analytics 跟踪用户会话。"
|
|
keywords: ["Microsoft Clarity", "session recording", "heatmaps", "user sessions"]
|
|
---
|
|
|
|
在你的 `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。 |