居家活動 (VirtualLocation) 結構化資料

如要協助使用者尋找在家就能從事的活動,您可以在線上活動和影片頁面加入結構化資料。這樣當使用者搜尋能在家中進行的活動時,您的影片和線上活動就能以複合式搜尋結果的形式呈現。使用者可以點選影片或課程來查看活動詳情、註冊方式等詳細資料,或是選擇立即觀看影片。

以下列舉幾種居家活動的內容類型:

  • 即將舉行的影片直播活動
  • 預錄影片
  • 線上活動
居家活動複合式搜尋結果

功能適用情況

居家活動複合式搜尋結果目前僅於美國推出英文版。這項功能適用於行動裝置,且目前只支援健身相關的搜尋,例如「線上運動」或「在家做瑜珈」。

適用資格準則

如要讓內容能夠呈現為居家活動複合式搜尋結果,請遵循下列規範:

  1. 依照說明文件所述規範,加入 EventVideo 結構化資料。Event 結構化資料通常用於尚未舉行的線上活動,而 Video 結構化資料則適用於已發布的影片。
  2. 活動必須在線上舉行,不能是現場活動。使用 Event 結構化資料時,請務必遵循下列規範:
  3. 如果您的內容是影片,請優先加入 descriptionduration 屬性,這將有助於 Google 瞭解影片的性質。如果您的影片是即將舉行的影片直播活動,可以同時加入 VideoEvent 兩種類型的標記,但並非必要。不過,如果您的直播活動使用了 Video 標記,建議同時加入 BroadcastEvent 屬性,並遵循「直播」標記指南

範例

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": "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

JSON-LD

以下是具有 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>