# Google Search Console/Schema Markup 测试工具 "Google Rich Results Test"：mobile-view 而不是 crawler-view

**URL:** <https://meta.discourse.org/t/google-search-console-schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039>\
**Category:** Bug\
**Created:** [2024年一月9日 16:53 UTC](https://meta.discourse.org/t/google-search-console-schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039 "2024-01-09T16:53:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rrit](https://meta.discourse.org/u/rrit)\
**Post date:** [2024年一月9日 16:53 UTC](https://meta.discourse.org/t/google-search-console-schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039/1 "2024-01-09T16:53:57Z")

</div>

目前，`meta.discourse.org` 上的 Discourse 会向 [Google Rich Results Test](https://search.google.com/test/rich-results?hl=en) 提供移动视图，而不是爬虫视图。

由于移动视图中没有 Schema Markup，因此无法检查 Schema Markup。

例如，请参阅 Google Rich Results Test 中的“屏幕截图”。

- 在 Google Rich Results Test 中检查[此结果](https://search.google.com/test/rich-results/result?id=OiBw0f7yQN7JkRCapNZB7g&hl=en)
- 点击“查看测试页面”
- 点击“屏幕截图”

 ![grafik](https://global.discourse-cdn.com/meta/original/4X/a/a/d/aadcb408b131faeba5c6eb8c7d43549ab6fa6ea5.png)

* * *

自 23 年 8 月起，Google-InspectionTool 的 `User agent token` 可能是以下之一：

- `Googlebot`
- `Google-InspectionTool` \< – **将此添加到已知的爬虫代理中！**

请参阅 [Google Crawler (User Agent) Overview | Google Search Central &nbsp;|&nbsp; Documentation &nbsp;|&nbsp; Google for Developers](https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers?hl=en#google-inspectiontool)

> Google-InspectionTool 是 Search 测试工具（如[富媒体搜索结果测试](https://search.google.com/test/rich-results)和 Search Console 中的[网址检查](https://support.google.com/webmasters/answer/9012289)）使用的爬虫。除了用户代理和用户代理令牌外，它还会模仿 Googlebot。
> 
> 用户代理令牌
> 
> - `Google-InspectionTool`
> - `Googlebot`
> 
> * * *
> 
> 完整用户代理字符串
> 
> - 移动设备  
> `Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z Mobile Safari/537.36 (compatible; Google-InspectionTool/1.0;)`
> - 桌面设备  
> `Mozilla/5.0 (compatible; Google-InspectionTool/1.0;)`

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2024年一月9日 17:04 UTC](https://meta.discourse.org/t/google-search-console-schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039/2 "2024-01-09T17:04:03Z")

</div>

与此同时，您可以在 URL 末尾添加 `?_escaped_fragment_`，例如 [https://meta.discourse.org/t/schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039?\_escaped\_fragment\_](https://meta.discourse.org/t/schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039?_escaped_fragment_) 来进行测试。

---

<div class="post-metadata">

**Author:** ![rrit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rrit](https://meta.discourse.org/u/rrit)\
**Post date:** [2024年一月9日 17:17 UTC](https://meta.discourse.org/t/google-search-console-schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039/3 "2024-01-09T17:17:09Z")

</div>

这可能也会影响接受 Google Search Console 中的“开始新验证”之前的预检查：

 ![grafik](https://global.discourse-cdn.com/meta/original/4X/7/4/f/74f54573851b6937668d855389ff0d4572ead666.png)

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [2024年三月26日 17:08 UTC](https://meta.discourse.org/t/google-search-console-schema-markup-test-tool-google-rich-results-test-mobile-view-instead-of-crawler-view/291039/4 "2024-03-26T17:08:22Z")

</div>

> [@rrit](#):
>
> `Google-InspectionTool` ← **将此添加到已知的爬虫代理！**

现在已通过 [DEV: Add Google-InspectionTool as a crawler user agent (#26375) · discourse/discourse@312a5ea · GitHub](https://github.com/discourse/discourse/commit/312a5ead1fe26d04b02a640c2256185857ca7dca) 完成此操作
