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

# Mixpanel

> 将 Mixpanel 集成到你的 Mintlify 文档站点，以跟踪产品分析、用户行为漏斗和内容参与事件。

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

```json Analytics options in docs.json theme={null}
"integrations": {
    "mixpanel": {
        "projectToken": "YOUR_MIXPANEL_PROJECT_TOKEN"
    }
}
```

将 `YOUR_MIXPANEL_PROJECT_TOKEN` 替换为你的 Mixpanel 项目 token。你可以在 [Mixpanel 项目设置](https://mixpanel.com/settings/project) 中找到该值。

<div id="tracked-events">
  ## 跟踪的事件
</div>

Mintlify 会自动跟踪以下用户交互：

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

如果你在 Mixpanel 中看不到事件，请确认你的项目 token 是否正确，并检查是否有内容安全策略（CSP）阻止 Mixpanel 脚本运行。
