Get star ratings in Google results
The problem
A search result with a star rating and a review count gets clicked more than the same result without one. That is the whole mechanism and it is worth having.
Whether you can have it depends on what your reviews are attached to, and for a lot of businesses the honest answer is no.
What actually works
Our widget outputs Product schema with an AggregateRating. Product is the type Google still shows star ratings for, so that is the type we use, and it goes out automatically with the widget.
Google removed review rich results for LocalBusiness and Organization markup in 2019, on the grounds that a business rating itself is not independent evidence. The full explanation.
Getting it right
If you sell products, this is a real promise. A product page carrying a star rating and a count in the search result is measurably more clicked, and the markup goes out without you configuring anything.
If you are a local or service business, be realistic. Your stars already appear where they count — in Maps and the local pack, from your Google Business Profile. That is the asset worth building, and it is not something a widget on your website produces.
How to tell whether it worked
Search Console shows whether Google picked up the markup and whether it is showing a rich result. Validation and display are different things: correct markup makes a rich result possible, and Google still decides.