How to show stars in google search results

How to show stars in google search results

October 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to show stars in google search results

Enhancing Magento SEO: Displaying Product Ratings in Google Search Results

Do you want to boost your Magento store’s visibility and trust with potential customers? One powerful way is to display product ratings directly in Google search results. This can significantly improve click-through rates and drive more organic traffic.

Understanding the Process

To achieve this, we’ll be leveraging Google’s Structured Data markup for Products. This tells Google’s algorithms about your products—including their star rating—and allows that information to appear in search results. The key is to implement the markup correctly within your Magento store.

Preparing Your Store

Before we dive into the code, let’s ensure your Magento environment is ready:

  1. Enable Ratings: Make sure the ratings and reviews functionality is enabled in your store configuration. You can find this under Stores > Settings > Configuration > Sales > Reviews and Rating.

  2. Test Your Setup: Use Google’s Structured Data Testing Tool (https://search.google.com/structured-data/testing-tool) to ensure your existing rating data appears correctly. This will help you identify any formatting issues before applying the markup.

Implementing Product Markup

Now let’s add the necessary code. In your Magento theme (preferably a child theme), navigate to catalog_product_view.xml and add the following:

<product_list>
    <referenceBlock name="product.list">
        <arguments>
            <argument name="structured_data" xsi:type="array">
                <item name="offer" xsi:type="string">true</item>
            </argument>
        </arguments>
    </referenceBlock>
</product_list>

This tells Magento to include the structured data for each product in your search results. The offer argument contains the markup for reviews and ratings.

Verifying Your Changes

After making these changes, clear all cache types from your Magento admin panel (System > Cache Management). Then, use Google’s Search Console (https://search.google.com/search-console) to fetch and render your site’s structured data. Look for any warnings or errors related to the Product markup.

Monitoring and Optimization

Once implemented, monitor your search results regularly using tools like Google’s Structured Data Testing Tool. Periodically review and optimize your ratings data to ensure it remains accurate and compelling to users.

Remember, while this can significantly boost SEO performance, it also relies on having high-quality products with positive reviews. Encourage genuine customer feedback through email campaigns or by providing excellent pre- and post-purchase experiences.

Conclusion

Displaying product ratings in Google search results is a powerful way to differentiate your Magento store from the competition. By following these steps and leveraging Magento’s built-in SEO tools, you can enhance your site’s visibility, trust, and organic traffic—all while keeping your technical implementation clean and efficient.

For more advanced Magento SEO techniques and professional services, consider reaching out to Laravel Company. Our team of experienced developers specializes in optimizing e-commerce platforms for maximum performance.

Catalog Themes Configuration Customers

Our network