> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiIzNjkwOGY4Yy0zYWUyLTRjYjEtOTVhNS02YjdkNDg2ZmJjNzQiLCJleHAiOjE3NzgzMjEwOTksImlhdCI6MTc3ODMyMDc5OX0.Zc3Wvu7R5zoEaeuTucjdD4GKqPqx5TXuUVRN0a8yesQ
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# 从用户收集反馈和建议

> 通过 GitHub 或 Fern Editor 在 Fern 文档中收集页面反馈并启用用户编辑建议。

Fern 提供了多种方式来跟踪用户的反馈和改进建议。

## 页面反馈

默认情况下，文档的每个 Markdown 页面底部都包含一个反馈组件：

<Frame caption="页面反馈">
  <video src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/aca62a359a85620b1a283f8b42f88eb20d867c67a1986d98bc9a300e105feabe/products/docs/pages/customization/user-feedback.mp4" autoPlay loop playsInline muted />
</Frame>

您也可以为[单个页面](/learn/docs/configuration/page-level-settings#on-page-feedback)或[所有页面](/learn/docs/configuration/site-level-settings#layouthide-feedback)禁用此功能。

<Info title="自托管用户反馈">
  在[自托管](/learn/docs/self-hosted/overview)部署中，反馈事件以结构化 JSON 格式记录到容器的 stdout。详情请参阅[页面反馈](/learn/docs/self-hosted/set-up#on-page-feedback)。
</Info>

### 在仪表板中查看反馈

您可以在 [Fern Dashboard](https://dashboard.buildwithfern.com/) 的 **Feedback** 选项卡中查看所有页面[反馈回复](/learn/dashboard/getting-started/overview)。表格显示每个页面的反馈，包括页面是否有用以及原因（如果提供），以及渠道、位置和日期。您可以按日期范围筛选并将结果导出为 CSV。

## 编辑此页面

允许用户直接从您的文档中建议对当前页面的更改。此功能有两种模式：

* **GitHub（默认）：** 点击按钮直接链接到 GitHub 存储库中页面的源文件，用户可以在此建议更改。这对于具有公共存储库的公开网站是理想的选择，允许外部用户提交拉取请求。
* **Dashboard：** 点击按钮打开一个屏幕，用户可以选择为该页面启动 Fern Editor 会话或导航到 GitHub 上的源文件。这对于内部网站特别有用，因为许多或大多数查看者也具有编辑器访问权限，可以直接通过 [Fern Editor](/learn/docs/writing-content/fern-editor) 进行更改。

<Frame caption="Dashboard 模式">
  <video src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/d84ec33b2760dc30d219366bf69438d57918dde4a568455e4bd324e8ebc61524/products/docs/pages/customization/fern-edit-this-page.mp4" autoPlay loop playsInline muted />
</Frame>

您可以在[全局配置](/learn/docs/configuration/site-level-settings#edit-this-page-configuration)中配置此功能，包括按钮是直接链接到 GitHub 还是提供编辑选项。您也可以在[前置元数据](/learn/docs/configuration/page-level-settings#edit-this-page)中覆盖单个页面的编辑 URL。

<Note>
  此功能在预览链接中有效，但在本地开发中不起作用。
</Note>