Image

Product Schema

Product schema is a structured data markup which helps ecommerce merchants or potential buyers while searching for their products availability on search engine result page(SERP).

Importance of Product Schema

Product schema is important for any ecommerce brand, search engine gives potential customers complete information about your products availability, reviews, ratings, price etc. in a structured way.

Implementation of product schema involves inserting code into product pages, which helps bots to read.

You can use schema.org, the most preferred platform by Google, to describe your product in detail on search engine results, there are many other platform options to describe each product page of your ecommerce website. Below are the steps to implement Product Schema for a Single Product in Shopify

Steps to implement Product Schema for a Single Product in Shopify

Step 1

Login to your shopify admin account and go to "Online Store". Click on Actions -> Edit Code

Step 2

Create a new snippet with the name "product-schema.liquid" and place the below code. Make sure all the properties like name, reviews, aggregate rating, offers, sku, mpn are present to avoid warnings. You can also generate the product schema code using the online schema generators.

Note: Values of the properties changes based on the products.

Step 3

Now include the product-schema.liquid snippet in the "product-template.liquid" file which is present in the "Sections"

Step 4

Validate your code using the Rich Results Test.

https://search.google.com/test/rich-results

Results

Before the implementation of Product Schema there is no preview available for the product page.

After the implementation, structured data is present.

Read similar blog: How to Create Custom HTML GTM (Google Tag Manager) tags for non CMS (Content Management System) Web Applications ➞

Receive latest marketing insights, data and inspiration

View Blogs ➞ Subscribe ➞

Start your Project Today

Get Started