Structured Data สำหรับคําถามที่พบบ่อย (FAQPage, Question, Answer)

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

ผลการค้นหาที่เป็นสื่อสมบูรณ์สำหรับคำถามที่พบบ่อยใน 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.

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

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

ตัวอย่าง

JSON-LD

ต่อไปนี้คือตัวอย่างของ FAQPage ใน JSON-LD


<html>
  <head>
    <title>Finding an apprenticeship - Frequently Asked Questions(FAQ)</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [{
        "@type": "Question",
        "name": "How to find an apprenticeship?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "<p>We provide an official service to search through available apprenticeships. To get started, create an account here, specify the desired region, and your preferences. You will be able to search through all officially registered open apprenticeships.</p>"
        }
      }, {
        "@type": "Question",
        "name": "Whom to contact?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "You can contact the apprenticeship office through our official phone hotline above, or with the web-form below. We generally respond to written requests within 7-10 days."
        }
      }]
    }
    </script>
  </head>
  <body>
  </body>
</html>
Microdata

ต่อไปนี้คือตัวอย่างของ FAQPage ใน Microdata


<html itemscope itemtype="https://schema.org/FAQPage">
<head></head>
<body>
  <h1>
    Frequently Asked Questions(FAQ)
  </h1>
  <div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
    <h2 itemprop="name">How to find an apprenticeship?</h2>
    <div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
      <div itemprop="text">
        We provide an official service to search through available apprenticeships. To get started, create an account here, specify the desired region, and your preferences. You will be able to search through all officially registered open apprenticeships.
      </div>
    </div>
  </div>
  <div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
    <h2 itemprop="name">Whom to contact?</h2>
    <div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
      <div itemprop="text">
        You can contact the apprenticeship office through our official phone hotline above, or with the web-form below. We generally respond to written requests within 7-10 days.
      </div>
    </div>
  </div>
</body>
</html>

หลักเกณฑ์

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

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

  • ใช้ FAQPage เฉพาะเมื่อหน้าเว็บมีคำถามที่พบบ่อยซึ่งแต่ละคำถามมีเพียงคำตอบเดียว หากมีคำถามข้อเดียวในหน้าและผู้ใช้ส่งคำตอบอื่นๆ มาได้ ให้ใช้ QAPage แทน โดยมีตัวอย่างดังนี้

    Use Case ที่ถูกต้อง:

    • หน้าคำถามที่พบบ่อยซึ่งทางเว็บไซต์เขียนขึ้นเอง โดยไม่มีช่องทางให้ผู้ใช้ส่งคำตอบอื่นๆ มา
    • หน้าการสนับสนุนของหน่วยงานรัฐบาลที่แสดงรายการคำถามที่พบบ่อย โดยไม่มีช่องทางให้ผู้ใช้ส่งคำตอบอื่นๆ มา

    Use Case ที่ไม่ถูกต้อง:

    • หน้าฟอรัมที่ผู้ใช้ส่งคำตอบสำหรับคำถามข้อเดียวได้
    • หน้าสนับสนุนของผลิตภัณฑ์ที่ผู้ใช้ส่งคำตอบสำหรับคำถามข้อเดียวได้
    • หน้าผลิตภัณฑ์ที่ผู้ใช้ส่งคำถามและคำตอบหลายรายการได้ในหน้าเดียว
  • อย่าใช้ FAQPage เพื่อการโฆษณา
  • ตรวจสอบว่า Question แต่ละรายการมีข้อความของคำถามครบถ้วน และ Answer แต่ละรายการมีข้อความของคำตอบครบถ้วน เนื่องจากระบบอาจแสดงคำถามและคำตอบทั้งข้อความ
  • เนื้อหาคำถามและคำตอบอาจไม่แสดงเป็นผลการค้นหาที่เป็นสื่อสมบูรณ์หากประกอบด้วยเนื้อหาประเภทต่างๆ ต่อไปนี้ ได้แก่ เนื้อหาที่ลามก หยาบคาย ไม่เหมาะสมทางเพศ รุนแรงสยดสยอง การส่งเสริมกิจกรรมที่เป็นอันตรายหรือผิดกฎหมาย หรือภาษาที่แสดงความเกลียดชังหรือล่วงละเมิด
  • เนื้อหา FAQ ทั้งหมดต้องปรากฏให้ผู้ใช้เห็นในหน้าต้นทาง โดยมีตัวอย่างดังนี้

    Use Case ที่ถูกต้อง:

    • ทั้งคําถามและคําตอบจะปรากฏในหน้านั้น
    • คําถามจะปรากฏในหน้านั้นและคําตอบจะซ่อนอยู่ข้างในส่วนที่ขยายได้ ผู้ใช้จะเข้าถึงคําตอบได้โดยคลิกส่วนที่ขยายได้

    Use Case ที่ไม่ถูกต้อง: ผู้ใช้ไม่พบเนื้อหาคําถามที่พบบ่อยเลยในหน้านั้น

  • หากคุณมีเนื้อหาคำถามที่พบบ่อยซ้ำกันในเว็บไซต์ (หมายถึงคำถามและคำตอบเดียวกันปรากฏในหน้าของเว็บไซต์หลายหน้า) ให้มาร์กอัปคำถามที่พบบ่อยนั้นๆ เพียง 1 อินสแตนซ์สำหรับทั้งเว็บไซต์

คำจำกัดความของประเภทข้อมูลที่มีโครงสร้าง

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

FAQPage

ดูคำจำกัดความทั้งหมดของ FAQPage ได้ที่ schema.org

ประเภท FAQPage จะบ่งบอกว่าหน้านั้นๆ เป็นคำถามที่พบบ่อยและมีคำถามที่ตอบแล้ว และจะต้องมีคำจำกัดความประเภท FAQPage จำนวน 1 รายการต่อหน้า

พร็อพเพอร์ตี้ที่ Google รองรับมีดังต่อไปนี้

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

อาร์เรย์ขององค์ประกอบ Question ซึ่งประกอบขึ้นเป็นรายการคำถามที่ตอบแล้วซึ่งแสดงใน FAQPage นี้ คุณต้องระบุรายการ Question ที่ถูกต้องอย่างน้อย 1 รายการ รายการ Question จะมีทั้งคําถามและคําตอบ

Question

ดูคำจำกัดความทั้งหมดของ Question ได้ที่ schema.org

ประเภท Question กำหนดคำถามที่ตอบแล้วข้อเดียวในคำถามที่พบบ่อย ทุกๆ อินสแตนซ์ของ Question ต้องอยู่ในอาร์เรย์พร็อพเพอร์ตี้ mainEntity ของ schema.org/FAQPage

พร็อพเพอร์ตี้ที่ Google รองรับมีดังต่อไปนี้

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

คำตอบสำหรับคำถาม แต่ละคำถามต้องมี 1 คำตอบ

name Text

ข้อความทั้งหมดของคำถาม เช่น "การคืนเงินใช้เวลานานเท่าใด"

Answer

ดูคำจำกัดความทั้งหมดของ Answer ได้ที่ schema.org

ประเภท Answer กำหนด acceptedAnswer ให้ Question แต่ละรายการในหน้านี้

พร็อพเพอร์ตี้ที่ Google รองรับมีดังต่อไปนี้

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

คำตอบที่สมบูรณ์ของคำถาม คำตอบอาจมีเนื้อหา HTML เช่น ลิงก์และรายการ Google Search จะแสดงแท็ก HTML ต่อไปนี้ โดยจะละเว้นแท็กอื่นๆ ทั้งหมด: <h1> ถึง <h6>, <br>, <ol>, <ul>, <li>, <a>, <p>, <div>, <b>, <strong>, <i>, และ <em>

ตรวจสอบผลการค้นหาที่เป็นสื่อสมบูรณ์ด้วย Search Console

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

  1. หลังจากทำให้ข้อมูลที่มีโครงสร้างใช้งานได้เป็นครั้งแรก
  2. หลังจากเผยแพร่เทมเพลตใหม่หรืออัปเดตโค้ด
  3. วิเคราะห์การเข้าชมเป็นระยะ

หลังจากทำให้ข้อมูลที่มีโครงสร้างใช้งานได้เป็นครั้งแรก

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

  1. แก้ไขรายการที่ไม่ถูกต้อง
  2. ตรวจสอบ URL ที่เผยแพร่เพื่อดูว่ายังมีปัญหาอยู่หรือไม่
  3. ขอการตรวจสอบโดยใช้รายงานสถานะ

หลังจากเผยแพร่เทมเพลตใหม่หรืออัปเดตโค้ด

เมื่อทําการเปลี่ยนแปลงที่สําคัญในเว็บไซต์ ให้คอยตรวจสอบการเพิ่มขึ้นของรายการที่ไม่ถูกต้องของ Structured Data
  • หากเห็นว่าจำนวนรายการที่ไม่ถูกต้องเพิ่มขึ้น อาจเป็นเพราะคุณเผยแพร่เทมเพลตใหม่ที่ใช้งานไม่ได้ หรือเว็บไซต์โต้ตอบกับเทมเพลตที่มีอยู่ด้วยวิธีใหม่และไม่ถูกต้อง
  • หากเห็นว่าจำนวนรายการที่ถูกต้องลดลง (ไม่สอดคล้องกับรายการที่ถูกต้องซึ่งเพิ่มขึ้น) บางทีอาจเป็นเพราะคุณไม่ได้ฝัง Structured Data ไว้ในหน้าอีกแล้ว ให้ใช้เครื่องมือตรวจสอบ URL เพื่อดูสาเหตุของปัญหา

วิเคราะห์การเข้าชมเป็นระยะ

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

Troubleshooting

If you're having trouble implementing or debugging structured data, here are some resources that may help you.

  • If you're using a content management system (CMS) or someone else is taking care of your site, ask them to help you. Make sure to forward any Search Console message that details the issue to them.
  • Google does not guarantee that features that consume structured data will show up in search results. For a list of common reasons why Google may not show your content in a rich result, see the General Structured Data Guidelines.
  • You might have an error in your structured data. Check the list of structured data errors and the Unparsable structured data report.
  • If you received a structured data manual action against your page, the structured data on the page will be ignored (although the page can still appear in Google Search results). To fix structured data issues, use the Manual Actions report.
  • Review the guidelines again to identify if your content isn't compliant with the guidelines. The problem can be caused by either spammy content or spammy markup usage. However, the issue may not be a syntax issue, and so the Rich Results Test won't be able to identify these issues.
  • Troubleshoot missing rich results / drop in total rich results.
  • Allow time for re-crawling and re-indexing. Remember that it may take several days after publishing a page for Google to find and crawl it. For general questions about crawling and indexing, check the Google Search crawling and indexing FAQ.
  • Post a question in the Google Search Central forum.