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

Cod*_*ang 3 google-search schema.org json-ld google-rich-snippets

我想在Google搜索中添加公司联系人.我在Google的结构化数据测试工具中测试了以下代码,但它抛出了这个错误:

Google SDTT:1错误

https://coda-resume.herokuapp.com/(提供的所有值http://www.example.com/必须具有相同的域.)

这是JSON-LD:

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

(我把它放在head元素中.)

uno*_*nor 11

这可能是Google结构化数据测试工具中的一个错误.

(删除contactPoint属性时,虽然代码段仍包含相同的url值,但该工具不再报告错误.)

请参阅DieterDP在相关问题中的答案.