小编Pie*_*ode的帖子

Google SDTT错误:"为http://www.example.com/提供的所有值必须具有相同的域名."

当我从Google文档(下面的代码片段)中复制/粘贴JSON-LD示例时,我在结构化数据测试工具中收到错误:

http://www.your-company-site.com(提供的所有值 http://www.example.com/必须具有相同的域.)

为什么Google自己的文档示例会出错?

Google文档中的代码段:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "url": "http://www.your-company-site.com",
  "contactPoint": [{
    "@type": "ContactPoint",
    "telephone": "+1-401-555-1212",
    "contactType": "customer service"
  }]
}
</script>
Run Code Online (Sandbox Code Playgroud)

url schema.org json-ld google-rich-snippets

14
推荐指数
4
解决办法
9822
查看次数

标签 统计

google-rich-snippets ×1

json-ld ×1

schema.org ×1

url ×1