Skip to main content
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Advanced Schema Markup for Star Ratings in Google Search

Advanced schema markup for rich results

Star ratings in Google Search come from Review and AggregateRating schema, structured data that tells Google a page contains genuine rating information. The rule that matters more than any code: Google strictly prohibits self-serving reviews, ratings a business writes about its own products or services, and enforcement in 2026 can revoke rich-result eligibility site-wide, not just for one page. Star ratings are only eligible for specific content types (products, recipes, software apps, local businesses, books, courses, and events), and they must reflect genuine, real reviews, not a single author’s own opinion dressed up as an aggregate rating.

Before You Start

Make sure you have the following in place first:

  • Genuine, real reviews or ratings to reference, not content you plan to write to justify adding schema afterward
  • Clarity on which specific page this applies to, star ratings only qualify for certain content types, covered below

Gold stars beneath a search result genuinely catch the eye and can meaningfully improve click-through rate. That’s exactly why so many site owners want them, and exactly why Google has cracked down hard on sites gaming this specific feature. Before touching any code, the rule you need to understand is worth more than the implementation itself.

What You’ll Learn

  • The difference between Review and AggregateRating schema
  • The self-serving review rule, and why violating it risks your entire site’s rich results, not just one page
  • Which content types genuinely qualify for star ratings
  • An honest look at whether this fits typical blog or review content

Review vs. AggregateRating: The Two Types

Review schema describes one specific rating from one identified person, with fields like author, ratingValue, datePublished, and reviewBody. AggregateRating summarizes many ratings into a single average score and count, the “4.7 out of 5, based on 203 reviews” format you see everywhere. They complement each other, Google generally wants to see both together on a page eligible for star ratings, not just one alone.

The Rule That Matters More Than the Code

Google’s self-serving review policy prohibits a business or its representatives from writing ratings about their own products or services and marking them up as if they were genuine, independent reviews. This has been enforced since 2019, tightened further in 2023, and in 2026 enforcement has become considerably stricter: a violation can revoke rich-result eligibility for the entire site, not just the offending page.

This matters for a very specific reason relevant to review-style content: a single author’s personal opinion, however well-researched and honest, is not the same thing as an aggregate of genuine, independent reviews. Writing a thorough, honest product review is genuinely valuable content. Marking it up with AggregateRating schema implying multiple independent reviewers rated it, when it’s actually one person’s assessment, crosses into exactly the territory Google penalizes.

Which Content Types Actually Qualify

Star ratings are only eligible for specific content types: products, recipes, software applications, local businesses, books, courses, and events. A general blog post or opinion piece, even a genuinely excellent one, isn’t automatically eligible just because it discusses or recommends something.

An Honest Look at Whether This Fits Typical Review Content

If you’ve written a single-author review of a tool or service (the kind of content covered in our Tool Reviews & Comparisons track), adding AggregateRating schema to reflect your own personal assessment as if it were a collected average of many reviews would misrepresent what the content actually is, and risks exactly the enforcement described above.

The legitimate path, if you genuinely want star ratings on this kind of content: collect real reader feedback directly on the page, a simple, real rating widget where actual visitors leave their own scores, then mark up the resulting genuine aggregate. That reflects real data. Anything else is inventing a rating, the same category of problem as fabricating a testimonial or a case study.

WebGomu Tip: Before adding star rating schema to any existing review or comparison content, ask honestly: does this page actually have multiple genuine, independent ratings behind it, or is it one person’s well-researched opinion? If it’s the latter, skip the schema rather than risk site-wide rich-result penalties for content that doesn’t genuinely qualify.

How to Implement It, Once You Genuinely Qualify

  1. Confirm your content type is eligible (product, recipe, software, local business, book, course, or event).
  2. Collect real, visible reviews or ratings on the page itself, Google expects the schema to match what’s actually visible to readers, not just exist invisibly in the code.
  3. In Rank Math, open the post or page editor, scroll to the Rank Math meta box, and open the Schema tab.
  4. Select the appropriate schema type (Product, Software Application, and so on) and let Rank Math’s Schema Generator prompt you for the required fields, ratingValue, reviewCount, bestRating, worstRating.
  5. Include scale information (bestRating and worstRating), without it, Google can’t interpret whether a “4” means excellent or mediocre.
  6. Update the schema periodically as new genuine reviews come in, stale, undated ratings can be devalued.

Troubleshooting

My star ratings aren’t showing up in search results

Confirm your content type is actually eligible, and that both Review and AggregateRating are present together where required. Run the page through Google’s Rich Results Test to check for specific validation errors.

I’m not sure if my content qualifies as self-serving

If the ratings reflect your own single opinion rather than a genuine collection of independent reviews, it’s safer to skip AggregateRating schema entirely rather than risk site-wide rich-result penalties.

Common Mistakes

  • Marking up a single author’s opinion as an AggregateRating, implying multiple independent reviewers when there’s only one.
  • Adding AggregateRating without a visible Review element on the page, or vice versa.
  • Omitting bestRating and worstRating, leaving Google unable to interpret the rating scale.
  • Assuming star ratings are eligible for any blog post, they’re restricted to specific content types.

Recommended Tools

  • Rank Math’s Schema Generator — handles the JSON-LD structure, covered in our setup guide
  • Google’s Rich Results Test — free, confirms whether your markup is actually valid and eligible

Key Takeaways

  • Review and AggregateRating schema work together to produce star ratings in search results.
  • Self-serving reviews are strictly prohibited, and 2026 enforcement can revoke rich-result eligibility site-wide.
  • Only specific content types (products, recipes, software, local business, books, courses, events) qualify.
  • A single author’s opinion isn’t the same as a genuine aggregate rating, don’t mark it up as if it were.

Frequently Asked Questions

Can I add star ratings to my own product review blog post?

Only if the rating genuinely reflects a collection of independent reviews, not a single author’s personal opinion. Otherwise, it risks violating Google’s self-serving review policy.

What happens if Google catches a self-serving review violation?

As of 2026, enforcement can revoke rich-result eligibility for the entire site, not just the specific page in violation.

What’s the difference between Review and AggregateRating schema?

Review describes one specific rating from one identified person. AggregateRating summarizes many ratings into a single average score and count.

Which content types are eligible for star rating rich results?

Products, recipes, software applications, local businesses, books, courses, and events. General blog posts and opinion content aren’t automatically eligible.

How can I legitimately collect ratings to use in schema?

Add a real, visible rating widget to the page where actual visitors leave their own scores, then mark up the genuine resulting aggregate, rather than inventing a rating that doesn’t reflect real data.

Resources Links

Author:

Christoper Enolpe
Founder of WebGomu • WordPress Freelancer with 10+ Years of Experience

Christoper is the founder of WebGomu and a WordPress freelancer with over 10 years of hands-on experience building, optimizing, and maintaining WordPress websites. He writes practical, beginner-friendly guides based on real-world experience, covering WordPress, SEO, website performance, and AI tools to help readers build better websites with confidence.

Learn more: https://webgomu.com/about-us/

Get one WordPress tip every week

Short, practical, no fluff — straight to your inbox.

Start Here

The Ultimate Beginner’s Guide to WordPress (2026): Build Your First Website Without Coding

Popular Guides

Our Partner

Breakdance builder with AI

More from the blog

Get one WordPress tip every week

Short, practical, no fluff — straight to your inbox.
No spam. Unsubscribe anytime.
Practical WordPress tutorials for beginners — step-by-step guides, SEO strategies, and performance tips.
© 2026 WebGomu. All rights reserved.