How to Add Product Schema Markup to Your Website

Want better SEO results for your webshop? Read our guide on how to add Product schema markup to increase organic traffic and sales.

Date modified
Product Schema Markup Example

What are Product Schema Markup?

Product schema markup is a type of structured data you can add to your website's HTML code on product pages, typically used by e-commerce shops.

This markup can enable rich snippets for showing price, review ratings, availability, shipping information, price drop and pros & cons (new visual element) in search results. It also makes it easier for search engines to fetch relevant product information and for users to find and compare your products.

Product structured data can combine schema markup types for Product, Review and Offer, each requiring its own set of properties.

Product information has two result types: product snippets and merchant listing experience. The latter has additional avenues for being display at Google.

Popular Product example:

Popular product

Shopping Knowledge Panel example:

Shopping knowledge panel

Google Images example:

Google images

How to Add Product Schema Markup?

Structured data for product pages can be deployed to your website in 3 steps:

  1. Make sure content meets Google guidelines for product schema
  2. Create JSON-LD markup code with product information
  3. Add Product markup to product page

Step 1: Make Sure Content Meets Google Guidelines for Product Schema

Google has guidelines you need to follow in order to enable rich results for product pages.

There's extensive information about each structured data attribute you can add to a markup, but on a general basis you should:

  • Only use up-to-date information
  • Use original content either you or users have made
  • Don't mark up information not on the page
  • No fake or misleading reviews
  • Do not impersonate any person or organization
  • Use markup for a specific product page, rather than categories or pages listing multiple products
  • If you have multiple currencies, have a specific URL per currency.
  • Reviewer's name must be valid
  • Pros and cons: Only editorial product reviews, and it has to be visible on page.
  • No prohibited or regulated goods, services or information

Note: You can find errors with product schemas in Google's Merchant listings report or Product snippets report.

Step 2: Create JSON-LD Markup Code With Product Information

There's a lot of attributes that can be used, and all of them are relevant for Google and Bing one way or another, but there's certain information that are required for enabling rich results:

Product Schema Markup example:

  "@context": "",
  "@type": "Product",
  "name": "Executive Anvil",
  "description": "Sleeker than ACME's Classic Anvil...",
  "review": {
    "@type": "Review",
    "reviewRating": {
      "@type": "Rating",
      "ratingValue": "4",
      "bestRating": "5"
    "author": {
      "@type": "Person",
      "name": "Fred Benson"
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.4",
    "reviewCount": "89"

(truncated for visual purposes)

The most common structured data formats are: Microdata, RDFa, and JSON-LD. Google recommend JSON-LD markup, so our recommendation is to use it:

We currently prefer JSON-LD markup. I think most of the new structured data that are kind of come out for JSON-LD first. So that's what we prefer.

- John Mueller (Google Search Advocate)

Examples above are using JSON-LD, and contains structured data for a product page. Additional information can be added to Merchant Center with a shopping feed and review feed.

Adding both product schema markups to website and feeds in Merchant Centers will maximize the chance of attaining rich snippets in Google search, and ensuring they correctly understands and verifies your data.

Step 3: Add Product Markup to Product Page

Schemas can be deployed in primarily 3 different ways:

  1. Directly in your site's HTML
  2. Through a plugin
  3. With a third party solution

Directly in Your Site's HTML

Add your schema markup code inside a script tag. This tag is then added to either the head or body section of your HTML.

    <title>Your page title</title>
    <script type="application/ld+json">
      "@context": "",
      "@type": "Product",

Warning: Avoid adding product structured data manually and automate whenever possible. Product information can be accessible and easy to automate.

Simplified example with Javascript, with product information in "rows":

const rows = [
    id: "A2B4",
    title: "Product title text",
    description: "Product description text",
    price: 999,
  {other rows...}

The use "rows" data to populate Product schema markup:

{ => {
    "@context": "",
    "@type": "Product",
    "name": row.title,
    "description": row.description,
    "offers": {
      "@type": "Offer",
      "itemCondition": "",
      "availability": "",
      "price": 999.00,
      "priceCurrency": "NOK"

Through a Plugin

If you're using content management system (CMS) with a rich ecosystem of plugins, chances are that you can find a plugin for deploying product schema.

Wordpress is often used for e-commerce, and you can embed WooCommerce or Shopify plugins to transform your site into a webshop. E-commerce solutions such as this gives you the option to mark up product information and generate product schema.

Example of settings for automating product markup in Wordpress:

Wordpress Product Schema Markup example

Other CMS are specifically made for shopping such as Magento or BigCommerce, and structured data are either activated by default or available for deployment through plugins.

With a Third Party Solution

metamanager is a solid solution to get product schema markup.

It's a SaaS solution for SEO that specialize in on-page SEO optimization, and one of the features is publishing structured data. It supports all schema markup types, herein Product.

If you already have a shopping feed (perhaps for Merchant Center or Facebook Product Ads), then you can add it in the platform and it will populate all product pages with data from the feed.

Step 1: Connect website to metamanager and get a full overview of your URLs and their traffic insight:

metamanager URL table for products

Step 2: Add feed and auto-create product schemas, and update if necessary:

metamanager edit schema markup

Step 3: Edit title and description for how it will show up in search results:

metamanager edit meta data product

Bonus: Do you have reviews on your page? A shopping feed do not usually contain product reviews, but if you have data from either Lipscore or Trustpilot it can merge ratings and product information for a complete markup for organic search results and shopping ads.

"metamanager is an excellent solution for implementing product schema markup on your website, fast."