为了帮助用户发现可在家中参与的活动,您可以在自己的线上活动和视频网页中添加结构化数据。当用户搜索可在家中参与的活动时,相关视频和线上活动便会显示在富媒体搜索结果中。用户可以点击视频或课程,查看活动说明、注册方法等详细信息或立即观看。
以下是一些居家活动内容类型的示例:
- 即将进行的视频直播
- 已录制的视频
- 线上活动
功能可用性
目前,居家活动富媒体搜索结果仅在美国以英语提供。此功能可在移动设备上提供。目前,只有当用户搜索与健身相关的内容(例如“线上锻炼”或“在家练瑜伽”)时才会显示此类结果。
资格要求指南
若要让您的内容能够显示为“居家活动”富媒体搜索结果,请遵循以下指南:
- 根据文档添加
Event
或Video
结构化数据。Event
结构化数据通常适用于未来举行的线上活动,而Video
结构化数据则适用于已发布的视频。 - 活动必须是虚拟活动,而不是线下活动。在
Event
结构化数据中,请确保:- 将
eventAttendanceMode
设为OnlineEventAttendanceMode
。 - 对
location
属性使用VirtualLocation
类型。 - 添加
location.url
属性。 - 指定正确的时区。由于无法根据实际地点验证时间是否正确,因此设置正确的时区对线上活动而言至关重要。
- 将
- 对于视频,应着重添加
description
和duration
属性,因为这些属性可以帮助 Google 了解视频内容。如果您的视频是即将进行的直播,您可以同时添加Video
和Event
这两种标记,但并非必须如此。不过,如果您针对直播使用Video
标记,我们建议您添加BroadcastEvent
属性,并遵循“LIVE”徽章指南。
示例
Video
下面是一个包含 Video
结构化数据的视频网页示例。
JSON-LD微数据
<html>
<head>
<title>20 Min Aerobic Workout Reduction</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "20 Min Aerobic Workout Reduction",
"description": "Get your exercise in, from home. Watch this quick 20 minute workout video.",
"thumbnailUrl": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"uploadDate": "2020-03-31T08:00:00+08:00",
"duration": "PT20M46S",
"contentUrl": "https://www.googlebotclass.com/video/123/20-min-workout.mp4",
"embedUrl": "https://www.googlebotclass.com/embed/123",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": { "@type": "WatchAction" },
"userInteractionCount": 5647018
},
"regionsAllowed": "US"
}
</script>
</head>
<body>
</body>
</html>
Event
JSON-LD微数据
Event
结构化数据的线上活动网页示例。
<html>
<head>
<title>Boxing Workout</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Boxing Workout",
"startDate": "2021-07-31T06:00:00-05:00",
"endDate": "2021-07-31T07:00-05:00",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"location": {
"@type": "VirtualLocation",
"url": "https://googlebotcourse.com/boxing-workout"
},
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"description": "Boxing is a full body workout that rapidly changes the shape of your body through a dynamic workout. The technique develops lean, strong and flexible muscles.",
"offers": {
"@type": "Offer",
"url": "https://www.googlebotcourse.com/event_offer/12345_201803180430",
"price": "30",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"validFrom": "2021-05-21T12:00"
},
"organizer": {
"@type": "Organization",
"name": "Get Fit with Googlebot",
"url": "https://getfitwithgooglebot.com"
},
"performer": {
"@type": "Person",
"name": "Virginia Woolf"
}
}
</script>
</head>
<body>
</body>
</html>
正文完