> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/ji-cheng/install-an-integration.md).

# 安装和管理集成

有 [许多不同的集成](https://www.gitbook.com/integrations#custom-experiences) 在 GitBook 中可用。从交互式内容块到高级分析工具，你喜爱的工具只需点击一下即可与 GitBook 集成。

你可以在单个部分、多个部分，或组织内的所有部分中安装一个集成。

如果你在单个部分中安装集成，它只会在该特定部分中生效。通过在多个部分中安装集成，你就可以在这些部分之间执行操作。

<figure><img src="/files/16b1e2b17dbc3388239386a74e34038a45f5a901" alt="A GitBook screenshot showing the integration library"><figcaption><p>浏览 GitBook 内置的集成库。</p></figcaption></figure>

### 安装集成

#### 1. 打开集成界面

在某个部分或站点中启用集成之前，你需要先在组织中安装它。返回你的组织 **主页** 并点击 **集成** 侧边栏中的“集成”。按类别浏览集成，或搜索你需要的集成。

一旦某个集成安装到你的组织中，你也可以在站点级别使用它——点击 **集成**，位于 **扩展** 站点侧边栏中的“扩展”下。已添加到站点的集成会显示在 **已安装的集成**.

#### 2. 选择集成并安装

接下来，点击你想安装的集成。某些集成可安装到你的各个部分，另一些则可安装到你已发布的文档中。

在此界面中，你可以选择要将集成安装到哪些区域。

<figure><img src="/files/b56e4df261df027a501ab5bf87dcc8d05488b1bb" alt="A GitBook screenshot showing where you can install an integration"><figcaption><p>选择一个区域来安装集成。</p></figcaption></figure>

#### 3. 配置你的集成

{% hint style="info" %}
分析类集成——例如 Google Analytics、Segment 或 Fathom——是为整个站点配置的。如果你的站点包含多个部分，你无法按部分分别收集分析数据；一个配置适用于整个站点。
{% endhint %}

现在你可以使用你的集成了。某些集成可能需要额外配置。如果是这样，你会看到一条消息，提示你在你的部分或站点中配置集成。

查看该集成的说明，了解更多关于为你的团队配置它的信息。

### 集成常见问题

#### 我可以请求一个集成吗？

可以—— [提交集成请求](https://survey.refiner.io/e61q1m-dp057m)，或者前往 [GitBook 社区](https://github.com/GitbookIO/community) 来讨论你希望在 GitBook 中看到什么。

#### 我可以构建我自己的集成吗？

任何拥有 GitBook 账号的人都可以使用集成平台。请参见 [我们的集成页面](https://www.gitbook.com/integrations) 或 [开发者文档](https://developer.gitbook.com/) 以开始使用。

#### GitBook 支持 Google Tag Manager 吗？

不支持。Google Tag Manager 允许注入 CSS 和 JavaScript，这可能会破坏网站，并带来安全隐患，因此 GitBook 不与其集成。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/ji-cheng/install-an-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
