Structured Data สำหรับที่พักให้เช่า (VacationRental
)
![ภาพแสดงที่พักให้เช่าใน Google Search](https://developers-dot-devsite-v2-prod.appspot.com/static/search/docs/images/vacation-rental-rich-result.png?authuser=6&hl=th)
เมื่อคุณเพิ่ม Structured Data ลงในหน้าข้อมูลที่พักให้เช่า Google Search จะแสดงข้อมูลได้อย่างละเอียดยิ่งขึ้น ผู้ใช้สามารถดูข้อมูล เช่น ชื่อ คำอธิบาย รูปภาพ สถานที่ คะแนน รีวิว และอื่นๆ ในผลการค้นหาได้โดยตรง
ก่อนที่คุณจะเริ่มต้น
วิธีการเหล่านี้มีไว้สำหรับเว็บไซต์ที่ได้ติดต่อพูดคุยกับผู้จัดการลูกค้าด้านเทคนิคของ Google แล้วและมีสิทธิ์เข้าถึง Hotel Center หากสนใจผสานรวมข้อมูลที่พักให้เช่า แต่ยังไม่ได้รับการติดต่อกลับจาก Google โปรดติดต่อเราโดยใช้แบบฟอร์มแสดงความสนใจสำหรับที่พักให้เช่า
ฟีเจอร์นี้จำกัดไว้สำหรับเว็บไซต์ที่มีคุณสมบัติตรงตามเกณฑ์การมีสิทธิ์ที่กำหนดไว้และต้องดำเนินการขั้นตอนเพิ่มเติมเพื่อดำเนินการรวมบริการให้เสร็จสมบูรณ์ ดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีแสดงข้อมูลที่พักให้เช่าใน Google ได้ที่คู่มือเริ่มต้นการรวมบริการ
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.
- Add the required properties. Based on the format you're using, learn where to insert structured data on the page.
- Follow the guidelines.
- 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).
- 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. - To keep Google informed of future changes, we recommend that you submit a sitemap. You can automate this with the Search Console Sitemap API.
ตัวอย่าง
ต่อไปนี้คือตัวอย่างข้อมูลที่พักให้เช่าแบบง่ายที่ใช้ JSON-LD
<html> <head> <title>My Beautiful Vacation Rental</title> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "VacationRental", "additionalType": "HolidayVillageRental", "brand": { "@type": "Brand", "name": "brandIdName" }, "containsPlace": { "@type": "Accommodation", "additionalType": "EntirePlace", "bed": [{ "@type": "BedDetails", "numberOfBeds" : 1, "typeOfBed": "Queen" }, { "@type": "BedDetails", "numberOfBeds" : 2, "typeOfBed": "Single" }], "occupancy": { "@type": "QuantitativeValue", "value" : 2 }, "amenityFeature": [ { "@type": "LocationFeatureSpecification", "name": "ac", "value": true }, { "@type": "LocationFeatureSpecification", "name": "airportShuttle", "value": true }, { "@type": "LocationFeatureSpecification", "name": "balcony", "value": true }, { "@type": "LocationFeatureSpecification", "name": "beachAccess", "value": true }, { "@type": "LocationFeatureSpecification", "name": "childFriendly", "value": true } ], "floorSize": { "@type": "QuantitativeValue", "value" : 75, "unitCode": "MTK" }, "numberOfBathroomsTotal": 1, "numberOfBedrooms": 3, "numberOfRooms": 5 }, "identifier": "abc123", "latitude": "42.12345", "longitude": "101.12345", "name": "My Beautiful Vacation Rental", "address": { "addressCountry": "US", "addressLocality": "Mountain View", "addressRegion": "California", "postalCode": "94043", "streetAddress": "1600 Amphitheatre Pkwy, Unit 6E" }, "aggregateRating": { "ratingValue": 4.5, "ratingCount": 10, "reviewCount": 3, "bestRating": 5 }, "image": [ "https://example.com/mylisting/unit_image1.png", "https://example.com/mylisting/unit_image2.png", "https://example.com/mylisting/unit_image3.png", "https://example.com/mylisting/unit_image4.png", "https://example.com/mylisting/unit_image5.png", "https://example.com/mylisting/unit_image6.png", "https://example.com/mylisting/unit_image7.png", "https://example.com/mylisting/unit_image8.png" ], "checkinTime": "18:00:00+08:00", "checkoutTime": "11:00:00+08:00", "description": "A great Vacation Rental in the perfect neighborhood.", "knowsLanguage": ["en-US", "fr-FR"], "review": [{ "@type": "Review", "reviewRating": { "@type": "Rating", "ratingValue": 4, "bestRating": 5 }, "author": { "@type": "Person", "name": "Lillian Ruiz" }, "datePublished": "2024-12-01", "contentReferenceTime": "2024-11-17" }, { "@type": "Review", "reviewRating": { "@type": "Rating", "ratingValue": "5", "bestRating": "5" }, "author": { "@type": "Person", "name": "John S." }, "datePublished": "2024-10-01", "contentReferenceTime": "2024-09-28" } ] } </script> </head> <body></body> </html>
คำแนะนำเกี่ยวกับการมีสิทธิ์
คุณต้องปฏิบัติตามหลักเกณฑ์เหล่านี้เพื่อให้ Structured Data สำหรับที่พักให้เช่ามีสิทธิ์ใช้ใน Google Search
คำจำกัดความของประเภท Structured Data
ตารางต่อไปนี้แสดงรายการที่พักและการใช้งานสำหรับการมาร์กอัปข้อมูลที่พักให้เช่าโดยใช้ schema.org/VacationRental คุณต้องใส่พร็อพเพอร์ตี้ที่จำเป็นเพื่อให้ Structured Data มีสิทธิ์แสดง คุณอาจใส่พร็อพเพอร์ตี้ที่แนะนำด้วยเพื่อให้ข้อมูลเพิ่มเติมเกี่ยวกับเนื้อหา ซึ่งจะช่วยให้ประสบการณ์ของผู้ใช้ดีขึ้น
VacationRental
ดูคำจำกัดความที่สมบูรณ์ของ VacationRental
ได้ที่ schema.org/VacationRental
พร็อพเพอร์ตี้ที่จำเป็น | |
---|---|
containsPlace
|
ข้อมูลที่พักให้เช่าต้องมีที่พัก 1 แห่งเพื่อมาร์กอัปรายละเอียดเพิ่มเติม เช่น เตียง อัตราการเข้าพัก จำนวนห้อง และพร็อพเพอร์ตี้ |
containsPlace.occupancy
|
ข้อมูลเกี่ยวกับจำนวนแขกสูงสุดที่อนุญาตให้เข้าพักในข้อมูลที่พักให้เช่า "occupancy": { "@type": "QuantitativeValue", "value" : 5 } |
containsPlace.occupancy.value
|
ค่าที่เป็นตัวเลขของจำนวนแขกที่อนุญาตให้เข้าพักในข้อมูลที่พักให้เช่า |
identifier
|
ตัวระบุที่ไม่ซ้ำสำหรับที่พัก หลักเกณฑ์เพิ่มเติม
|
image
|
รูปภาพของข้อมูลที่พักให้เช่า 1 ภาพขึ้นไป ข้อมูลต้องมีรูปภาพอย่างน้อย 8 รูป (อย่างน้อย 1 รูปสำหรับห้องนอน ห้องน้ำ และพื้นที่ส่วนกลาง) นอกจากนี้ โปรดทำตามข้อกำหนดของรูปภาพข้อมูลที่พัก |
latitude (หรือ geo.latitude )
|
ละติจูดของสถานที่ตั้งของที่พัก ต้องใช้ทศนิยมอย่างน้อย 5 ตำแหน่งเพื่อความแม่นยำ |
longitude (หรือ geo.longitude )
|
ลองจิจูดของสถานที่ตั้งของที่พัก ต้องใช้ทศนิยมอย่างน้อย 5 ตำแหน่งเพื่อความแม่นยำ |
name
|
ชื่อของข้อมูลที่พักให้เช่า |
พร็อพเพอร์ตี้ที่แนะนำ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
additionalType
|
ประเภทของข้อมูลที่พักให้เช่า ค่าที่แนะนำมีดังนี้
คำจำกัดความทั้งหมดของค่าเหล่านี้อยู่ในหมวดหมู่สำหรับธุรกิจที่พัก |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address
|
สถานที่ตั้งจริงของที่พักให้เช่า ระบุที่อยู่ เมือง รัฐ หรือภูมิภาค และรหัสไปรษณีย์ของที่พักให้เช่า โปรดระบุหมายเลขห้องหรืออพาร์ตเมนต์ (หากมี) โปรดทราบว่าตู้ ปณ. หรือที่อยู่ทางไปรษณีย์อื่นๆ สำหรับส่งจดหมายเพียงอย่างเดียวไม่ถือว่าเป็นที่อยู่จริง "address": { "addressCountry": "US", "addressLocality": "Mountain View", "addressRegion": "California", "postalCode": "94043", "streetAddress": "1600 Amphitheatre Pkwy, Apartment 4E" } |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address.addressCountry
|
ประเทศของที่พักให้เช่า โดยใช้รหัสประเทศ ISO 3166-1 alpha-2 แบบ 2 ตัวอักษร |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address.addressLocality
|
เมืองของที่พักให้เช่า |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address.addressRegion
|
ชื่อรัฐ ภูมิภาค หรือจังหวัดของที่พักให้เช่า |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address.postalCode
|
รหัสไปรษณีย์ของที่พักให้เช่า |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address.streetAddress
|
ที่อยู่แบบเต็มของที่พักให้เช่า รวมถึงเลขที่ห้องพักหรืออพาร์ตเมนต์ หากมี |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
aggregateRating
|
คะแนนเฉลี่ยของที่พักให้เช่าอิงตามคะแนนหรือรีวิวหลายรายการ โปรดทำตามหลักเกณฑ์ตัวอย่างรีวิว และรายการพร็อพเพอร์ตี้คะแนนแบบรวมที่จำเป็นและแนะนำ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
brand
|
รหัสแบรนด์ที่เชื่อมโยงกับที่พักนี้ อ่านเพิ่มเติมเกี่ยวกับวิธีเชื่อมโยงที่พักเข้ากับแบรนด์และวิธีลิงก์ไอคอนและชื่อที่แสดงของแบรนด์กับรหัสแบรนด์ที่เกี่ยวข้องในเอกสารประกอบของ Hotel Center "brand": { "@type": "Brand", "name" : "brandIdName" } |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
checkinTime
|
เวลาเช็คอินที่พักเร็วสุดในรูปแบบ ISO 8601 ตัวอย่าง: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
checkoutTime
|
เวลาเช็คอินที่พักช้าสุดในรูปแบบ ISO 8601 ตัวอย่าง: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.additionalType
|
ประเภทห้องพักสำหรับที่พักนี้ โปรดใช้ค่าใดค่าหนึ่งต่อไปนี้
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.amenityFeature
|
ที่พักมีลักษณะเฉพาะหรือสิ่งอำนวยความสะดวกอย่างใดหรือไม่ ตัวอย่างบูลีนมีรูปแบบดังนี้ "amenityFeature": { "@type": "LocationFeatureSpecification", "name" : "featureName", "value": true }ค่าบูลีน ใช้ค่าใดค่าหนึ่งต่อไปนี้สำหรับพร็อพเพอร์ตี้
ค่าที่ไม่ใช่บูลีน นอกจากนี้ เรายังรองรับคู่ ค่าที่ไม่ใช่บูลีนจะมีรูปแบบดังนี้ "amenityFeature": { "@type": "LocationFeatureSpecification", "name" : "featureName", "value": "detail" }
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.bed
|
ข้อมูลเกี่ยวกับประเภทและจำนวนเตียงในข้อมูลที่พัก "bed": [{ "@type": "BedDetails", "numberOfBeds" : 1, "typeOfBed": "Queen" }, { "@type": "BedDetails", "numberOfBeds" : 2, "typeOfBed": "Single" }] |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.bed.numberOfBeds
|
จำนวนเตียงในข้อมูลที่พัก |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.bed.typeOfBed
|
ประเภทเตียงในข้อมูลที่พัก ค่าที่แนะนำมีดังนี้
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.floorSize
|
ขนาดของที่พัก ต้องระบุโดยใช้ค่าพร็อพเพอร์ตี้
"floorSize": { "@type": "QuantitativeValue", "value" : 75, "unitCode": "MTK" } |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.numberOfBathroomsTotal
|
จำนวนห้องน้ำทั้งหมดในข้อมูลที่พัก ปฏิบัติตามธรรมเนียมของอสังหาริมทรัพย์ที่บันทึกไว้ใน RESO และใช้ผลรวมของจำนวนห้องน้ำ เช่น สำหรับที่พักที่มีห้องน้ำแบบเต็ม 2 ห้องและห้องน้ำแบบครึ่ง 1 ห้อง จะเท่ากับมีจำนวนห้องน้ำทั้งหมดเป็น 2.5 ห้อง |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.numberOfBedrooms
|
จำนวนห้องนอนทั้งหมดในข้อมูลที่พัก |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
containsPlace.numberOfRooms
|
จำนวนห้องทั้งหมดในข้อมูลที่พัก |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description
|
คำอธิบายที่พัก |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
knowsLanguage
|
ภาษาที่ใช้สื่อสารกับผู้ดูแลที่พัก ใช้รหัสภาษาจากมาตรฐาน IETF BCP 47 เช่น |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
review
|
มีรีวิวจากผู้ใช้อย่างน้อย 1 รายการสำหรับข้อมูลที่พัก ทำตามหลักเกณฑ์ตัวอย่างรีวิวและรายการพร็อพเพอร์ตี้รีวิวที่จำเป็นและแนะนำ "review": { "@type": "Review", "reviewRating": { "@type": "Rating", "ratingValue": "4", "bestRating": "5" }, "datePublished": "2023-02-09" "author": { "@type": "Person", "name": "Lillian R" } } |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
review.contentReferenceTime
|
วันที่เริ่มต้นที่ผู้เขียนเข้าพัก |
ตรวจสอบผลการค้นหาที่เป็นสื่อสมบูรณ์ด้วย Search Console
Search Console เป็นเครื่องมือที่ช่วยในการตรวจสอบประสิทธิภาพของหน้าเว็บใน Google Search คุณไม่จำเป็นต้องลงชื่อสมัครใช้ Search Console เพื่อให้เนื้อหาได้แสดงในผลการค้นหาของ Google แต่การลงชื่อสมัครใช้จะช่วยให้คุณเข้าใจและปรับปรุงวิธีที่ Google เห็นเว็บไซต์ได้ เราขอแนะนำให้ไปดูข้อมูลใน Search Console ในกรณีต่อไปนี้
- หลังจากทำให้ข้อมูลที่มีโครงสร้างใช้งานได้เป็นครั้งแรก
- หลังจากเผยแพร่เทมเพลตใหม่หรืออัปเดตโค้ด
- วิเคราะห์การเข้าชมเป็นระยะ
หลังจากทำให้ข้อมูลที่มีโครงสร้างใช้งานได้เป็นครั้งแรก
หลังจากที่ Google ได้จัดทำดัชนีหน้าของคุณแล้ว ให้ตรวจหาปัญหาโดยใช้รายงานสถานะผลการค้นหาที่เป็นสื่อสมบูรณ์ที่เกี่ยวข้อง ตามหลักแล้ว รายการที่ถูกต้องควรจะมีจํานวนเพิ่มขึ้น และรายการที่ไม่ถูกต้องไม่ควรจะมีจำนวนเพิ่มขึ้น หากพบปัญหาในข้อมูลที่มีโครงสร้าง ให้ทำดังนี้
- แก้ไขรายการที่ไม่ถูกต้อง
- ตรวจสอบ URL ที่เผยแพร่เพื่อดูว่ายังมีปัญหาอยู่หรือไม่
- ขอการตรวจสอบโดยใช้รายงานสถานะ
หลังจากเผยแพร่เทมเพลตใหม่หรืออัปเดตโค้ด
เมื่อทําการเปลี่ยนแปลงที่สําคัญในเว็บไซต์ ให้คอยตรวจสอบการเพิ่มขึ้นของรายการที่ไม่ถูกต้องของ 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.