Skip to content

How to Add Star Ratings to Google Search With Review Schema

Star ratings beside a search result can make a listing easier to scan and more credible at a glance. They appear when Google can read valid review schema markup on the page. This guide explains what that markup does, where to place it on common platforms, how to test it, and how long display may take.

What star ratings in search results are

Google may add extra details beneath a listing, such as stars and a review count. Those details come from structured data: machine-readable information that explains what page content means. Review schema supplies the rating information Google needs to consider for that display. The captured guide reports that review rich snippets can raise click-through rate by up to 35%, and elsewhere reports 20-35% more clicks for starred pages. Treat those figures as directional captured evidence, not a promise for a particular site.

A six-step implementation checklist

  1. Gather genuine customer reviews or testimonials, either by requesting them directly or importing them from platforms such as Google Business, Trustpilot, Twitter or LinkedIn. 2. Generate review schema from those reviews, or write the markup manually. 3. Paste the code into the head section of the relevant page. 4. Run the page URL through Google's Rich Results Test. 5. Look for a Review snippet or Aggregate Rating result and fix any errors the tool reports. 6. Allow time for crawling and validation; the guide gives a typical window of 2-4 weeks. A useful decision check: if the test does not detect the snippet, fix the markup first rather than waiting; if it detects the snippet but stars do not appear, the remaining step is Google's own display decision.

Where to place the code on common platforms

WordPress: install a headers-and-footers plugin, paste the code in the header area, and save. Webflow: open Project Settings, then Custom Code, paste into Head Code, and publish. Shopify: open Online Store, Themes, Edit Code, find theme.liquid, and paste before the closing head tag. Squarespace: open Settings, Advanced, Code Injection, paste into the Header section, and save. Plain HTML: paste between the opening and closing head tags. The placement rule is the same everywhere: the markup belongs in the head, not in visible page copy.

How long display can take, and what helps

After implementation, Google must crawl the page, validate the markup, and decide whether to show stars. That sequence can take from a few days to a few weeks, with 2-4 weeks described as typical. Submitting the URL in Google Search Console, keeping the site regularly crawlable, and keeping review data accurate may help the process. Valid markup improves the odds but never guarantees display, because Google applies its own criteria.

Why the display matters, and its limits

Beyond visibility, starred listings can stand out where most results have no stars, signal credibility before a visit, and support trust among visitors who click through. Those benefits depend on having real, accurate reviews behind the rating. A single perfect rating may look suspicious, so a broader set of reviews - the guide suggests 5-10 as a credibility baseline - is more convincing. For product pages, use Product schema with aggregate ratings instead of the review approach.

Code placement by platform
PlatformWhere the code goesFinish step
WordPressHeader section via a headers-and-footers pluginSave changes
WebflowProject Settings, Custom Code, Head CodePublish the site
Shopifytheme.liquid, before the closing head tagSave the theme change
SquarespaceSettings, Advanced, Code Injection, HeaderSave
Plain HTMLBetween the head tagsSave the file

Placement steps as captured in the guide; platform interfaces may change, so verify current menus before publishing.

Frequently asked questions

Do star ratings guarantee more clicks?

Results vary by industry and competition. The captured guide reports pages with stars often receive 20-35% more clicks than comparable pages without them, but that is not a guarantee for any individual page.

Can I add star ratings to any website?

Yes, provided you can add custom code to the site's HTML. The guide lists WordPress, Webflow, Shopify, Squarespace and plain HTML as examples.

How many reviews do I need?

There is no stated minimum, but 5-10 reviews are described as looking more credible than a single 5-star rating, which may look suspicious to visitors.

Will Google always show my star ratings?

No. Google decides whether to display rich snippets under its own guidelines. Valid markup improves the chance but does not guarantee display.

Can I use star ratings for product pages?

Yes. Product schema with aggregate ratings can be used for e-commerce product pages, using a different schema type from the review approach described here.

Is review schema the same as testimonial schema?

They are closely related. Review schema is the structured-data format; testimonials with ratings can be represented through it so Google may display them as stars.

How do I update ratings when I get new reviews?

With an automatically updating generator, the schema updates as new testimonials are added. With manual markup, update ratingValue and ratingCount whenever reviews change.