> 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="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FWQcTvsnIZCowPI7bMCdV%2F26_01_06_integrations%402x.png?alt=media&amp;token=7a62f07c-68b2-4afa-92c3-a24518bce183" alt="A GitBook screenshot showing the integration library"><figcaption><p>浏览 GitBook 内置的集成库。</p></figcaption></figure>

### 安装集成

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

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

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

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

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

在此界面中，你可以选择要安装该集成的区域。

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F27szfSu2UFowxa8d6Ih7%2Fintegrations-install-options.svg?alt=media&amp;token=655a5e6d-69e9-4ffc-afcb-6ff71c4ddf37" 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.
