This page documents the schema.org markup output by the Yoast SEO for Shopify app.
The output is generally consistent with our general approach, but has some minor variations due to differences in platform mechanics.
Structured data and microdata removal
Many Shopify websites and themes include schema 'fragments'; e.g., isolated pieces of inline microdata, disconnected JSON-LD nodes, and thin or duplicate entity descriptions. To prevent potential conflicts and errors, we attempt to remove all existing structured data (in JSON-LD, and in microdata formats) from theme template when our app is installed.
Most apps which add structured data functionality (e.g., reviews, recipes, etc) shouldn't be affected, provided that they don't place their scripts directly in the theme code.
Every page should (attempt to) output the following pieces:
- Organization (see https://developer.yoast.com/features/schema/pieces/organization)
- Website (see https://developer.yoast.com/features/schema/pieces/website)
- Webpage (see https://developer.yoast.com/features/schema/pieces/webpage)
Note that this is dependent upon the following in the app's schema settings:
- The Organization's name and logo being defined, and;
- The respective pieces being enabled.
When these criteria are met, we produce our base script. In a Shopify store, this will typically looks something like the following (a composite of the above pieces):
On product pages
- Change the
- Add a
Productpiece (with an
offersproperty); see https://developer.yoast.com/features/schema/pieces/product/ and https://developer.yoast.com/features/schema/pieces/offer/
On blog posts
- Add an
Articlepiece (see https://developer.yoast.com/features/schema/pieces/article)