2017-08-01 58 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/