如何使用Google結構化資料提升網站SEO效果

什麼是 Google 結構化資料?

Google 結構化資料(Structured Data)是使用特定格式標記網站內容的方式,使搜尋引擎能夠更好地理解和解析這些內容。這有助於提升網站在搜尋結果中的可見性,並使網頁內容更容易被正確地呈現給用戶。

為什麼要使用結構化資料?

  1. 提升搜尋結果的可見性
    結構化資料可以使網站在搜尋結果頁面(SERP)中以豐富片段(Rich Snippets)的形式呈現,這些片段可以包括評分、價格、圖片等,從而吸引更多點擊。
  2. 增強搜尋引擎理解
    標記結構化資料有助於搜尋引擎更準確地理解網頁內容的主題和意圖,提高內容的相關性匹配度。
  3. 改善SEO效果
    儘管結構化資料本身並不直接影響網站的排名,但它能夠改善搜尋結果的展示方式,間接提升點擊率和網站流量。

如何實現結構化資料?

結構化資料通常使用JSON-LD(JavaScript Object Notation for Linked Data)、Microdata或RDFa(Resource Description Framework in Attributes)三種格式來實現。以下是一個通用網站頁面結構化資料的簡單範例,包含網站名稱、描述、主要內容以及社群媒體訊號。

通用網站頁面結構化資料範例(含社群媒體訊號)

{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "我的網站",
  "url": "https://www.example.com",
  "description": "這是一個致力於提供優質資訊和服務的網站,滿足用戶的多樣需求。",
  "mainEntity": {
    "@type": "Organization",
    "name": "某某公司",
    "logo": "https://www.example.com/logo.png",
    "url": "https://www.example.com",
    "contactPoint": {
      "@type": "ContactPoint",
      "telephone": "+1-800-555-1212",
      "contactType": "Customer Service",
      "email": "info@example.com"
    },
    "sameAs": [
      "https://www.facebook.com/example",
      "https://www.twitter.com/example",
      "https://www.instagram.com/example",
      "https://www.linkedin.com/company/example",
      "https://www.youtube.com/channel/UC1234567890"
    ]
  },
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://www.example.com/search?q={search_term_string}",
    "query-input": "required name=search_term_string"
  }
}
  • @context:指定使用的語境,通常是 https://schema.org
  • @type:指定這個資料的類型,這裡是 WebPage,表示這是一個網頁。
  • name:網站的名稱。
  • url:網站的URL。
  • description:網站的簡要描述。
  • mainEntity:主要實體,這裡用 Organization 表示這是公司或組織。
  • name:組織或公司的名稱。
  • logo:公司或組織的標誌URL。
  • url:公司或組織的URL。
  • contactPoint:聯絡信息,包含電話和電子郵件。
  • sameAs:其他相關的社交媒體或網站鏈接,這裡包括Facebook、Twitter、Instagram、LinkedIn和YouTube等平台的鏈接。
  • potentialAction:可能的操作,這裡是一個搜索功能,允許用戶在網站內搜索內容。

常見的結構化資料類型

1. 文章(Article)

用途
適用於新聞、部落格文章及一般的文本內容。

主要屬性

  • headline:文章標題
  • image:文章圖片
  • author:作者姓名
  • datePublished:發佈日期
  • dateModified:修改日期
  • articleBody:文章內容

範例

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "如何使用結構化資料",
  "image": "https://www.example.com/image.jpg",
  "author": {
    "@type": "Person",
    "name": "張小明"
  },
  "datePublished": "2024-05-21",
  "dateModified": "2024-05-21",
  "articleBody": "本文介紹了如何使用結構化資料來提升搜尋引擎優化效果。"
}

2. 產品(Product)

用途
適用於電子商務網站,描述產品的相關信息。

主要屬性

  • name:產品名稱
  • image:產品圖片
  • description:產品描述
  • sku:庫存單位(SKU)
  • brand:品牌
  • offers:產品價格及供應信息
  • review:用戶評價

範例

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "智能手錶",
  "image": "https://www.example.com/watch.jpg",
  "description": "這款智能手錶具有多種功能,包括心率監測、GPS定位等。",
  "sku": "12345",
  "brand": {
    "@type": "Thing",
    "name": "某品牌"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/product/12345",
    "priceCurrency": "USD",
    "price": "199.99",
    "priceValidUntil": "2024-12-31",
    "itemCondition": "https://schema.org/NewCondition",
    "availability": "https://schema.org/InStock"
  },
  "review": {
    "@type": "Review",
    "reviewRating": {
      "@type": "Rating",
      "ratingValue": "4.5",
      "bestRating": "5"
    },
    "author": {
      "@type": "Person",
      "name": "李小華"
    }
  }
}

3. 本地商家(Local Business)

用途
適用於本地商店、餐廳及其他本地服務提供者。

主要屬性

  • name:商家名稱
  • address:地址
  • telephone:電話號碼
  • openingHours:營業時間
  • priceRange:價格範圍
  • geo:地理位置

範例

{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "某某餐廳",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 台北街",
    "addressLocality": "台北市",
    "addressRegion": "台灣",
    "postalCode": "100",
    "addressCountry": "TW"
  },
  "telephone": "+886-2-1234-5678",
  "openingHours": "Mo-Su 11:00-22:00",
  "priceRange": "$$$",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "25.0330",
    "longitude": "121.5654"
  }
}

4. 活動(Event)

用途
適用於活動頁面,如音樂會、展覽、講座等。

主要屬性

  • name:活動名稱
  • startDate:開始日期和時間
  • endDate:結束日期和時間
  • location:活動地點
  • organizer:主辦方
  • eventStatus:活動狀態(如計劃中、取消、延期等)
  • performer:表演者

範例

{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": "年度音樂會",
  "startDate": "2024-07-15T19:00",
  "endDate": "2024-07-15T22:00",
  "location": {
    "@type": "Place",
    "name": "台北大劇院",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "456 台北大道",
      "addressLocality": "台北市",
      "addressRegion": "台灣",
      "postalCode": "100",
      "addressCountry": "TW"
    }
  },
  "organizer": {
    "@type": "Organization",
    "name

": "台北音樂協會",
    "url": "https://www.example.com"
  },
  "eventStatus": "https://schema.org/EventScheduled",
  "performer": {
    "@type": "Person",
    "name": "張小美"
  }
}

如何驗證結構化資料?

Google 提供了結構化資料測試工具(Structured Data Testing Tool),可以用來驗證您所標記的結構化資料是否正確。此外,Google Search Console 也可以幫助您檢查和監控網站上的結構化資料。

結論

使用Google結構化資料是一種有效提升網站在搜尋結果中表現的方式。透過正確地標記網站內容,您可以增加網站的可見性和點擊率,最終提升整體SEO效果。不要忘記定期檢查和更新您的結構化資料,以確保其正確性和相關性。

希望這篇文章能夠幫助您更好地了解並實現Google結構化資料。

您可能感興趣

[user-submitted-posts]