What is Google Structured Data?
There’s a lot of information on your website and search engines should understand what your content is. One of the ways you can assist search engines in comprehending your site is to add Structured Data to your pages. Structured Data gives explicit clues about the meaning of a page. It is a standardized format for providing information and classification of a page.
For example, a recipe page might look like so:
- Recipe (https://jsonld.com/recipe/)
- Cook time
With the Structured Data on the page, Google can use the Structured Data to enable special results features as shown in the image below. Additionally, you can have photos in the search result rich snippet:
- Your logo or relevant image
Adding Structured Data To Our Pages
There are 3 ways in which we can add structured data to our pages with JSON-LD being the recommended version.
- Microdata is an open-community HTML spec where you can add structured data within the HTML content. Tag attributes would usually be in the page body, but can be used in the head.
- RDFa is a HTML 5 extension that supports linked data by using HTML tag attributes and can be used in the body and head.
What structure should I use for a product page, contact page, etc?
There are a couple resources you can use.
Product structure is on the of the first data types that popularized Structured Data.
These two pages have several examples and are guidelines. You can use any of the examples but please remember that your Structured Data should reflect what is on the page. So if you want to notate that something is in stock/out of stock in your Structured Data, then you'll need to have that on your product detail page also.
Testing your Structured Data
After you’ve added your structured data on a page you can test it using Google’s Structured Data Testing tool. https://search.google.com/structured-data/testing-tool
If your code is still under development and Google cannot navigate to your development URL you can view the source of your local dev page and paste it into the tool to see the results.
So that’s all there is to it for Structured Data. A relatively simple thing to add to your pages to help search engines understand your content. Remember to add only data that is shown on the page and use the resources linked in this article for the formatting of the structured data. Test your Structured Data for any errors and you should be good to go for better search results. How have you used Structured Data? Share below in the comments.