Stars in Google results: when the rating shows and how to mark it up
Stars with an average rating next to a search result attract attention, but one of the routes websites try to get them through hasn't led to stars since 2019: a widget with reviews of your own business on the home page. Based on the Google Search Central documentation, this article explains for which content types Google can show a rating, why a business doesn't get stars for reviews about itself, what must be visible on the page, how to write Review and AggregateRating structured data, what to watch out for on online store product pages and how to verify the result in Search Console.
1. When Google shows stars and when it doesn't
Google calls this element a review snippet. According to the review snippet documentation, it is a short excerpt of a review or a rating, usually an average of ratings from many people. When Google finds valid review or rating structured data on a page, it may show stars and other summary information with the result. The snippet can appear in a rich result or in a knowledge panel.
The key word is “may”. The general structured data guidelines state explicitly that Google doesn't guarantee a rich result will show, even when the code passes the Rich Results Test. The algorithm tailors results to search history, location and device, among other things, and sometimes prefers a different element or a plain text result.
Which content qualifies for a rating
Stars can't be attached to just anything. In its September 2019 announcement, Google narrowed the range of types, reasoning that for many types stars don't give users much. The documentation now lists these content types:
| schema.org type | Example page | Restriction |
|---|---|---|
| Product | Online store product page, product review | Rating of a specific product, not a category |
| Recipe | Recipe with visitor ratings | No additional restriction |
| SoftwareApplication | App or software page | No additional restriction |
| Book, Movie, Event, Game | Review of a book, movie, event or game | No additional restriction |
| Course | List of courses with ratings | No additional restriction |
| LocalBusiness | Portal collecting reviews of restaurants or tradespeople | Only if the website reviews other businesses |
| Organization | Portal with ratings of other organizations | Only if the website reviews other organizations |
The documentation also lists less common types, for example music recordings, TV episodes and media objects, and for employer ratings it points to the separate EmployerAggregateRating type. For a typical business website and online store, the rows in the table above are what matter. What structured data is and how it works in general is explained in the article structured data.
💡 Stars in ads are a different thing. The rating on a paid ad doesn't come from structured data on your website and has its own requirements. They are covered in the article seller ratings in Google Ads. This article deals only with organic results.
2. Reviews of your own business: why you won't get stars
A typical situation looks like this: a business adds a widget with Google or Facebook reviews to its home page or “About us” page, adds LocalBusiness structured data with an average rating and waits for the stars. They don't appear, and it's not a code error.
Google calls such reviews self-serving. According to the documentation, this is when the business or organization being reviewed controls the reviews about itself: a review about entity A is placed on entity A's website, either directly in the structured data or through an embedded third-party widget. Pages with the LocalBusiness type or another Organization type are then not eligible for stars.
What the rule means in practice
The Q&A on the change from 2019 clarifies several details:
- A third-party widget doesn't help. Google treats embedding a widget as the business controlling reviews about itself. It won't show stars on pages with such a widget.
- It applies to both Review and AggregateRating. It doesn't matter whether you mark up individual reviews or only the average.
- You don't need to delete them and there is no penalty. Reviews of your own business are not in themselves a reason for a manual action; Google simply won't show the snippet for these pages.
- Your Google Business Profile stays untouched. The change applies only to organic results, not to ratings in the Business Profile.
- Portals with reviews of other businesses are not affected. A website that collects ratings of restaurants or tradespeople can get stars for those reviews.
For a local business, this means its star rating reaches people through its Google Business Profile, not through structured data on its own website. How to set up the profile and how it relates to the map is explained in the article local SEO. How to get reviews from customers is covered in the article business reviews.
A business that sells products or publishes recipes, however, doesn't lose out on stars. The rule concerns ratings of the business, not ratings of its products, recipes or apps. Products are covered in part five of this article.
3. Content guidelines: what must be on the page
Even formally flawless code can stay without stars if the page violates the content guidelines. According to Google, the Rich Results Test may not detect such violations. The review snippet documentation and the general structured data guidelines list these requirements:
| Guideline | What it means | Typical mistake |
|---|---|---|
| Visibility | Visitors must immediately see that the page contains reviews: the review text and its rating, and for an average, the average itself | The rating is only in the JSON-LD code, not on the page |
| Specific item | The rating belongs to one thing, not to a category or list | Average rating on a product category page |
| Your own ratings | Reviews and ratings are not taken from other websites | Average copied from a price comparison site or from Google |
| Genuine reviews | No fake reviews and no incentivized reviews unless the incentive is clearly and visibly disclosed | Review in exchange for a discount code without disclosure |
| Completeness | If you show several reviews on the page, the code should include all visible reviews plus the aggregate rating | Only five-star reviews are in the code |
| Accessibility | The page must not be blocked by robots.txt, a noindex tag or a login | Reviews load from a URL disallowed in robots.txt |
The documentation adds a recommendation that isn't mandatory: accept only ratings where the customer also writes a comment and gives a name. That way readers can see what the rating is based on.
For ratings of local businesses and organizations, meaning on portals that review other businesses, two more rules apply: ratings must come directly from users and must not be created, selected or compiled by editors.
What happens if you break the rules
The general guidelines state that Google can issue a manual action for misleading structured data, for example fake reviews. The page then loses eligibility for rich results, while according to Google its position in regular search doesn't change. Fake reviews are also a consumer protection issue, not just a search engine one; that side of the matter is covered in the article fake reviews.
4. How to write Review and AggregateRating
Google supports three structured data formats: JSON-LD, Microdata and RDFa. It recommends JSON-LD, because it goes in a separate block and doesn't mix with the page's HTML. There are two types to choose from:
- Review is a single review with the author's name and a rating.
- AggregateRating is a summary: the average rating and the number of ratings.
You can write both types on their own with the itemReviewed property, which specifies what is being rated, or nest them in the rated item through the review and aggregateRating properties. When nesting, itemReviewed is left out, because the parent object is the rated item.
Required and recommended properties
| Property | Type | Required or recommended, and Google's rule |
|---|---|---|
author | Review | Required. A valid name of a person or organization, shorter than 100 characters; text like “50% off until Saturday” is not a name |
reviewRating.ratingValue | Review | Required. A number, fraction or percentage |
itemReviewed and its name | Review and AggregateRating | Required if the rating is not nested; the name of the rated item must always be given |
ratingValue | AggregateRating | Required. The average rating |
ratingCount or reviewCount | AggregateRating | At least one is required: the number of ratings or the number of people who wrote a review |
bestRating, worstRating | Both | Recommended. If missing, Google assumes a scale from 1 to 5 |
datePublished | Review | Recommended. The review date in ISO 8601 format |
Decimal point, not comma
One detail matters for Slovak websites. The documentation requires a decimal point in structured data: 4.4, not 4,4. You can show the rating to visitors with the Slovak decimal comma; in Microdata you handle this with the content attribute, for example <span itemprop="ratingValue" content="4.4">4,4</span>. In JSON-LD, write the number with a point.
A scale other than 1 to 5
If you rate on a scale up to 10 or in percentages, Google understands the scale on its own for a fraction (6 / 10) and a percentage (60%). For a plain number it assumes a scale of 1 to 5, so for a different scale, include bestRating and worstRating.
Example: a product with an average and one review
An illustrative example of nested markup for a product page. The values must match what is visible on the page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Ľanové nohavice Leto",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"reviewCount": 38
},
"review": [{
"@type": "Review",
"author": { "@type": "Person", "name": "Jana Kováčová" },
"datePublished": "2026-08-14",
"reviewRating": { "@type": "Rating", "ratingValue": 5 },
"reviewBody": "Príjemný materiál, veľkosť sedí podľa tabuľky."
}]
}
</script>
If your content management system generates structured data on its own, first find out exactly what it inserts, and only then add your own code. A page shouldn't have two blocks with different ratings for the same item.
5. Ratings on online store product pages
For an online store, stars mainly concern product pages. A product rating is not a review of the business by itself, so the rule from part two doesn't apply to it. Google has two related guides for this.
Product snippet and merchant listing
According to the product snippet documentation, the Product type needs a name and at least one of the properties review, aggregateRating or offers. If you include only an offer without a rating, the Rich Results Test may show a warning, not a critical error. For pages where the product can be bought, Google recommends merchant listing structured data; the rating is written the same way there and follows the review snippet guidelines.
Five rules for an online store
- The rating belongs on the product page, not the category page. The documentation recommends marking up product pages, not pages listing products. An average for a whole category is a rating of a list, not of a specific item.
- Don't take ratings from other websites. Product reviews from a price comparison site or from the manufacturer don't belong in your structured data; the guidelines prohibit aggregating reviews and ratings from other websites.
- A store rating is not a product rating. A badge or widget with the average rating of the whole online store is a rating of the business, and the restriction from part two applies to it.
- Put structured data in the initial HTML. The product snippet documentation warns that data generated by JavaScript can lead to less frequent and less reliable crawling, which hurts especially when price and availability change quickly.
- With variants, keep things consistent. If each variant has its own URL, the rating in the code should match what the visitor sees at that URL.
Pros and cons only for editorial reviews
For a product review, Google can also show a summary of pros and cons. The documentation limits this to editorial product reviews, so not to merchant pages or customer reviews, and lists the supported languages: Dutch, English, French, German, Italian, Japanese, Polish, Portuguese, Spanish and Turkish. Slovak isn't on the list, so according to the documentation the positiveNotes and negativeNotes properties won't trigger this element for Slovak-language reviews.
Other product page settings, from titles to out-of-stock items, are summarized in the article SEO for online stores.
6. Testing, Search Console and common reasons for failure
The verification process according to Google's documentation has four steps:
- Rich Results Test. In the Rich Results Test, check the URL or the pasted code and fix critical errors. The help article for the test warns that the test ignores comments in a JSON-LD block, even though the standard doesn't support them; remove them from the code before publishing.
- URL Inspection. After deploying to a few pages, use the URL Inspection tool in Search Console to check how Google sees the page and, if needed, request recrawling.
- Review snippets report. After indexing, you'll find the Review snippets report among the enhancement reports in Search Console; the Product snippets and Merchant listings reports are in the Shopping section. According to the help article on the reports, the report appears only once Google finds valid markup on the site, and it shows only a sample of items, not a complete list.
- Monitoring after template changes. The documentation advises checking the report after every major template change: a rise in invalid items points to an error in the new template, and a drop in valid items without a rise in invalid ones means the structured data has disappeared from the pages.
The code is valid but there are no stars
| Cause | How to recognize it | Solution |
|---|---|---|
| Reviews of your own business | LocalBusiness or Organization type on your own website, or a widget with business reviews | Can't be worked around; stars for a business come through its Google Business Profile |
| Unsupported type | The rating is attached, for example, to an article or a service without a supported type | Mark up only the supported types from part one |
| The rating isn't visible | The average is in the code, but visitors can't find it on the page | Show the average and the reviews on the page |
| Manual action | An entry in the Manual actions report in Search Console | Fix the data and request a review |
| Algorithm decision | Everything is fine, but stars show only sometimes or not at all | Nothing; Google doesn't guarantee display |
| The page hasn't been crawled yet | URL Inspection shows an old version | Wait; according to the documentation, crawling can take several days |
With a structured data manual action, according to the documentation Google ignores the structured data on the page, but the page can still appear in search results. If you haven't found the problem after these steps, Google points you to the Google Search Central forum.
Checklist before deployment
- The page is about one specific item of a supported type.
- These are not reviews of your business on your own website.
- The average, the number of ratings and the individual reviews are visible on the page and match the code.
- The ratings come from your customers, not from another website.
- Numbers in the code use a decimal point, and for a scale other than 1 to 5 the code also has
bestRating. - The Rich Results Test reports no critical errors.
Stars change how a result looks, not the content of the page: the page first has to rank in Google before there is anything to show the rating next to. Where they fit in the whole process is shown in the overview SEO optimization.
Sources
- Google Search Central: Review snippet (Review, AggregateRating) structured data, supported types, the rule on self-serving reviews and third-party widgets, review visibility, the ban on aggregating from other websites and on fake or undisclosed incentivized reviews, required and recommended properties, decimal point, 1 to 5 scale, verification process and troubleshooting.
- Google Search Central Blog: Making Review Rich Results more helpful (16 September 2019), narrowing of types, reasoning on self-serving reviews, Q&A on widgets, manual actions, Business Profile and AggregateRating.
- Google Search Central: General structured data guidelines, no guarantee of display, formats and the JSON-LD recommendation, accessibility for Googlebot, the ban on invisible and misleading content, review completeness, manual action without effect on ranking.
- Google Search Central: Product snippet structured data, required Product properties, marking up product pages instead of lists, structured data in the initial HTML, pros and cons only for editorial reviews and the list of languages, Search Console reports.
- Google Search Central: Merchant listing structured data, ratings in merchant listings under the review snippet guidelines.
- Search Console Help: Rich result report overview, location of the reports, the Review snippets report, conditions for the report to appear and the sample of items.
- Search Console Help: Rich Results Test, supported types including Review snippet and the warning about comments in JSON-LD.
Frequently asked questions
Why don't stars show for my business even though I have Google reviews on my website?
Since 2019, Google hasn't shown stars for the LocalBusiness and Organization types when the business being reviewed controls the reviews about itself, meaning when they are on its own website directly in the code or in an embedded widget. It's not a code error or a penalty. A business's rating shows in Google through its Business Profile.
Can an online store get stars on its products?
Yes. A rating of a specific product is not a review of the business by itself. The product page needs Product structured data with the aggregateRating or review property, the ratings must be visible on the page and they must come from your customers, not from another website.
Do I have to include both the average and individual reviews?
For a snippet with an average rating, AggregateRating with the average and the number of ratings is enough. But if you display several individual reviews on the page and mark them up in the code, Google's documentation asks you to add the aggregate rating as well and to include in the code all the reviews visible on the page.
Do stars improve a page's ranking in search?
Google's documentation doesn't say so. Structured data makes a rich result possible, but Google doesn't guarantee it will show. According to Google, a structured data manual action makes a page lose eligibility for rich results, but its position in regular search doesn't change because of it.
Can I write the rating in the code as 4,5 with a comma?
No. Google requires a decimal point in structured data, so 4.5. You can show the rating to visitors with a comma; in Microdata, the content attribute is used for that, and in JSON-LD you simply write the number with a point.