{"id":1527,"date":"2021-09-29T18:17:51","date_gmt":"2021-09-29T22:17:51","guid":{"rendered":"https:\/\/rablab.ca\/structured-data-and-rich-snippets-in-2022\/"},"modified":"2024-10-23T18:11:42","modified_gmt":"2024-10-23T22:11:42","slug":"structured-data","status":"publish","type":"post","link":"https:\/\/rablab.ca\/en\/blog\/structured-data\/","title":{"rendered":"Structured data and rich snippets in 2024!"},"content":{"rendered":"
In SEO, rich snippets<\/strong> are an effective way to attract the attention of a user performing a Google search. You\u2019ve probably already seen them when you searched for a recipe, or asked a question on Google.<\/p>\n Indeed, they display a different look than the blue links list we all know so well. Here is an example of an enhanced result when searching for a recipe:<\/p>\n <\/p>\n Besides the fact that it is clearly \u201dAllrecipe\u201d<\/em> who dominates, we can see a lot of information even before clicking on the link, both in the carousel and in the result below:<\/p>\n So how do you appear in search results as rich snippets? How do rich snippets work?<\/strong><\/p>\n <\/p>\n First, it is important to define rich snippets.<\/p>\n Basically, rich snippets are a different way of presenting search results to users. For the latter, it allows them to have what they are looking for more easily, in addition to being more visually pleasing.<\/p>\n For businesses, this means more \u201creal estate\u201d on the results page. In other words, it takes up more screen space. More space for them = less space for their competitors.<\/p>\n <\/p>\n There are a multitude of different enriched results. Here are the main ones:<\/p>\n <\/p>\n This is only a small list of all the rich snippets possible with Google.<\/a><\/p>\n As you can see, there are a variety of ways to get attention!<\/p>\n <\/p>\n It\u2019s very well to have rich snippets, to display the ingredients of a recipe or extracts of texts to answer a question, but where does it come from?<\/p>\n This is where structured data comes in<\/strong>. This refers to a predefined format to present information on a web page to help the search engine understand what you are talking about. To do this, we refer to schema.org.<\/p>\n <\/p>\n Schema.org is a collaborative platform to standardize and promote the use of structured data on the web. On this platform, you can find a wide variety (always growing) of schema.org types or attributes for different pages, for example for a recipe<\/a>:<\/p>\n In this very small screenshot of the schema for a recipe, we can see the properties that we can fill in and thus enrich the content in the eyes of the search engine. For example, cookTime refers to the cooking time, recipeCuisine would allow us to specify that it is an Italian, Afghan, or Japanese dish and suitableForDiet can specify if the recipe is appropriate for certain dietary restrictions (halal, keto, gluten-free, etc.).<\/p>\n Moreover, the Schema.org vocabulary is standardized for all major search engines, such as Google, Bing, Yandex (Russia) and Baidu (China).<\/p>\n To add schema.org to your site<\/strong>, you need to use a specific data format, either Microdata, RDFa or JSON-LD<\/strong>.<\/p>\n <\/p>\n We recommend the use of JSON-LD because it does not require any HTML knowledge to be used, making it more accessible. Then, below, the preparation steps:<\/p>\n Finally, in this example, the note and a video version of the recipe is associated with it, with all the information attached to it:<\/p>\n This sounds like a lot, but it is not required to have so much information. You can have a rich snippet more easily, as long as the mandatory properties<\/strong> are present<\/span>. Obviously, it is always relevant to put as much information as possible, so that the user can find what he or she is looking for.<\/p>\n So, now that you know the \u201cwhy\u201d, it\u2019s time to move on to the \u201chow\u201d!<\/p>\n <\/p>\n Setting up structured data on your site to get rich snippets seems to be a complex process, but it can be summarized in 5 steps:<\/p>\n The steps are detailed below.<\/p>\n Before you start, you should be aware of one very important thing: Google does not guarantee that it will display rich results, even if they are well-informed<\/span>. Indeed, Google has a very specific goal, which is to respond to its users\u2019 searches. If its algorithm decides that not showing your rich results is the best way to go, that\u2019s exactly what will happen.<\/p>\n Nevertheless, we can maximize our chances of appearing on the most results by adding well-filled structured data.<\/p>\n However, if you really want to make sure you take advantage of rich snippets, hiring SEO experts is a great way!<\/p>\n <\/p>\n Talk to an expert<\/a><\/p>\n <\/p>\n The first step is to build the code you want to integrate. Don\u2019t worry, you don\u2019t need to code! There are plenty of JSON-LD code generators <\/strong>online, such as RankRanger<\/a>.<\/p>\n Simply choose from the drop-down menu the type of page you want, then fill in as many fields as possible. You will see the code on the right build up as you fill in the fields.<\/p>\n Be sure to fill in the required property<\/a> fields, which are listed on the page of the structured data type in question. To see the other types, they are listed in the left bar (orange rectangle):<\/p>\n Once your JSON-LD script is built, it\u2019s time to validate it to make sure the search engine understands it. For Google, there is the Enriched Results Test tool<\/a>. Simply click on the \u201cCode\u201d tab (orange box), paste in your code snippet that you built on RankRanger, then click on \u201cTest Code\u201d. The Enriched Results Test Tool<\/strong> does the rest:<\/p>\n If your code is validated, you will get a message looking like this, which will list what structured data is detected in your code:<\/p>\n <\/p>\n <\/p>\n Once your code is validated, it\u2019s time to put it in your HTML page. In the past, we have tested a method of inserting structured data using Google Tag Manager. However, we now recommend inserting them in the code of the page.<\/p>\n To do this, go into the HTML code of the page and paste the JSON-LD script<\/strong> into the <head> section of your page (before <\/head>). Theoretically, where to put the JSON-LD code doesn\u2019t really matter. You could put it in the <body> too, it\u2019s more a matter of preference.<\/p>\n Alternatively, there are several plugins for WordPress or Shopify that allow for easier integration of structured data on your website.4. Inspect your URL with Google Search Console.<\/p>\n <\/p>\n Once your code is inserted, go to Search Console and have the page URL inspected. This allows you to see how Google sees your site, and if your structured data is indeed taken into account by it:<\/p>\n The last step consists in notifying Google\u2019s indexing robots that a modification has been made. They will then recrawl your page, so that your structured data can be displayed in the SERP (Search Engine Results Page).<\/p>\n No need to change the page, just click on \u201cRequest indexing\u201d, and you\u2019re done:<\/p>\n Congratulations, you now have structured data associated with your page! Now all you have to do is wait.<\/p>\n <\/p>\n
<\/h2>\n\n
Definition of rich snippets<\/h2>\n
The different types of rich snippets<\/h2>\n
The star ratings snippets<\/h4>\n
<\/h4>\nRecipe snippets<\/h4>\n
<\/p>\nMusic snippets<\/h4>\n
<\/p>\nSnippet organisation<\/h4>\n
<\/p>\nMovie snippet<\/h4>\n
<\/p>\nStructured data with Google<\/h3>\n
Schema.org attributes<\/h4>\n
<\/p>\nThe Schema in JSON-LD format<\/h4>\n
\nIn fact, its ease of use has made it the most popular choice in the SEO field. Here is what a JSON-LD implementation of a recipe would look like:<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\nHow to get rich snippets?<\/h2>\n
\n
1. Build your script with a JSON-LD code generator<\/h3>\n
<\/p>\n
<\/p>\n<\/h3>\n
2. Make a rich snippet test to validate your code<\/h3>\n
<\/a><\/p>\n3. Insert your validated code in your page<\/h3>\n
3. Insert your validated code in your page<\/h3>\n
<\/p>\n<\/h3>\n
5. Make a request to reindex the page<\/h3>\n
<\/p>\n