company logo

Help Center

Go to Ryviu
HomePricingDashboardShopify AppWoocommerce Plugin
All collectionsRyviu FeaturesFree FeaturesAdd review rich snippets for your Shopify product page

Add review rich snippets for your Shopify product page

You can add Ryviu's review rich snippets to your product page, which helps you show star ratings on Google organic search results.

Yen MaยทSeptember 10, 2026

Adding Google Rich Snippets to Shopify product pages boosts search visibility and attracts customers. Follow this guide to implement Rich Snippets. You need some technical experience to add this code.

info icon
Each theme has diffrent schema code, so if you cannot install it, don't hesitate to get in touch with us so we can help.

๐Ÿ‘‰ Step 1. Install Ryviu rich snippet code

  1. From your Shopify admin > navigate to Sales channels > Online Store.

  2. In your current theme, click "..." > Edit Code.

  3. In the Sections folder, open the main-product.liquid file.

  4. Locate the <script type="application/ld+json"> tag.

  5. Find this line of code in the above tag.

"name": {{ product.title | json }}, 
  1. Add this code below it.

{% assign ryviu = product.metafields.ryviu %}
{% if ryviu %}
  {%- assign aggregate_rating = ryviu.product_reviews_info | split: ";" -%}
  {%- assign r_avg = aggregate_rating[1] | plus: 0 -%}
  {%- assign r_count = aggregate_rating[0] | plus: 0 -%}
  {%- if r_count > 0 -%}   
    "aggregateRating": {
      "@type": "AggregateRating",
      "ratingValue": {{ r_avg }},
      "reviewCount": {{ r_count }}
     },
  {%- endif -%}
{% endif %}  
  1. Save your file.

๐Ÿ‘‰ Step 2. Verify Rich Snippets Implementation

  1. Go to the Rich Results Test.

  2. Enter the URL of your product page to verify that the Rich Snippets are implemented correctly.

Watch the full tutorial video for more details


Need help?

Get in touch with our support team through live chat or email at [email protected]. We're here to help!

Did this answer your question?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿ˜