电商商品Schema结构化数据模板

安然
,前端开发
,Sep 22, 2025
0

电商商品Schema结构化数据模板

本文提供完整的电商商品Schema.org结构化数据模板,帮助电商网站提升搜索引擎可见性和用户体验。

模板特点

  • 高级@graph格式 - 包含网站、网页、产品的完整结构化数据
  • 面包屑导航 - 完整的页面层级结构
  • 多语言支持 - 支持中文页面配置
  • 搜索功能 - 包含网站搜索功能配置
  • ✅ 完整的Product Schema结构
  • ✅ 支持多图片展示
  • ✅ 包含品牌信息和评价系统
  • ✅ 详细的价格和物流信息
  • ✅ 退货政策配置

完整代码模板

<script type="application/ld+json">
    {
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebSite",
      "@id": "https://example.com/#website",
      "url": "https://example.com",
      "name": "商店",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://example.com/search?q={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    },
    {
      "@type": "WebPage",
      "@id": "https://example.com/product/123#webpage",
      "url": "https://example.com/product/123",
      "name": "超级好的商品 - 商店",
      "description": "这是一款超级好的商品,材质安全,做工精细,手感柔软~",
      "inLanguage": "zh-CN",
      "isPartOf": {
        "@type": "WebSite",
        "@id": "https://example.com/#website"
      },
      "breadcrumb": {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "首页",
            "item": "https://example.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "商品分类",
            "item": "https://example.com/category/dolls"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "超级好的商品",
            "item": "https://example.com/product/123"
          }
        ]
      }
    },
    {
      "@type": "Product",
      "@id": "https://example.com/product/123#product",
      "name": "超级好的商品",
      "description": "这是一款超级好的商品,材质安全,做工精细,手感柔软~",
      "image": [
        "https://example.com/images/product-123-1.jpg",
        "https://example.com/images/product-123-2.jpg"
      ],
      "sku": "DOLL-123",
      "mpn": "12345678",
      "brand": {
        "@type": "Brand",
        "name": "CuteDoll"
      },
      "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "4.6",
        "reviewCount": "235"
      },
      "review": [
        {
          "@type": "Review",
          "author": {
            "@type": "Person",
            "name": "小明"
          },
          "datePublished": "2025-09-15",
          "reviewBody": "商品质量很好,物流也很快,五星好评!",
          "name": "非常满意",
          "reviewRating": {
            "@type": "Rating",
            "ratingValue": "5"
          }
        }
      ],
      "offers": {
        "@type": "Offer",
        "@id": "https://example.com/product/123#offer",
        "url": "https://example.com/product/123",
        "priceCurrency": "USD",
        "price": "199.00",
        "priceValidUntil": "2025-12-31",
        "availability": "https://schema.org/InStock",
        "valueAddedTaxIncluded": false,
        "shippingDetails": {
          "@type": "OfferShippingDetails",
          "shippingRate": {
            "@type": "MonetaryAmount",
            "value": "10.00",
            "currency": "USD"
          },
          "shippingDestination": {
            "@type": "DefinedRegion",
            "addressCountry": "US"
          }
        },
        "hasMerchantReturnPolicy": {
          "@type": "MerchantReturnPolicy",
          "applicableCountry": "US",
          "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
          "merchantReturnDays": 7,
          "merchantReturnLink": "https://example.com/return-policy",
          "returnFees": "https://schema.org/ReturnFeesSellerResponsibility",
          "returnShippingFees": "https://schema.org/CustomerResponsibility"
        }
      }
    }
  ]
}

</script>

使用说明

  1. 替换基础信息
    • 更新网站URL和名称
    • 修改产品链接和描述
    • 设置正确的语言代码(zh-CN)
  2. 配置面包屑导航
    • 更新首页、分类页、产品页的链接
    • 设置正确的面包屑层级结构
  3. 产品信息配置
    • 更新产品名称、描述和图片
    • 设置正确的价格和货币
    • 配置适合的物流和退货政策
  4. 搜索功能配置
    • 更新搜索URL模板
    • 确保搜索功能正常工作

新特性说明

@graph格式优势

  • 可以同时定义多个Schema类型
  • 避免ID冲突,提高数据准确性
  • 支持更复杂的页面结构

面包屑导航

  • 帮助搜索引擎理解页面层级
  • 提升用户体验和导航效率

多语言支持

  • 明确指定页面语言
  • 支持国际化SEO优化

这个模板符合Google结构化数据标准,能够显著提升电商网站在搜索结果中的展示效果。

我的头像

Hi~我是安然 ✨

这是我的小小角落,记录代码、生活和灵感碎片 💻🍃。 我喜欢探索前端的无限可能,也会偶尔写写随笔~ 希望这里能成为我们交流与分享的温暖空间 💖。