Google结构化数据错误:“为http://www.example.com/提供的所有值都必须具有相同的域." [英] Google structured data error: "All values provided for http://www.example.com/ must have the same domain."

查看:94
本文介绍了Google结构化数据错误:“为http://www.example.com/提供的所有值都必须具有相同的域."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to add Corporate Contacts in Google Search. I test the following code in Google's Structured Data Testing Tool, but it threw this error:

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

https://coda-resume.herokuapp.com/ (All values provided for http://www.example.com/ must have the same domain.)

这是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>

(我将其放在head元素中.)

(I put this in the head element.)

推荐答案

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

This is likely a bug in Google’s Structured Data Testing Tool.

(删除contactPoint属性后,该工具将不再报告错误,尽管该代码段仍包含相同的url值.)

(When removing the contactPoint property, the tool no longer reports an error, although the snippet still contains the same url value.)

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

这篇关于Google结构化数据错误:“为http://www.example.com/提供的所有值都必须具有相同的域."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆