Google Rating in Search Results for Webpages

Created: 10.06.2016 | Updated: 29.03.2017

What is it all about?

You definitely have seen these nice ratings in Google search results. They are pretty cool if you have some kind of web content which is rated or otherwise assessed by your users. Let's have a look how this can be done for your own webpages.

Code Snippets

First of all you need to make sure that your page is recognized as a product related page. Let's assume the whole page is just about one product or one thing which is rated by your users. In this case we can place the itemscope definition directly in the html tag.

Next we have to define the parameters for the rating itself. This can be done somewhere in your page but preferable at the top of it. In this case I do it directly at the beginning of the body and make sure that it is not visible on the page.