Course contentsShow
← Web Development
Lesson 1859 of 2,98234. Metadata and SEOFree lesson

Product Schema for E-commerce

Use Product schema to markup product information including name, price, availability, and reviews for rich snippets.

Product Schema for E-commerce

You'll learn how to markup product information with structured data so search engines can display rich product snippets with price, availability, and ratings.

What is Product Schema?

Think of Product schema as a universal product label that search engines can read—like the nutrition facts on food packaging, but for your online store. When you sell products, you want Google and other search engines to display eye-catching "rich snippets" that show your product's price, star rating, and availability right in search results, before anyone even clicks through.

Product schema is a standardized way to describe product information using JSON-LD markup. It tells search engines exactly what you're selling and helps shoppers make informed decisions directly from the search page.

Essential Product Properties

The key properties you'll markup include:

  • name – The product title
  • image – Product photo URLs
  • description – Product description
  • sku / gtin – Product identifiers
  • brand – Manufacturer or brand name
  • offers – Nested object containing price, currency, availability, and URL
  • aggregateRating – Star rating summary
  • review – Individual customer reviews

Basic Implementation Pattern

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "Wireless Headphones Pro",
  "image": "https://example.com/headphones.jpg",
  "description": "Premium noise-canceling headphones",
  "brand": {
    "@type": "Brand",
    "name": "AudioTech"
  },
  "offers": {
    "@type": "Offer",
    "price": "199.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "url": "https://example.com/product/headphones"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.5",
    "reviewCount": "87"
  }
}
</script>

Place this JSON-LD block in your product page's <head> or <body>.

Key Takeaway: Product schema transforms plain product pages into rich search results by providing structured data about price, availability, ratings, and reviews—making your products more visible and clickable in search engines.