mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
6779b51e1b
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
32 lines
918 B
Plaintext
32 lines
918 B
Plaintext
---
|
||
title: "Mixpanel"
|
||
description: "使用 Mixpanel 跟踪产品分析和用户行为。"
|
||
keywords: ["Mixpanel 集成", "产品分析", "事件跟踪", "token"]
|
||
---
|
||
|
||
在你的 `docs.json` 文件中添加以下配置,将分析数据发送到 Mixpanel。
|
||
|
||
```json Analytics options in docs.json
|
||
"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 脚本运行。 |