What are schema tags?

Schema is a form of structured data that can be used to mark up different types of content on a website. Adding structured data markup gives search engines more information about your site and its content. This means search engines will be able to better read and understand your site, it will also qualify your content for enriched results which means more information can be displayed in SERPS as you can see in the example below From this we can see that it is pulling through the price and availability of the product.

Structured data can be used to mark up a variety of items such as products, videos, events, and even recipes. You can use schema.org or a google search for developers to find out what kind of structure data is available and the correct code. To ensure that you are using the Site Schema tag to markup the correct content on your site, we recommend that you read the Google Guidelines for Structured Data before implementing it on your website.

How to add a schema tag in shopify?

Add the schema to your Shopify site manually

There are two main ways to add schema tags in Shopify. The first option would be to manually add the schema tag. To do this you first need to login to the backend of your Shopify store and go to Online Store>Themes>Actions>Edit Code.

If you want to add a product schema tag, you need to go to your product. Liquid which can be found under Templates.

You can then paste the product schema code at the top of your Liquid. Once the code is implemented you might want to preview the product page to make sure the page isn't broken, you can also use Google's data testing tools to test whether the code is correct.

It's the same process if you want to implement and test any other schema such as FAQ, Breadcrumb, Location, etc. You'll just need to implement the schema in breadcrumbs and check that you're using the correct code.

However, we'd recommend doing this only if you're familiar with Shopify Liquid, HTML, and JSON. If you are not familiar with this we would recommend the second option as doing so is likely to introduce errors to your website.

Install a plugin to help you apply the schema to your Shopify site

The other (and easier) option is to install a plugin, there are a number of apps that can add schema tags to your site. However, we recommend using Smart SEO or Schema Plus for SEO. Smart SEO will automatically provide search engines including Google with detailed structured data in JSON-LD format. For example, it generates structured data for each product on your archive pages.

If you want to learn more about Shopify, check out our Ultimate Guide to Shopify SEO.