When Google indexes a page, it often has trouble understanding the page's context and bits and pieces of specific data. By adding structured data to fill in the gaps, Google is able to provide more accurate and enhanced search results that can lead to higher click-through rates, making it a valuable part of SEO.
What is Structured Data?
Structured data is additional markup added to a page with data mapped to properties that Google and other search engines understand. Schema.org was created to standardize structured data across the most popular search engines (Google, Microsoft, Yahoo, and more) so implementing structured data isn't just for Google (although, when has anyone ever used Bing?).
Google's Content Types
Every piece of structured data for a page revolves around a content type. Google has a list of content types that follows the Schema.org standard. When adding content types, it's important to refer to Google's documentation and not Schema.org to see supported properties.
Here are some of Google's most used content types:
Here are the rest of the content types including types in beta:
- - Book
- - Course
- - Dataset
- - Employer Aggregate Rating
- - Fact Check
- - Job Posting
- - Media (limited access)
- - Occupation
- - Paywalled Content
- - Podcast
- - Recipe
- - Software App (beta)
- - Speakable (beta)
- - Top Places List (beta)
Google has a complete list of rich result features in its documentation, although it's not necessary to know these to take advantage of structured data.
Adding Structured Data
Google recommends adding markup using JSON-LD (JSON for Linking Data) like so:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Type",
"url": "http://www.example.com",
"name": "Example"
}
</script>
Writing structured data with JSON-LD keeps data grouped together and away from actual page content. This keeps it neatly packaged for maintenance instead of littered throughout the HTML. Each webpage can have more than one piece of structured data and they can be placed in either the
or regions of a page. Google's documentation has examples and guides for each content type.Testing and Validating
When finished, Google has a testing tool to validate that the code is correct. Google is also working on another tool to test rich results on already existing sites, but it currently doesn't support all content types.
Structured Data for Ecommerce with Shopify
Rich results can be especially helpful for products by displaying info like price, availability, and reviews that can lead to higher conversions. If using Starter Theme with Shopify, the structured data needed for products is already written! It can also be copied into any theme since it uses standard Shopify objects to populate the data with liquid. This code supplies structured data for product variants as well through the "offers" property, although this part isn't necessary and can be removed.
Conclusion
Using structured data is a great way to ensure that Google understands all content on a page and to enhance the search results for the page. Google is adding features to search all the time and structured data is a robust way to take advantage of it.