Validator Schema JSON-LD
Panduan 15 menit validasi schema JSON-LD Anda pakai tool official Google dan Schema.org. Checklist common error, fix reference, dan best practice untuk brand Indonesia. Kami tidak bikin validator sendiri karena yang official sudah cukup. Fokus kami: ajarin cara pakai dan interpret hasilnya.
Kenapa validasi schema kritis
Schema JSON-LD yang salah sama saja dengan tidak ada schema. Google parser strict, satu property typo bisa membuat seluruh node di-skip. Brand yang invest di schema tapi tidak validate rutin sering kaget: mereka kira sinyalnya sudah kirim, padahal Google diam-diam abaikan semua karena syntax error.
Rutinitas validasi bulanan adalah disiplin minimum untuk brand yang serius. Schema breaks setelah deploy template baru, setelah upgrade CMS, setelah developer junior "improve" kode tanpa dokumentasi.
Checklist: Validate schema dalam 15 menit
- Extract schema dari halaman Anda. Buka halaman di browser, view-source (Ctrl+U), Ctrl+F cari "application/ld+json". Copy isi block script yang muncul. Satu halaman sering punya beberapa JSON-LD block (header, footer, per-page), copy semuanya.
- Paste ke validator.schema.org. Buka validator.schema.org. Paste JSON-LD atau fetch by URL. Validator ini strict terhadap Schema.org spec. Cek tab "Errors" dan "Warnings" di hasil.
- Paste ke Google Rich Results Test. Buka search.google.com/test/rich-results. Ini lebih praktis untuk tahu rich snippet apa yang eligible muncul. Pakai "Test code" atau "Test URL" tergantung preferensi.
- Interpret errors dengan checklist di bawah. Error berbeda punya impact berbeda. Gunakan tabel common errors kami untuk prioritasi fix.
- Fix, redeploy, retest. Setelah fix, clear cache CMS dan CDN, lalu retest di kedua validator. Iterasi sampai zero error. Warnings boleh ditunda kalau non-critical.
Common errors dan fix-nya
Tabel ini merangkum 8 error paling sering kami temukan di audit schema untuk brand Indonesia. Pakai sebagai reference saat interpret hasil validator.
| Error | Severity | Kenapa Terjadi | Fix |
|---|---|---|---|
| Missing or inconsistent @id | Error | Property @id tidak ada atau berbeda antar halaman untuk entitas yang sama | Tetapkan @id konsisten URL absolute, contoh: https://brand.com/#organization. Pakai di semua halaman. |
| Invalid @type value | Error | @type tidak match Schema.org vocabulary, sering karena typo atau nama class yang salah | Cek spec di schema.org/[TypeName]. @type case sensitive, LocalBusiness bukan localbusiness. |
| sameAs URL broken | Error | URL di sameAs array 404 atau redirect ke homepage platform | Hapus URL broken atau ganti dengan URL canonical aktif. Audit berkala pakai tool sameAs check. |
| Missing required property | Error | Property wajib seperti name, url, atau address tidak ada | Baca spec @type Anda di Schema.org, tambah property yang marked "Required". |
| Wrong nesting | Error | Object di-place sebagai string, atau nested object kurang @type | Setiap nested object butuh @type sendiri. address butuh @type PostalAddress, bukan plain object. |
| Missing image or logo | Warning | Google recommend image untuk rich snippet, tidak wajib untuk parsing | Tambah property image atau logo dengan URL absolute ke foto WebP min 1200x675px. |
| Mixed http/https URLs | Warning | Protocol inconsistent, Google perlakukan sebagai URL berbeda | Force HTTPS di semua URL JSON-LD, termasuk sameAs, image, dan @id. |
| Duplicate @id | Error | Dua entity berbeda pakai @id sama, sering copy-paste mistake | Setiap entity unik wajib unique @id. Organization dan Person tidak boleh share @id. |
Tool validator official yang kami rekomendasikan
Dua tool yang kami pakai setiap audit schema:
- validator.schema.org — validator official dari konsorsium Schema.org. Strict terhadap spec, cocok untuk cek technical correctness. Output lengkap: parsed tree, errors, warnings.
- Google Rich Results Test — validator official Google, fokus ke rich snippet eligibility. Output memperlihatkan rich result type apa yang eligible muncul di SERP.
Untuk deep audit, kami juga pakai Bing Markup Validator untuk second opinion, dan SchemaApp Chrome extension untuk spot-check selama development.
Disiplin deployment
Setelah schema valid, perlakukan seperti production code:
- Commit schema ke version control. Bukan di-paste langsung ke WordPress editor.
- Automated test di CI. Jalankan validator via API di pipeline deploy, fail build kalau ada error.
- Monitoring bulanan. Cek Google Search Console "Enhancements" report, spot broken structured data.
- Dokumentasi @id registry. Simpan list semua @id yang brand Anda pakai, supaya tim tidak invent @id baru random.
Pertanyaan Umum Validator Schema
Apa bedanya validator.schema.org dengan Google Rich Results Test?
Apakah warning wajib di-fix?
Schema mana yang paling penting untuk B2B Indonesia?
Bagaimana kalau @id saya typo atau inconsistent?
Butuh schema deployment yang proven?
IP dan Identitas Brand Sprint (Rp 15-35 juta) mencakup audit schema lengkap, fix semua error, deployment JSON-LD konsisten lintas halaman, plus trademark registration bundle. Buat brand yang butuh full-stack entity infrastructure, lihat paket Entity Infrastructure kami.