---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://yandex.com/support/metrica/en/general/link-webmaster.md
  - https://yandex.com/support/metrica/es/general/link-webmaster.md
  - https://yandex.com/support/metrica/pt/general/link-webmaster.md
  - https://yandex.com/support/metrica/ru/general/link-webmaster.md
  - https://yandex.com/support/metrica/tr/general/link-webmaster.md
  - https://yandex.com/support/metrica/zh/general/link-webmaster.md
  - href: zh/general/link-webmaster.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: 使用 Yandex Metrica 计数器为网站建立索引
description: "如果您希望机器人尽快访问您的网站，请将您的 Yandex\_Metrica 计数器链接到已在 Yandex\_Webmaster 中验证的网站，并启用计数器爬取选项。"
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/metrica/zh/llms.txt


# 使用 Yandex Metrica 计数器为网站建立索引


Yandex 机器人通过[不同来源](https://yandex.ru/support/webmaster/robot-workings/robot.html)获取网站页面的信息。 其中一个来源为 Yandex Metrica 跟踪计数器。 您可以告知 Yandex 爬取具有该计数器的页面。

如果您希望机器人尽快访问您的网站，请将您的 Yandex Metrica 计数器链接到已在 Yandex Webmaster 中验证的网站，并启用计数器爬取选项。


{% cut "谁可以请求并确认链接" %}



#|
||
**请求从哪里发送**
|
**谁发送了请求**
|
**谁批准了请求**
||
||
Yandex Metrica
|
具有计数器编辑权限或代表访问权限的用户。
|
具有网站管理权限的 Yandex Webmaster 用户。
||
||
Yandex Webmaster

[如何在 Yandex Webmaster 中发送请求](https://yandex.ru/support/webmaster/indexing-options/link-metrica.html#link-metrica)。
|
具有网站管理权限的用户。
|
具有计数器编辑权限或代表访问权限的 Yandex Metrica 用户。
||
|#


{% endcut %}


一旦机器人爬取网站上的页面，只要[不禁止](https://yandex.ru/support/webmaster/adding-site/indexing-prohibition.html#indexing-prohibition)索引建立，这些页面便可[出现在搜索结果中](https://yandex.ru/support/webmaster/robot-workings/robot.html#robot__search)。 为了让机器人更好地了解页面，请使用 [Sitemap 文件](https://yandex.ru/support/webmaster/controlling-robot/sitemap.html#sitemap)。

## 第 1 步. 将网站添加到 Yandex Webmaster 中 {#add-webmaster}

将带有 Yandex Metrica 计数器的网站[添加到 Yandex Webmaster](https://yandex.com/support/webmaster/service/quick-start.html)，并[验证您的网站管理权限](https://yandex.com/support/webmaster/service/rights.html)。

## 第 2 步. 在 Yandex Metrica 中，发送链接网站的请求 {#query-match}

1. 转到 **Settings** 页面（**Tag** 选项卡）。
1. 点击网站地址旁的 **Link to Yandex Webmaster**。 如果在计数器设置中指定了其他地址：
    - 子域名：在 Yandex Webmaster 中[使用简化验证来验证您的权限](https://yandex.com/support/webmaster/service/rights.html#how-to__easy)，并发送匹配请求。
    - 附加地址：将其添加到 Yandex Webmaster 中并发送链接网站的请求。
    - 镜像：将计数器链接到网站的[主要地址](https://yandex.com/support/webmaster/yandex-indexing/site-addresses.html)（应出现在搜索结果中的地址）。
    
在您发送匹配确认请求后，将向 Yandex Webmaster 用户在[通知设置](https://yandex.com/support/webmaster/service/notifications.html#notifications__sites)中指定的电子邮件地址发送通知（如果该用户已订阅**来自 Yandex Metrica 的请求**通知）。

## 第 3 步. 在 Yandex Webmaster 中确认您的请求 {#approv}

发送链接网站的请求后，网站管理员开始搜索与网站域的匹配项。 协议以及是否存在 www 前缀将被忽略。 如果找到匹配项，请确认请求：

1. 前往 **Settings** → **Yandex Metrica tags**。
1. 点击相应计数器 ID 旁的 **Confirm**。

您可以跟踪将计数器链接到网站的状态：
- 在 Yandex Metrica 中，转至 **Settings** 并打开 **Tag** 选项卡。
- 在 Yandex Webmaster 中，转到 **Settings** → **Yandex Metrica tags**。


#|
||
**状态**
|
**描述**
|
**注释**
||
||
“正在等待确认”
|
链接该网站的请求已发送。 域验证正在进行中。 找到该域名后，请求将等待由 Yandex Webmaster 用户确认。
|
Yandex Webmaster 用户必须确认请求。
||
||
“已链接”
|
Yandex Webmaster 用户确认了链接网站的请求。
|
Yandex 机器人将开始爬取网站的页面。
||
||
“未验证”
|
Yandex Metrica 或 Yandex Webmaster 用户取消链接网站。
|
您可以重新发送请求以将计数器链接到网站。
||
||
“确认错误”
|
计数器未链接到网站。 可能的原因：
- 网站尚未添加到 Yandex Webmaster 中。
- 未在 Yandex Webmaster 中确认网站管理权限。
- 在 Yandex Webmaster 中的 **Settings** → **Yandex Metrica tags** 页面上，计数器 ID 未正确指定。
|
检查可能的原因并再次请求确认。
||
|#

## 步骤 4. 在 Yandex Webmaster 中为您的网站启用计数器爬取选项 {#ind-settings-webmaster}

1. 转到 **Indexing** → **Tag crawling**。
1. 在链接到网站的 Yandex Metrica 计数器对面，启用爬取。


机器人将能够爬取安装了计数器的页面。 此选项将适用于网站的所有版本：HTTP 和 HTTPS，以及带或不带 www 前缀。

在爬取过程中，机器人会在网站中搜索[可以包含在搜索结果中的页面](https://yandex.ru/support/webmaster/yandex-indexing/site-indexing.html#site-indexing__data)。 在某些情况下，爬取可能会停止，以便您可以检查页面。 机器人可能会找到多个页面 — Yandex Webmaster 仅显示示例。 它们可以帮助您了解允许哪些页面组参与搜索，以及不允许哪些页面组参与搜索。

您可能会收到一条表明列表可进行验证的通知，具体取决于[设置](https://yandex.ru/support/webmaster/service/notifications.html#settings)：
- 在 Yandex Webmaster 中的 **Notifications** 和 **Diagnosis** 页面上。
- 发送到您在通知设置中指定的电子邮件地址。

要检查示例，请转到 **Indexing** → **Tags crawl**，然后点击网站关联的计数器旁的 **Page examples** 按钮。

如果您认为列表中存在以下情况：


{% list tabs %}

- 有非公开页面。

  
  1. 分析页面列表 — 它们可能包括如下内容：
      
      #|
      ||
      **页面类型**
      |
      **操作建议**
      ||
      ||
      活动页面。 例如，将商品添加到购物车或比较产品。
      |
      对页面[禁止建立索引](https://yandex.ru/support/webmaster/adding-site/indexing-prohibition.html#indexing-prohibition__full-site)
      ||
      ||
      含产品的购物车。
      |
      ^
      ||
      ||
      个人信息。 例如，客户的收货地址和电话号码。
      |
      通过网站上的用户授权限制对数据的访问
      ||
      ||
      [重复页面](*Страница-дубль)。 例如，带有附加参数的 URL (`https://example.com/page?id=1`)。
      |
      [指定参与搜索的首选页面](https://yandex.ru/support/webmaster/robot-workings/double.html#double)
      ||
      |#
      
  1. 等待服务更新列表 — 封电子邮件将发送到您在通知设置中输入的电子邮件地址。
  1. 再次检查示例页面。
  1. 启用爬取。
  

- 所有页面都可以包含在搜索中。

  
  1. 确保它们可显示在搜索结果中 — 例如，验证内容的完整性，并检查元素[标题](https://yandex.ru/support/webmaster/recommendations/presentation.html#presentation__title)和元计数器[描述](https://yandex.ru/support/webmaster/indexing-options/description.html#description)。
  1. 启用爬取。

{% endlist %}


另外，我们建议在 [Sitemap 文件](https://yandex.ru/support/webmaster/controlling-robot/sitemap.html#sitemap)中添加可参与搜索的页面，以便它们更快包含[在搜索结果中](https://yandex.ru/support/webmaster/yandex-indexing/site-indexing.html#site-indexing__data)。

要检查哪些页面出现在搜索结果中，请转到 [Pages in search](https://yandex.ru/support/webmaster/service/searchable.html#searchable)。

如果禁用此选项，机器人将停止从 Yandex Metrica 接收有关新网站页面的信息。 但它仍然可以通过从[其他来源](https://yandex.ru/support/webmaster/robot-workings/robot.html#robot)了解这些信息来为页面建立索引。 因此，我们建议对非公开内容[阻止建立索引](https://yandex.ru/support/webmaster/adding-site/indexing-prohibition.html#indexing-prohibition)。 若要了解是否有您不希望被索引的页面出现在搜索中，请转到 [How to exclude pages from search](https://yandex.ru/support/webmaster/yandex-indexing/removing-from-index.html#removing-from-index)。

<!-- source: zh/_includes/buttons/chat-button.md -->
[与我们聊天](https://yandex.com/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

<!-- source: zh/_includes/styles/href-to-button.md -->

<!-- endsource: zh/_includes/styles/href-to-button.md -->
<!-- endsource: zh/_includes/buttons/chat-button.md -->

<!-- source: zh/_includes/support-2.md -->
<div class="cut-button">

{% cut "发送电子邮件" %}

<!-- source: zh/_includes/popup/id-popup/wrong-sup.md -->
请注意：我们的支持团队永远不会主动给您打电话。 请勿按照自称为 Yandex Metrica 支持团队来电者的指示操作。
<!-- endsource: zh/_includes/popup/id-popup/wrong-sup.md -->

<div style="padding: 15px;
     margin: 10px 0;
     background: #FFFFFF;
     border-radius: 10px;
     border: 1px solid var(--yc-color-line-generic);">
  <iframe style="background: #FFFFFF;"
        height="700"
        width="100%"
        frameborder="0"
        src="https://forms.yandex.com/surveys/10011833/?&iframe=1&lang=en">
  </iframe>
</div>

{% endcut %}

</div>

<!-- source: zh/_includes/styles/cut-button.md -->

<!-- endsource: zh/_includes/styles/cut-button.md -->
<!-- endsource: zh/_includes/support-2.md -->


[联系我们](https://yandex-ad.cn/contact){.button}


<!-- source: zh/_includes/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
实用链接

- [演示计数器](https://metrica.yandex.com/r/dashboard?)
- [添加计数器](https://metrica.yandex.com/add/)
- [免费计数器设置](https://yandex.com/promo/freeservice/metrica?utm_source=help_metrica_en&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com/metrika/)
- [提出您的想法](https://yandex.com/support/metrica/troubleshooting/idea.html)
|
线上培训



- [参加培训课程](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

<!-- source: zh/_includes/styles/table-style.md -->

<!-- endsource: zh/_includes/styles/table-style.md -->
<!-- endsource: zh/_includes/footer-links.md -->

<!-- source: zh/_includes/styles/href-to-button.md -->

<!-- endsource: zh/_includes/styles/href-to-button.md -->

[*Страница-дубль]: 一个网站页面的内容与同一网站上另一个页面的内容重复，但可以通过不同的地址访问。