mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
dd70fb8977
* docs: document cdnUrl option for Segment integration * docs: wrap translated headings with English anchor IDs * Apply suggestion from @ethanpalm --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
---
|
||
title: "Segment"
|
||
description: "将 Segment 集成到你的 Mintlify 文档,将分析事件路由到数据仓库、CRM 和营销平台等下游工具。"
|
||
keywords: ["Segment integration", "write key", "event streaming", "CDP integration", "custom domain", "cdnUrl"]
|
||
boost: 3
|
||
---
|
||
|
||
将你的 Segment write key 添加到 `docs.json` 文件,以将分析数据发送到 Segment。
|
||
|
||
<CodeGroup>
|
||
|
||
```json docs.json 中的 Analytics 选项
|
||
"integrations": {
|
||
"segment": {
|
||
"key": "required",
|
||
"cdnUrl": "optional"
|
||
}
|
||
}
|
||
```
|
||
|
||
```json 示例
|
||
"integrations": {
|
||
"segment": {
|
||
"key": "nqJxiRG15Y6M594P8Sb8ESEciU3VC2",
|
||
"cdnUrl": "https://cdn.example.com"
|
||
}
|
||
}
|
||
```
|
||
|
||
</CodeGroup>
|
||
|
||
<div id="configuration-options">
|
||
## 配置选项
|
||
</div>
|
||
|
||
<ParamField path="key" type="string" required>
|
||
你的 Segment write key。
|
||
</ParamField>
|
||
|
||
<ParamField path="cdnUrl" type="string">
|
||
用于加载 Segment 脚本的自定义 CDN URL。如果你在 Segment 中配置了[自定义域名](https://segment.com/docs/connections/custom-domain/),可以通过自己的子域名提供分析脚本,从而避免广告拦截器拦截 `cdn.segment.com`。必须是不含查询参数和片段的 HTTPS URL。默认为 `https://cdn.segment.com`。
|
||
</ParamField>
|