How to test your JSON-LD code on Shopify using the Google Structured Data Testing Tool

When you’re using JSON-LD, microdata or Structured Data on Shopify, it’s important to test to make sure they are set up correctly.

If they aren’t, Google won’t be able to read them and you’ll get no benefit from having them.

Since they can be really technical and jargon-filled, they are easy to mess up.

1. Select your pages

Before you start testing your Shopify store, it’s best to pick a few pages to evaluate.

You can check every page on your store but most of the time by picking a handful of specific pages you can find any major issues.

For each page below, open a new tab or copy the full url into a document.

  • Your homepage
  • Product page, especially one with variants and reviews
  • Blog post (if you use them)
  • Any other special pages like cooking recipes, contact us, or blog posts with videos

2. Structured Data Testing Tool

Once you’ve collected your pages you’re going to use a tool from Google called Structured Data Testing Tool.

One at a time, enter each page url you’ve collected.

This site will download your page and search for any structured data on it. Once it finds things, it will create a report of everything it finds on the right side of the screen.

The best part of this tool is that you can navigate through the report on the right and drill down into each structured data object and see exactly what data has been set and where in the page’s HTML it was set at.

3. Good report


Above is an example of the report for a homepage. As you can see there are two objects: Website and Organization. When you navigate into each one the data should appear and you can quickly confirm everything is correct.


Here’s an example for a product. It has different data including the product price, description, and availability.


Notice that once you drill in deeper there are multiple Offers shown. Each of these are your variants.

4. Bad report with errors


The easy way to spot a bad or incorrect JSON-LD is to look for the Warnings and Errors.

Warnings are okay to ignore. They should be fixed but they won’t affect your listings negatively.

Errors on the other hand will prevent that data from being used. If the error is on a Product, then this product won’t be included in your site’s Rich Snippets. An error in the Article object will prevent that blog post from appearing.

Fixing errors in your JSON-LD can be difficult and complex depending on the error. JSON-LD uses, which while a very-heavily documented site, it’s very much a programmer’s API documentation resource.

If you have a developer on staff who understands JSON-LD and microdata they might be able to do the research and fix things. Or you can hire a developer to do it themselves.

Or you can save yourself the time and hassle and install a Shopify app like JSON-LD for SEO.

Get more organic search traffic for your Shopify store

JSON-LD for SEO icon

Never worry about SEO markup or rich snippets again! One click allows search engines and others to understand your store and products.

Install JSON-LD for SEO