Salin dan Bagikan
Cara Pasang Schema Markup untuk SEO: Tutorial Lengkap
Schema markup adalah kode yang membantu search engine memahami content Anda lebih baik. Hasilnya bisa berupa rich snippets yang meningkatkan CTR.
Apa itu Schema Markup?
Definition:
Structured data vocabulary
Helps search engines understand content
Results in rich snippets/rich results
Format options:
- JSON-LD (recommended)
- Microdata
- RDFa
Jenis Schema Populer
Article Schema
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Judul Artikel",
"author": {
"@type": "Person",
"name": "Nama Penulis"
},
"datePublished": "2026-01-07",
"dateModified": "2026-01-07",
"image": "https://yoursite.com/image.jpg",
"publisher": {
"@type": "Organization",
"name": "Nama Website",
"logo": {
"@type": "ImageObject",
"url": "https://yoursite.com/logo.png"
}
}
}
FAQ Schema
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Apa itu schema markup?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema markup adalah structured data yang membantu search engine memahami konten website."
}
},
{
"@type": "Question",
"name": "Bagaimana cara pasang schema?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema bisa dipasang dengan menambahkan JSON-LD di head atau body halaman."
}
}
]
}
Local Business Schema
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Nama Bisnis",
"image": "https://yoursite.com/image.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "Jl. Contoh No. 123",
"addressLocality": "Jakarta",
"addressRegion": "DKI Jakarta",
"postalCode": "12345",
"addressCountry": "ID"
},
"telephone": "+62-21-1234567",
"openingHours": "Mo-Fr 09:00-17:00",
"priceRange": "$$"
}
Product Schema
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Nama Produk",
"image": "https://yoursite.com/product.jpg",
"description": "Deskripsi produk",
"brand": {
"@type": "Brand",
"name": "Nama Brand"
},
"offers": {
"@type": "Offer",
"price": "100000",
"priceCurrency": "IDR",
"availability": "https://schema.org/InStock"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": "100"
}
}
How-To Schema
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": "Cara Pasang Schema Markup",
"step": [
{
"@type": "HowToStep",
"name": "Pilih jenis schema",
"text": "Tentukan jenis schema yang sesuai dengan konten Anda."
},
{
"@type": "HowToStep",
"name": "Generate kode JSON-LD",
"text": "Gunakan generator atau tulis manual kode schema."
},
{
"@type": "HowToStep",
"name": "Pasang di website",
"text": "Tambahkan kode schema di head atau body halaman."
}
]
}
Breadcrumb Schema
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://yoursite.com/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Blog",
"item": "https://yoursite.com/blog/"
},
{
"@type": "ListItem",
"position": 3,
"name": "Artikel Ini",
"item": "https://yoursite.com/blog/artikel-ini/"
}
]
}
Cara Implementasi
Manual (JSON-LD)
<head>
<!-- Other head elements -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Judul Artikel"
// ... rest of schema
}
</script>
</head>
WordPress Plugins
Plugins yang support schema:
- Yoast SEO
- Rank Math
- Schema Pro
- All in One Schema
Hugo (SSG)
<!-- layouts/partials/schema.html -->
{{ if .IsPage }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "{{ .Title }}",
"datePublished": "{{ .Date.Format "2006-01-02" }}",
"author": {
"@type": "Person",
"name": "{{ .Site.Params.author }}"
}
}
</script>
{{ end }}
Testing Schema
Google Rich Results Test
- Buka search.google.com/test/rich-results
- Masukkan URL atau kode
- Test dan lihat hasil
- Fix errors jika ada
Schema Markup Validator
- Buka validator.schema.org
- Paste URL atau kode
- Validate
- Check warnings/errors
GSC Enhancement Reports
- Search Console > Enhancements
- Lihat status tiap schema type
- Fix issues jika ada
Common Errors
Errors to avoid:
❌ Missing required fields
❌ Wrong data types
❌ Invalid URLs
❌ Mismatched content
❌ Spammy markup
❌ Hidden content schema
Fixing Errors
1. Use testing tools
2. Check required fields
3. Validate JSON syntax
4. Match schema to content
5. Re-test after fixing
Best Practices
DO:
✓ Use JSON-LD format
✓ Match schema to content
✓ Include required fields
✓ Test before deploying
✓ Monitor in GSC
DON'T:
✗ Fake reviews/ratings
✗ Invisible content markup
✗ Multiple conflicting schemas
✗ Over-markup pages
Kesimpulan
Schema markup adalah cara powerful untuk meningkatkan visibility di search results. Mulai dengan schema yang paling relevan untuk content Anda, test thoroughly, dan monitor hasilnya di Google Search Console.
Artikel Terkait
Link Postingan : https://www.tirinfo.com/cara-pasang-schema-markup-seo/
Editor : Hendra WIjaya
Publisher :
Tirinfo
Read : 3 minutes.
Update : 7 January 2026