Schema 結構化數據
High Contrast
Dark Mode
Light Mode
Sepia
Forest
4 min read778 words

Schema 結構化數據

Schema 讓 Google 在搜索結果中顯示額外信息(星星評分、價格、庫存狀態)——這叫做「Rich Snippets 豐富摘要」。相同排名下,帶星星評分的結果點擊率比普通結果高 30-40%。

豐富摘要長什麼樣

普通搜索結果:
玫瑰金極簡腕錶 | MinimalWatch
yourdomain.com/products/rose-gold-watch
這款玫瑰金極簡腕錶採用316L不鏽鋼...
帶 Schema 的搜索結果:
玫瑰金極簡腕錶 | MinimalWatch
yourdomain.com/products/rose-gold-watch
★★★★★ 4.8(128 則評價)  $29.99  ✓ 有現貨
這款玫瑰金極簡腕錶採用316L不鏽鋼...

電商最重要的 Schema 類型

1. Product Schema(商品結構化數據)

這是最重要的,讓 Google 知道你的商品詳情:

{
"@context": "https://schema.org",
"@type": "Product",
"name": "玫瑰金極簡腕錶",
"image": "https://yourdomain.com/image.jpg",
"description": "36mm 316L 不鏽鋼,防水 100m",
"brand": {
"@type": "Brand",
"name": "MinimalWatch"
},
"offers": {
"@type": "Offer",
"price": "29.99",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"reviewCount": "128"
}
}

2. BreadcrumbList Schema(麵包屑導航)

告訴 Google 頁面的層次結構:

{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "首頁",
"item": "https://yourdomain.com"
},
{
"@type": "ListItem",
"position": 2,
"name": "手錶",
"item": "https://yourdomain.com/collections/watches"
},
{
"@type": "ListItem",
"position": 3,
"name": "玫瑰金極簡腕錶"
}
]
}

3. FAQPage Schema(常見問題)

讓 FAQ 直接展開顯示在搜索結果中:

{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "這款手錶防水嗎?",
"acceptedAnswer": {
"@type": "Answer",
"text": "是的,防水深度 100m,適合游泳。"
}
},
{
"@type": "Question",
"name": "可以退換貨嗎?",
"acceptedAnswer": {
"@type": "Answer",
"text": "提供 7 天無條件退換貨,聯繫客服即可處理。"
}
}
]
}

Shopify 的 Schema 現況

Shopify 自動提供的 Schema

現代 Shopify 主題(Dawn、Debut 等)已自動包含基本的 Product Schema,包括: - 商品名稱、描述、圖片 - 價格和貨幣 - 庫存狀態 - 品牌名稱

如何驗證: 使用 Google 的 Rich Results Test 輸入你的商品 URL 確認。

需要手動添加或強化的 Schema

  1. 評價 Schema(aggregateRating):需要配合評價 App(Judge.me 等)自動注入
  2. FAQ Schema:需要在商品頁或靜態頁面手動添加
  3. Organization Schema:品牌信息,在首頁添加

通過 Judge.me 自動添加評價 Schema

Judge.me 安裝後會自動在商品頁注入評價的 Schema——這也是推薦用 Judge.me 的原因之一。

驗證步驟: 1. 在 Rich Results Test 輸入你的商品 URL 2. 確認出現 "aggregateRating" 字段 3. 如果有,表示評價 Schema 正確


手動添加 FAQ Schema

在你的商品頁主題文件中添加:

路徑: 主題 → 代碼編輯 → sections → product-template.liquid

在文件末尾添加:

{% if product.metafields.custom.faq %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{% for faq in product.metafields.custom.faq.value %}
{
"@type": "Question",
"name": "{{ faq.question }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ faq.answer }}"
}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}
</script>
{% endif %}

然後通過 Metafield 為每個商品填寫 FAQ 數據。


使用 Schema App 自動化(進階)

如果手動修改代碼讓你不安,可以使用付費 App:

Schema App(月費 $14): - 自動為所有商品頁生成完整 Schema - 包含商品、評價、麵包屑、FAQ 等所有類型 - 提供 Schema 驗證報告


驗證和監測

驗證工具

  1. Google Rich Results Test(免費):即時測試某個 URL 的 Schema
  2. Google Search Console → 豐富摘要報告:監測整站哪些 Schema 有問題

常見 Schema 錯誤

錯誤 原因 解法
price 字段格式錯誤 使用了貨幣符號 應只填數字,不含符號
availability 值錯誤 使用了非標準值 必須是 schema.org 的標準值
評價 Schema 但沒有真實評價 違反 Google 規則 只在有真實評價的商品添加
aggregateRating 分數造假 嚴重違規 只使用真實評價數據

本章執行清單


下一章Plus 與進階策略——什麼時候該升級到 Shopify Plus?