Google不会对痕迹导航进行索引

时间:2016-01-24 19:35:11

标签: search indexing seo breadcrumbs

我想请求帮助。 5个月前,我在网上添加了这段代码:

<script type="application/ld+json">
    {
    "@context": "http://myweb.com",
    "@type": "BreadcrumbList",
    "itemListElement":
    [
    {
    "@type": "ListItem",
    "position": 1,
    "item":
    {
    "@id": "http://myweb.com",
    "name": "Myweb"
    }
    }
                ,{
        "@type": "ListItem",
        "position": 2,
        "item":
        {
        "@id": "http://myweb.com/adverts/cars",
        "name": "Cars"
        }
        }
                    ]
    }
</script>

但谷歌仍然没有通过网络上的结果显示痕迹导航。我哪里错了? 谢谢大家。

1 个答案:

答案 0 :(得分:1)

将@context上的网址更改为http://schema.org,使其显示如下

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement":
[
{
"@type": "ListItem",
"position": 1,
"item":
{
"@id": "http://myweb.com",
"name": "Myweb"
}
}
            ,{
    "@type": "ListItem",
    "position": 2,
    "item":
    {
    "@id": "http://myweb.com/adverts/cars",
    "name": "Cars"
    }
    }
                ]
}

然后使用Google的工具https://developers.google.com/structured-data/testing-tool/

对其进行验证