Structured Data Markup
The JSON-LD Strutured Data Format feature needs:
-
SuiteCommerce or SuiteCommerce 2020.1 (or later)
-
A theme based on the 2020.1 (or later) Base Theme.
Major search engines use structured data markup to discover more details about a page and improve search results.
The URL for parent and child matrix items is the same and will be tracked as the same by search engines.
SuiteCommerce web stores use JavaScript Object Notation for Linked Data (JSON-LD) when implementing structured data markup. The JSON-LD markup is located within script tags in the HTML head section of product detail pages. Product list pages don't include the JSON-LD markup.
See schema.org/product for more information about product-related schema.
Setup
To use structured data markup for your domain, you need to configure two options in the domain configuration record. After you save your changes, SuiteCommerce websites automatically add valid JSON-LD structured data markup to each product detail page. See JSON-LD Product Schema Properties for an alphabetical list of properties used in the structured data markup.
Enable Structured Data Markup
-
In NetSuite, go to Commerce > Websites > Configuration.
-
Select your website and domain and click Configure.
-
In the configuration record, go to the Shopping Catalog tab and the Structured Data Markup subtab.
-
Select JSON-LD in the Markup Type field to add it to all product detail pages, or pick No Markup if you don't want it added.
-
Choose an Out of Stock Behavior—these options only matter if backorders are allowed.
Options include:
-
InStock — Choose this when backorders are allowed, and the availability property will be set to: http://schema.org/InStock. InStock is the default value.
-
PreOrder — Choose this when backorders are allowed, and the availability property will be set to: http://schema.org/PreOrder.
-
-
Click Save.
JSON-LD Product Schema Properties
SuiteCommerce and SuiteCommerce Advanced use the properties listed in the table to describe product content.
Property |
Content |
aggregateRating |
Overall rating, based on a collection of reviews or ratings, of the item. For additional information about each associated subfield, see AggregateRating. |
availability |
Availability of the item when backorders are permitted. Options include InStock or PreOrder. InStock is the default. |
description |
Description of the item. |
image |
Location URL of an image of the item. See ImageObject. |
name |
Name of the item. |
offers |
Details about the item offered for sale. |
price |
Offer price of the item. |
priceCurrency |
Currency code used for the price. See ISO 4217 for a list of valid currency codes. |
ratingValue |
Dontent rating. |
review |
Review of the item. |
reviewCount |
Total number of reviews. |
sku |
Merchant-specific identifier for the item. |
url |
URL of the item. |
See the following sample of JSON-LD markup:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Yamaha 2017 BB735A Electric Guitar - Dark",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "1"
}
"description": "The Yamaha 2017 BB735A Electric Guitar is a superior guitar.",
"url": "https://search.google.com/Yamaha-2017-BB735A-Electric-Guitar-Dark?quantity=1",
"image": "http://test.commerceapplication.com/Images/yamaha_2017_bb735a.00.jpg?resiseid=31&resizeh=600&resizew=600",
"sku":"Yamaha 2017 BB735A Electric Guitar - Dark",
"offers": {
"@type": "Offer",
"url": "https://search.google.com/Yamaha-2017-BB735A-Electric-Guitar-Dark?quantity=1",
"availability": "http://schema.org/InStock",
"price": "769.00",
"priceCurrency": "USD"
},
"review": []
},
</script>