【发布时间】:2019-03-11 10:17:15
【问题描述】:
我正在为当地的美容院建立一个网站。他们提供按摩和各种美容护理等服务。全部可见于 1 个概览页面(价目表)
我发现https://schema.org/Product 可以用于服务:
任何提供的产品或服务。例如:一双鞋;演唱会门票;租车;理发
第一个问题,我可以忽略可用性和条件等字段吗?
其次,我应该将这个产品列为ItemOffered 在Offer 内吗?或者这不是正确的方法?
例子:
{
"@context": "http://schema.org",
"@type": "WebPageElement",
"offers": {
"@type": "Offer",
"itemOffered": [
{
"@type": "Product",
"@id": "/beauty-treatment-a",
"description": "Short description with details",
"name": "Beauty Treatment A",
"offers": {
"@type": "Offer",
"price": "18.28",
"priceCurrency": "EUR",
"description": "Same description",
"name": "Same name",
"image": {
"@context": "http://schema.org",
"@type": "ImageObject",
"contentUrl": "image-a.jpg",
"description": "Same name",
"width": 640,
"height": 640
}
}
},
{
"@type": "Product",
"@id": "/beauty-treatment-b",
"description": "Short description with details",
"name": "Beauty Treatment B",
"offers": {
"@type": "Offer",
"price": "18.28",
"priceCurrency": "EUR",
"description": "Same description",
"name": "Same name",
"image": {
"@context": "http://schema.org",
"@type": "ImageObject",
"contentUrl": "image-b.jpg",
"description": "Same name",
"width": 640,
"height": 640
}
}
]
}
}
【问题讨论】:
-
当您使用 Google Rich Snippets 标签时,这是否意味着您只想提供数据以在 Google 搜索中获取 Product 丰富结果?或者您是否询问一般如何使用 Schema.org,无论哪个消费者可能会使用您的数据?
-
是的,确实如此。我想为 Google 搜索提供数据。
标签: schema.org google-rich-snippets