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