2017-08-01 57 views
0

这是我的公司联系人富牌JSON代码,但我得到的错误:我在哪里可以把JSON代码从我的富牌

"All values provided for https://search.google.com/structured-data/testing-tool/ must have the same domain".

<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@type": "Organization", 
    "url": "http://www.example.com", 
    "contactPoint": [{ 
        "@type": "ContactPoint", 
        "telephone": "+1-401-555-1212", 
        "contactType": "customer service" 
        }] 
} 
</script> 

,我很困惑在哪里可以在我的网站把这个代码

回答

0

把它像正常的javascript代码。

例如,

<head> 
    <script type="application/ld+json"> 
    { 
     "@context": "http://schema.org", 
     "@type": "Organization", 
     "url": "http://www.example.com", 
     "contactPoint": [{ 
         "@type": "ContactPoint", 
         "telephone": "+1-401-555-1212", 
         "contactType": "customer service" 
         }] 
    } 
    </script> 
</head> 

您还可以测试你致富卡谷歌结构化数据测试工具

https://search.google.com/structured-data/testing-tool/u/0/