【问题标题】:How to create Breadcrumb list Schema - json如何创建面包屑列表模式 - json
【发布时间】:2019-04-25 09:03:57
【问题描述】:

我了解面包屑的一般创建。

第 1 级:主页/第 2 级:博客/第 3 级:博客文章的标题。

我不确定 3 级是如何工作的 - 有没有办法在架构上拉入当前页面?

    <script type="application/ld+json">
{
 "@context": "http://schema.org",
 "@type": "BreadcrumbList",
 "itemListElement":
 [
  {
   "@type": "ListItem",
   "position": 1,
   "item":
   {
    "@id": "https://example.com/dresses",
    "name": "Dresses"
    }
  },
  {
   "@type": "ListItem",
  "position": 2,
  "item":
   {
     "@id": "https://example.com/dresses/real",
     "name": "Real Dresses"
   },
  {
   "@type": "ListItem",
  "position": 3,
  "item":
   {
     "@id": "https://example.com/dresses/real/",
     "name": "Current Page"
   }
  }
  }
 ]
}
</script>

所以在我来自 schema.org 的示例中,我需要第三项作为用户所在的当前页面.....这可能吗?

google 搜索中的示例将显示站点名称 > 博客 > 新闻(如果新闻是页面名称)。

提前感谢您的帮助!

【问题讨论】:

    标签: json schema


    【解决方案1】:

    我找到的最佳答案:

    https://moz.com/blog/using-google-tag-manager-to-dynamically-generate-schema-org-json-ld-tags

    可以使用js构建GTM中的标签。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多