> 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/guan-li-ni-de-zhan-dian/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 %}

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

查看该集成的说明，了解如何为你的团队进行配置。

### 常见问题

<details>

<summary>我该如何配置我的集成？</summary>

每个集成都有其自己的配置选项。你可以在各集成的安装页面上找到其具体的配置说明。

</details>

<details>

<summary>我可以请求一个集成吗？</summary>

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

</details>

<details>

<summary>我可以自己构建一个集成吗？</summary>

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

</details>

<details>

<summary>GitBook 支持 Google Tag Manager 吗？</summary>

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

</details>


---

# 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/guan-li-ni-de-zhan-dian/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.
