Structured Data กิจกรรมสำหรับทำที่บ้าน (VirtualLocation)

คุณเพิ่มข้อมูลที่มีโครงสร้างลงในหน้ากิจกรรมออนไลน์และวิดีโอเพื่อช่วยให้ผู้ใช้ค้นพบกิจกรรมที่ทำที่บ้านได้ เมื่อผู้ใช้ค้นหากิจกรรมสำหรับทำที่บ้าน วิดีโอและกิจกรรมออนไลน์จะปรากฏในผลการค้นหาที่เป็นสื่อสมบูรณ์ ผู้ใช้จะคลิกวิดีโอหรือคลาสเพื่อดูรายละเอียดเพิ่มเติมได้ เช่น คําอธิบายกิจกรรม วิธีลงทะเบียน หรือรับชมเลย

ตัวอย่างเนื้อหาประเภทกิจกรรมสำหรับทำที่บ้านมีดังนี้

  • วิดีโอสตรีมแบบสดที่กำลังจะมีขึ้น
  • วิดีโอที่บันทึกไว้แล้ว
  • กิจกรรมออนไลน์
ผลการค้นหาที่เป็นสื่อสมบูรณ์ของกิจกรรมสำหรับทำที่บ้าน

ความพร้อมใช้งานของฟีเจอร์

ผลการค้นหาที่เป็นสื่อสมบูรณ์ของกิจกรรมสำหรับทำที่บ้านมีให้บริการในสหรัฐอเมริกาเป็นภาษาอังกฤษเท่านั้น และใช้ได้ในอุปกรณ์เคลื่อนที่ ปัจจุบันฟีเจอร์นี้จะแสดงต่อเมื่อมีการค้นหาที่เกี่ยวข้องกับการออกกำลังกาย (เช่น "ออกกำลังกายออนไลน์" หรือ "โยคะที่บ้าน")

คำแนะนำเกี่ยวกับการมีสิทธิ์

หากต้องการให้มีสิทธิ์แสดงเป็นผลการค้นหาที่เป็นริชมีเดียของกิจกรรมสำหรับทำที่บ้าน ให้ทำตามหลักเกณฑ์ต่อไปนี้

  1. เพิ่มข้อมูลที่มีโครงสร้าง Event หรือ Video ตามเอกสารประกอบ โดยทั่วไปแล้ว ข้อมูลที่มีโครงสร้าง Event เหมาะสำหรับกิจกรรมออนไลน์ที่จะเกิดขึ้นในอนาคต และข้อมูลที่มีโครงสร้าง Video เหมาะสําหรับวิดีโอที่เผยแพร่แล้ว
  2. กิจกรรมต้องเป็นกิจกรรมออนไลน์ ไม่ใช่กิจกรรมที่ต้องเดินทางไปยังสถานที่นั้นๆ ในข้อมูลที่มีโครงสร้าง Event ให้ทำดังนี้
    • ตั้งค่า eventAttendanceMode เป็น OnlineEventAttendanceMode
    • ใช้ประเภท VirtualLocation สำหรับพร็อพเพอร์ตี้ location
    • เพิ่มพร็อพเพอร์ตี้ location.url
    • ระบุเขตเวลาที่ถูกต้อง การตั้งค่าเขตเวลาที่ถูกต้องเป็นสิ่งสําคัญสําหรับกิจกรรมออนไลน์เนื่องจากไม่มีข้อมูลสถานที่จริงที่จะยืนยันเวลาที่ถูกต้อง
  3. สําหรับวิดีโอ ให้เน้นที่การเพิ่มพร็อพเพอร์ตี้ description และ duration เพราะจะช่วยให้ Google เข้าใจเนื้อหาของวิดีโอ หากวิดีโอเป็นสตรีมแบบสดที่กำลังจะมีขึ้น คุณเพิ่มมาร์กอัปทั้ง 2 ประเภทได้ (Video และ Event) แต่ไม่จำเป็น อย่างไรก็ตาม หากคุณใช้มาร์กอัป 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": "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>
Microdata

<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="2020-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": "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>
Microdata

<html itemscope itemprop="Event" itemtype="https://schema.org/Event">
<head>
  <title itemprop="name">Boxing Workout</title>
</head>
<body>
  <meta itemprop="startDate" content="2021-07-31T06:00:00-05:00" />
  <meta itemprop="endDate" content="2021-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_201803180430" />
    <meta itemprop="price" content="30" />
    <meta itemprop="priceCurrency" content="USD" />
    <meta itemprop="availability" content="https://schema.org/InStock" />
    <meta itemprop="validFrom" content="2021-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>