Files
mintlify[bot] bfe3d48c65 Update from code changes: document Mixpanel data residency region (#6297)
* docs: document Mixpanel data residency region option

* docs: wrap translated Data residency headings with anchor divs

* docs: fix passive voice in Mixpanel data residency section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 13:40:00 -07:00

56 lines
1.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Mixpanel"
description: "将 Mixpanel 集成到你的 Mintlify 文档站点,以跟踪产品分析、用户行为漏斗和内容参与事件。"
keywords: ["Mixpanel 集成", "产品分析", "事件跟踪", "token"]
boost: 3
---
在你的 `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="data-residency">
## 数据驻留
</div>
如果你的 Mixpanel 项目托管在欧盟或印度的数据驻留区域,请设置 `region`,让事件直接发送到对应的 Mixpanel 接入主机。省略 `region` 将保留默认的美国主机。
```json 在欧盟数据驻留区域使用 Mixpanel
"integrations": {
"mixpanel": {
"projectToken": "YOUR_MIXPANEL_PROJECT_TOKEN",
"region": "eu"
}
}
```
支持的取值:
- `us`(默认):`api.mixpanel.com`
- `eu`:`api-eu.mixpanel.com`
- `in`:`api-in.mixpanel.com`
请将该值设置为与你的 Mixpanel 项目所在的数据驻留区域一致。如果事件发送到与项目区域不匹配的主机,它们会被丢弃。
<div id="tracked-events">
## 跟踪的事件
</div>
Mintlify 会自动跟踪以下用户交互:
- 页面访问
- 搜索查询
- 反馈提交
- 上下文菜单交互
- 导航点击
如果你在 Mixpanel 中看不到事件,请确认你的项目 token 是否正确,并检查是否有内容安全策略(CSP)阻止 Mixpanel 脚本运行。