Google Structured Data JSON-LD (Product)

Background

Use structured data to help Google understand the content of your site and enable special Search result features for your pages.

https://developers.google.com/search/docs/data-types/product

Implementation

Add below JSON-LD code to /Panel/ProductDetails.html (should be applied to both Desktop and Mobile templates)

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "%%GLOBAL_ProductName%%",
  "image": "%%GLOBAL_ZoomImageURL%%",
  "description": "%%Page.MetaDescription%%",
  "sku": "%%GLOBAL_SKU%%",
  "mpn": "%%GLOBAL_SKU%%",
  "brand": {
    "@type": "Thing",
    "name": "%%GLOBAL_BrandName%%"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "%%Include.http://www.moddiy.com/shopperapproved/md-average.txt%%",
    "reviewCount": "%%Include.http://www.moddiy.com/shopperapproved/md-count.txt%%"
  },
  "offers": {
    "@type": "Offer",
    "url": "%%GLOBAL_CurrentProductLink%%",
    "priceCurrency": "%%GLOBAL_CurrencyCode%%",
    "price": "%%GLOBAL_SchemaPrice%%",
    "priceValidUntil": "2030-01-01",
    "itemCondition": "http://schema.org/NewCondition",
    "availability": "http://schema.org/InStock",
    "seller": {
      "@type": "Organization",
      "name": "modDIY.com"
    }
  },
  "review": [
    {
     "@type": "Review",
     "author": "John",
     "datePublished": "2019-01-22",
     "name": "modDIY is great!",
     "reviewBody": "Excellent product, fast delivery, very satisfied!",
     "reviewRating": {
      "@type": "Rating",
      "ratingValue": "5"
     }
    }
  ]
}
</script>

Check result at https://search.google.com/structured-data/testing-tool/

Leave a Reply

Your email address will not be published. Required fields are marked *