Structured Data สำหรับรายการหลักสูตร (Course)

ภาพแสดงรายการหลักสูตรใน Google Search โดยภาพแสดงหลักสูตร 3 รายการจากเว็บไซต์เดียวกันในรูปแบบรายการที่ผู้ใช้สามารถดูและเลือกหลักสูตรที่ต้องการได้

เมื่อใช้ Structured Data รายการหลักสูตร คุณสามารถให้ข้อมูลเพิ่มเติมเกี่ยวกับหลักสูตรเพื่อให้ผู้ที่อาจสนใจเรียนหลักสูตรได้ค้นหาหลักสูตรของคุณผ่าน Google Search ได้ คุณสามารถระบุรายละเอียดต่างๆ เช่น ชื่อหลักสูตร ผู้ที่เปิดสอน และคำอธิบายสั้นๆ

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

ผลการค้นหาที่เป็นริชมีเดียของรายการหลักสูตรมีให้บริการเป็นภาษาอังกฤษในทุกภูมิภาคที่ใช้งาน Google Search ได้

How to add structured data

Structured data is a standardized format for providing information about a page and classifying the page content. If you're new to structured data, you can learn more about how structured data works.

Here's an overview of how to build, test, and release structured data.

  1. Add the required properties. Based on the format you're using, learn where to insert structured data on the page.
  2. Follow the guidelines.
  3. Validate your code using the Rich Results Test and fix any critical errors. Consider also fixing any non-critical issues that may be flagged in the tool, as they can help improve the quality of your structured data (however, this isn't necessary to be eligible for rich results).
  4. Deploy a few pages that include your structured data and use the URL Inspection tool to test how Google sees the page. Be sure that your page is accessible to Google and not blocked by a robots.txt file, the noindex tag, or login requirements. If the page looks okay, you can ask Google to recrawl your URLs.
  5. To keep Google informed of future changes, we recommend that you submit a sitemap. You can automate this with the Search Console Sitemap API.

ตัวอย่าง

หน้ารายละเอียดหลักสูตรแบบหน้าเดียว

ต่อไปนี้คือตัวอย่างหน้ารายละเอียดของหลักสูตรแบบหน้าเดียว หน้านี้ต้องจับคู่กับหน้าสรุปที่มีมาร์กอัป ItemList

<html>
  <head>
    <title>Introduction to Computer Science and Programming</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Course",
      "name": "Introduction to Computer Science and Programming",
      "description": "Introductory CS course laying out the basics.",
      "provider": {
        "@type": "Organization",
        "name": "University of Technology - Eureka",
        "sameAs": "https://www.example.com"
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>

หน้าเดียวแบบรวมทุกรายการ

หน้าเดียวแบบรวมทุกรายการจะมีลักษณะดังต่อไปนี้ การตั้งค่าหน้านี้มีทั้งมาร์กอัปรายการและรายละเอียดของแต่ละหลักสูตรอยู่ในหน้าเดียวกัน

<html>
  <head>
    <title>Computer Science Courses</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "ItemList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "item": {
            "@type": "Course",
            "url":"https://www.example.com/courses#intro-to-cs",
            "name": "Introduction to Computer Science and Programming",
            "description": "This is an introductory CS course laying out the basics.",
            "provider": {
              "@type": "Organization",
              "name": "University of Technology - Example",
              "sameAs": "https://www.example.com"
           }
          }
        },
        {
          "@type": "ListItem",
          "position": 2,
          "item": {
            "@type": "Course",
            "url":"https://www.example.com/courses#intermediate-cs",
            "name": "Intermediate Computer Science and Programming",
            "description": "This is a CS course that builds on the basics learned in the Introduction course.",
            "provider": {
              "@type": "Organization",
              "name": "University of Technology - Example",
              "sameAs": "https://www.example.com"
           }
         }
        },
        {
          "@type": "ListItem",
          "position": 3,
          "item": {
            "@type": "Course",
            "url":"https://www.example.com/courses#advanced-cs",
            "name": "Advanced Computer Science and Programming",
            "description": "This CS course covers advanced programming principles.",
            "provider": {
              "@type": "Organization",
              "name": "University of Technology - Eureka",
              "sameAs": "https://www.example.com"
           }
          }
        }
      ]
    }
    </script>
  </head>
  <body>
  </body>
</html>

หลักเกณฑ์

คุณต้องทำตามหลักเกณฑ์เหล่านี้เพื่อให้มีสิทธิ์ปรากฏในรายการหลักสูตร

หลักเกณฑ์เนื้อหา

  • ใช้มาร์กอัป Course สำหรับเนื้อหาด้านการศึกษาที่ตรงกับคำจำกัดความของคำว่าหลักสูตรต่อไปนี้เท่านั้น ได้แก่ ชุดหรือหน่วยหลักสูตรการศึกษาที่มีการบรรยาย บทเรียน หรือโมดูลเกี่ยวกับวิชาและ/หรือหัวข้อที่เจาะจง
  • หลักสูตรต้องมีผลสัมฤทธิ์ทางการศึกษาอันเป็นความรู้และ/หรือทักษะที่ชัดเจนเกี่ยวกับวิชาและ/หรือหัวข้อที่เจาะจง และมีผู้สอน 1 คนหรือมากกว่านั้น พร้อมด้วยบัญชีรายชื่อนักเรียน
  • กิจกรรมสำหรับบุคคลทั่วไป เช่น "วันดาราศาสตร์" ไม่ใช่หลักสูตร และ "วิดีโอสอนทำแซนด์วิช" ความยาว 2 นาทีรายการเดียวก็ไม่ถือว่าเป็นหลักสูตร

หลักเกณฑ์ทางเทคนิค

คุณต้องมาร์กอัปหลักสูตรอย่างน้อย 3 หลักสูตร หลักสูตรอาจอยู่ในหน้ารายละเอียดแยกต่างหาก หรือในหน้าแบบรวมทุกรายการ

คุณต้องเพิ่มมาร์กอัปภาพสไลด์ในหน้าสรุปหรือหน้าแบบรวมทุกรายการ

แต่ละหลักสูตรต้องมีพร็อพเพอร์ตี้ name และ provider ที่ถูกต้อง ตัวอย่างแนวทางปฏิบัติเกี่ยวกับการตั้งชื่อที่ไม่ถูกต้องมีดังต่อไปนี้

  • วลีโปรโมต "โรงเรียนที่ดีที่สุดในโลก"
  • การใส่ราคาในชื่อหลักสูตร "เรียนอูคูเลเล่ เพียง $30!"
  • การใช้สิ่งที่ไม่ใช่หลักสูตรเป็นชื่อ เช่น "ทำเงินได้อย่างรวดเร็วด้วยคลาสนี้!"
  • ส่วนลดหรือโอกาสในการซื้อ เช่น "บุคลากรแถวหน้าในวงการจะมาเผยความลับสู่ความสำเร็จ ลด 25%!"

คำจำกัดความของประเภท Structured Data

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

Course

ใช้พร็อพเพอร์ตี้ต่อไปนี้เพื่อมาร์กอัปอย่างน้อย 3 หลักสูตร หลักสูตรอาจอยู่ในหน้ารายละเอียดแยกต่างหาก หรือในหน้าแบบรวมทุกรายการ

ดูคำจำกัดความที่สมบูรณ์ของ Course ได้ที่ schema.org/Course พร็อพเพอร์ตี้ที่ Google รองรับมีดังต่อไปนี้

พร็อพเพอร์ตี้ที่จำเป็น
description

Text

คำอธิบายของหลักสูตร จำกัดการแสดงผล 60 อักขระ

name

Text

ชื่อของหลักสูตร

พร็อพเพอร์ตี้ที่แนะนำ
provider

Organization

องค์กรที่เผยแพร่เนื้อหาต้นฉบับของหลักสูตร เช่น UC Berkeley

ItemList

นอกจากพร็อพเพอร์ตี้ Course ให้เพิ่มพร็อพเพอร์ตี้ต่อไปนี้เพื่อระบุรายการ คุณจะเพิ่มพร็อพเพอร์ตี้เหล่านี้ในหน้าสรุปหรือในหน้าแบบรวมทุกรายการก็ได้

ดูคำจำกัดความที่สมบูรณ์ของ ItemList ได้ที่ schema.org/ItemList

พร็อพเพอร์ตี้ที่จำเป็น
itemListElement

ListItem

ข้อมูลเสริมของหน้ารายการเดี่ยว

ListItem.position

Integer

ตำแหน่งตามลำดับของหน้ารายการในลิสต์

ListItem.url

URL

Canonical URL ของหน้ารายการ รายการทั้งหมดต้องมี URL ที่ไม่ซ้ำกัน

การแก้ปัญหา

หากประสบปัญหาในการใช้หรือแก้ไขข้อบกพร่องของ Structured Data โปรดดูแหล่งข้อมูลต่อไปนี้ซึ่งอาจช่วยคุณได้