> ## Documentation Index
> Fetch the complete documentation index at: https://tomee-rohan-testing.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Heap

> 将 Heap 分析集成到 Mintlify 文档站点，自动捕获用户交互和事件，进行行为分析。

在你的 `docs.json` 文件中添加以下配置，将 Analytics 数据发送到 Heap。

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

  ```json 示例 theme={null}
  "integrations": {
      "heap": {
          "appId": "1234567890"
      }
  }
  ```
</CodeGroup>

将 `1234567890` 替换为你的 Heap app ID。你可以在 [Heap 账户设置](https://heapanalytics.com/app/settings) 中找到它。

## 跟踪事件

Mintlify 会自动跟踪以下用户交互并将其发送到 Heap：

* 页面浏览
* 搜索查询
* 反馈提交
* 上下文菜单交互
* 导航点击

查看[跟踪事件完整列表](/zh/integrations/analytics/overview#tracked-events)了解发送到分析提供商的所有事件详情。
