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

目前,meta.discourse.org 上的 Discourse 会向 Google Rich Results Test 提供移动视图,而不是爬虫视图。

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

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

  • 在 Google Rich Results Test 中检查此结果
  • 点击“查看测试页面”
  • 点击“屏幕截图”


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

  • Googlebot
  • Google-InspectionTool < – 将此添加到已知的爬虫代理中!

请参阅 Google Crawler (User Agent) Overview | Google Search Central  |  Documentation  |  Google for Developers

Google-InspectionTool 是 Search 测试工具(如富媒体搜索结果测试和 Search Console 中的网址检查)使用的爬虫。除了用户代理和用户代理令牌外,它还会模仿 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;)
1 个赞

与此同时,您可以在 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_ 来进行测试。

2 个赞

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

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