Data terstruktur Artikel (Article, NewsArticle, BlogPosting)
Dengan menambahkan data terstruktur Article ke halaman artikel berita, blog, dan olahraga,
Anda dapat membantu Google lebih memahami halaman web serta menampilkan teks judul,
gambar, dan informasi tanggal dengan lebih baik
untuk artikel di hasil penelusuran di Google Penelusuran dan properti lainnya
(misalnya, Google Berita dan Asisten Google).
Meskipun tidak ada persyaratan markup yang perlu dipenuhi untuk menggunakan fitur
Google Berita seperti Berita utama,
Anda dapat menambahkan Article untuk memberi tahu Google secara lebih eksplisit
tentang konten Anda (misalnya, bahwa itu merupakan artikel berita, siapa penulisnya, atau apa judulnya).
Contoh
Berikut contoh halaman dengan data terstruktur Article.
JSON-LD
<html>
<head>
<title>Title of a News Article</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "Title of a News Article",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"datePublished": "2024-01-05T08:00:00+08:00",
"dateModified": "2024-02-05T09:20:00+08:00",
"author": [{
"@type": "Person",
"name": "Jane Doe",
"url": "https://example.com/profile/janedoe123"
},{
"@type": "Person",
"name": "John Doe",
"url": "https://example.com/profile/johndoe123"
}]
}
</script>
</head>
<body>
</body>
</html>Microdata
<html>
<head>
<title>Title of a News Article</title>
</head>
<body>
<div itemscope itemtype="https://schema.org/NewsArticle">
<div itemprop="headline">Title of News Article</div>
<meta itemprop="image" content="https://example.com/photos/1x1/photo.jpg" />
<meta itemprop="image" content="https://example.com/photos/4x3/photo.jpg" />
<img itemprop="image" src="https://example.com/photos/16x9/photo.jpg" />
<div>
<span itemprop="datePublished" content="2024-01-05T08:00:00+08:00">
January 5, 2024 at 8:00am
</span>
(last modified
<span itemprop="dateModified" content="2024-02-05T09:20:00+08:00">
February 5, 2024 at 9:20am
</span>
)
</div>
<div>
by
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a itemprop="url" href="https://example.com/profile/janedoe123">
<span itemprop="name">Jane Doe</span>
</a>
</span>
and
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a itemprop="url" href="https://example.com/profile/johndoe123">
<span itemprop="name">John Doe</span>
</a>
</span>
</div>
</div>
</body>
</html>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 as many recommended properties that apply to your web page. There are no required properties; instead, add the properties that apply to your content. 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
noindextag, 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.
Panduan
Anda harus mengikuti panduan ini agar data terstruktur memenuhi syarat untuk disertakan dalam hasil Google Penelusuran.
Panduan teknis
- Untuk artikel yang terdiri dari banyak bagian, pastikan
rel=canonicalmengarah ke setiap halaman atau halaman "lihat-semua" (bukan ke halaman 1 dari sebuah rangkaian multi-bagian). Pelajari kanonikalisasi lebih lanjut. - Jika Anda menawarkan akses berbasis langganan ke konten situs Anda, atau jika pengguna harus mendaftar untuk mendapatkan akses, sebaiknya tambahkan data terstruktur untuk langganan dan konten berbayar berpenghalang.
Definisi jenis data terstruktur
Untuk membantu Google memahami halaman Anda dengan lebih baik, sertakan sebanyak mungkin properti yang direkomendasikan yang berlaku untuk halaman web Anda. Tidak ada properti yang sifatnya wajib; tambahkan properti yang berlaku untuk konten Anda.
Objek Article
Objek Article harus didasarkan pada salah satu jenis schema.org berikut: Article,
NewsArticle, BlogPosting.
Properti yang didukung Google adalah sebagai berikut:
| Properti yang direkomendasikan | |
|---|---|
author |
Penulis artikel. Untuk membantu Google memahami penulis secara optimal di berbagai fitur, sebaiknya ikuti praktik terbaik markup penulis. |
author.name |
Nama penulis. |
author.url |
Link ke halaman web yang mengidentifikasi penulis artikel secara unik. Misalnya, halaman media sosial penulis, halaman "tentang saya", atau halaman biografi. Jika URL adalah halaman profil internal, sebaiknya markup penulis tersebut menggunakan data terstruktur halaman profil. |
dateModified |
Tanggal dan waktu artikel terakhir kali diubah, dalam format ISO 8601. Sebaiknya Anda memberikan informasi zona waktu; jika tidak, kami akan secara default menampilkan zona waktu yang digunakan oleh Googlebot. Tambahkan properti |
datePublished |
Tanggal dan waktu artikel pertama kali dipublikasikan, dalam format ISO 8601. Sebaiknya Anda memberikan informasi zona waktu; jika tidak, kami akan secara default menampilkan zona waktu yang digunakan oleh Googlebot. Tambahkan properti |
headline |
Judul artikel. Pertimbangkan untuk menggunakan judul yang ringkas, karena judul yang panjang mungkin akan terpotong di beberapa perangkat. |
image |
URL ke gambar yang mewakili artikel. Gunakan gambar yang relevan dengan artikel, bukan logo atau teks. Additional image guidelines:
For example: "image": [ "https://example.com/photos/1x1/photo.jpg", "https://example.com/photos/4x3/photo.jpg", "https://example.com/photos/16x9/photo.jpg" ] |
Praktik terbaik markup penulis
Untuk membantu Google memahami dan menampilkan penulis konten secara optimal, sebaiknya ikuti praktik terbaik ini saat mencantumkan penulis di markup:
| Praktik terbaik untuk markup penulis | |
|---|---|
Menyertakan semua penulis di markup |
Pastikan semua penulis yang ditampilkan sebagai penulis di halaman web juga disertakan dalam markup. |
Mencantumkan beberapa penulis |
Saat mencantumkan beberapa penulis, cantumkan setiap penulis di kolom "author": [
{"name": "Willow Lane"},
{"name": "Regula Felix"}
]
Jangan gabungkan beberapa penulis di kolom "author": {
"name": "Willow Lane, Regula Felix"
} |
Menggunakan kolom tambahan |
Untuk membantu Google lebih memahami siapa penulisnya, sebaiknya gunakan
properti Misalnya, jika penulisnya adalah orang, Anda dapat menautkan ke halaman penulis yang menyediakan informasi selengkapnya tentang penulis: "author": [ { "@type": "Person", "name": "Willow Lane", "url": "https://www.example.com/staff/willow_lane" } ] Jika penulisnya adalah sebuah organisasi, Anda dapat menautkan ke halaman beranda organisasi. "author": [ { "@type":"Organization", "name": "Some News Agency", "url": "https://www.example.com/" } ] |
Hanya mencantumkan nama penulis di properti |
Di properti
"author": [ { "@type": "Person", "name": "Echidna Jones", "honorificPrefix": "Dr", "jobTitle": "Editor in Chief" } ], "publisher": [ { "@type": "Organization", "name": "Bugs Daily" } ] } |
Menggunakan |
Gunakan jenis |
Berikut adalah contoh yang menerapkan praktik terbaik markup penulis:
"author": [ { "@type": "Person", "name": "Willow Lane", "jobTitle": "Journalist", "url": "https://www.example.com/staff/willow-lane" }, { "@type": "Person", "name": "Echidna Jones", "jobTitle": "Editor in Chief", "url": "https://www.example.com/staff/echidna-jones" } ], "publisher": { "@type": "Organization", "name": "The Daily Bug", "url": "https://www.example.com" }, // + Other fields related to the article... }
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.