Tilbage til Schema
🛍️

Product Schema

Optimer e-commerce produkter med rich snippets, priser og ratings

Hvad er Product Schema?

Product schema bruges til e-commerce produktsider. Det viser produktinfo, pris, lagerstatus, ratings og anmeldelser direkte i Google søgeresultater.

Fordele:

  • • Rich snippets med pris og stjerner
  • • Højere CTR fra søgeresultater
  • • Visibility i Google Shopping
  • • Trust signals med ratings
  • • Availability status (på lager/udsolgt)

Required Properties

name

Produkt navn

image

Produkt billede (min 800px)

offers

Pris og availability

description

Produkt beskrivelse

Basic Example

Minimal Product Schema

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Wireless Headphones",
  "image": "https://example.com/headphones.jpg",
  "description": "High-quality wireless headphones with noise cancellation",
  "offers": {
    "@type": "Offer",
    "price": "799.00",
    "priceCurrency": "DKK",
    "availability": "https://schema.org/InStock",
    "url": "https://example.com/products/headphones"
  }
}

Complete Example with Ratings

Fuldt Product Schema med Reviews

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Wireless Headphones Pro",
  "image": [
    "https://example.com/headphones-1.jpg",
    "https://example.com/headphones-2.jpg",
    "https://example.com/headphones-3.jpg"
  ],
  "description": "Premium wireless headphones with active noise cancellation",
  "sku": "WH-PRO-2024",
  "mpn": "925872",
  "brand": {
    "@type": "Brand",
    "name": "TechBrand"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/products/headphones-pro",
    "priceCurrency": "DKK",
    "price": "799.00",
    "priceValidUntil": "2024-12-31",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition",
    "seller": {
      "@type": "Organization",
      "name": "Din Webshop"
    },
    "shippingDetails": {
      "@type": "OfferShippingDetails",
      "shippingRate": {
        "@type": "MonetaryAmount",
        "value": "0",
        "currency": "DKK"
      },
      "deliveryTime": {
        "@type": "ShippingDeliveryTime",
        "businessDays": {
          "@type": "OpeningHoursSpecification",
          "dayOfWeek": [
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday"
          ]
        },
        "cutoffTime": "14:00:00",
        "handlingTime": {
          "@type": "QuantitativeValue",
          "minValue": 1,
          "maxValue": 2,
          "unitCode": "DAY"
        }
      }
    }
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.7",
    "reviewCount": "156",
    "bestRating": "5",
    "worstRating": "1"
  },
  "review": [
    {
      "@type": "Review",
      "reviewRating": {
        "@type": "Rating",
        "ratingValue": "5",
        "bestRating": "5"
      },
      "author": {
        "@type": "Person",
        "name": "Anders A."
      },
      "datePublished": "2024-01-15",
      "reviewBody": "Fantastiske hovedtelefoner! Lyden er krystalkar..."
    }
  ]
}

Availability States

Schema.org Availability Types:

InStock

På lager og klar til forsendelse

OutOfStock

Udsolgt

PreOrder

Kan forudbestilles

Discontinued

Udgået produkt

LimitedAvailability

Begrænset lagerstatus

BackOrder

Kan restbestilles

Multiple Offers (Varianter)

Hvis produktet har flere varianter (farver, størrelser), brug AggregateOffer:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "T-Shirt",
  "offers": {
    "@type": "AggregateOffer",
    "priceCurrency": "DKK",
    "lowPrice": "199.00",
    "highPrice": "249.00",
    "offerCount": "6",
    "offers": [
      {
        "@type": "Offer",
        "price": "199.00",
        "priceCurrency": "DKK",
        "availability": "https://schema.org/InStock",
        "name": "T-Shirt - Small, Rød"
      },
      {
        "@type": "Offer",
        "price": "199.00",
        "priceCurrency": "DKK",
        "availability": "https://schema.org/InStock",
        "name": "T-Shirt - Medium, Rød"
      }
    ]
  }
}

Next.js Implementation

// app/products/[id]/page.tsx
export default function ProductPage({ params }) {
  const product = getProduct(params.id);

  const productSchema = {
    "@context": "https://schema.org",
    "@type": "Product",
    "name": product.name,
    "image": product.images,
    "description": product.description,
    "sku": product.sku,
    "brand": {
      "@type": "Brand",
      "name": product.brand
    },
    "offers": {
      "@type": "Offer",
      "price": product.price,
      "priceCurrency": "DKK",
      "availability": product.inStock
        ? "https://schema.org/InStock"
        : "https://schema.org/OutOfStock",
      "url": `https://example.com/products/${params.id}`
    },
    "aggregateRating": product.rating && {
      "@type": "AggregateRating",
      "ratingValue": product.rating.average,
      "reviewCount": product.rating.count
    }
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify(productSchema)
        }}
      />
      {/* Product content */}
    </>
  );
}

Rating Requirements

Vigtigt: Ratings skal være ægte kundeomtaler. Fabricerede eller vildledende reviews kan resultere i manual action fra Google.

Krav til aggregate ratings:

  • • Minimum 2 reviews for at vise stjerner
  • • Reviews skal være synlige på siden
  • • Rating skal matche synligt indhold
  • • Brug kun ratings fra verified purchases (anbefalet)
  • • Opdater når nye reviews tilføjes

Best Practices

✓ Gør dette

  • • Inkluder high-quality produkt billeder
  • • Opdater availability i real-time
  • • Brug SKU og brand information
  • • Inkluder shipping details
  • • Vis kun ægte ratings
  • • Test med Rich Results Tool

✗ Undgå dette

  • • Falske eller paid reviews
  • • Forkerte priser eller availability
  • • Low-quality produkt billeder
  • • Manglende required properties
  • • Schema på category/listing pages
  • • Inconsistent data med synlig info