company logo

Help Center

Go to Ryviu
HomePricingDashboardShopify AppWoocommerce Plugin
All collectionsRyviu FeaturesFree FeaturesHow to Add Ryviu's Product Rich Snippets to Your Shopify Product Page

How to Add Ryviu's Product Rich Snippets to Your Shopify Product Page

You can add Ryviu's Product Rich Snippet to your product page, which helps you show star ratings in Google organic search results.

Yen MaยทNovember 3, 2026

Adding Google Rich Snippets helps your product pages display star ratings directly in Google search results, boosting your credibility and driving more organic traffic to your store.

info icon
Important Note: Each theme uses a different schema code. If you encounter any issues during installation, feel free to reach out to our support team via live chat or email us at [email protected] for assistance.

Option 1: For Shopify 2.0 OS Themes (Quick & Easy)

If your store uses a standard Shopify 2.0 theme, you can enable this feature directly in your theme customizer without editing any code:

  1. From your Shopify admin, go to Sales channels > Online Store > Themes.

  2. Click Customize on your current theme.

  3. Navigate to the Product template page.

  4. Select Ryviuโ€™s Product Review Widget.

  5. Check the box for Enable Google Rich Snippet (SEO) in the settings panel.

  6. Click Save to apply changes.

Shopify theme editor shows Product Reviews Widget settings beside a storefront preview; a red arrow points to the Enable Google Rich Snippet (SEO) toggle. Visible: Default product, Restore last session?, Product Reviews Widget, Customer Reviews, There are no reviews., Write a review.

Option 2: For Vintage Themes (Manual Code Integration)

If your store uses an older vintage theme, please follow these manual steps:

๐Ÿ‘‰ Step 1: Install the Ryviu Rich Snippet Code

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

  2. On your current theme, click the three dots ... > Select Edit Code.

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

  4. Find this line of code in the above tag. <script type="application/ld+json">

  1. Find this line of code inside that tag: "name" : {{ product.title | json }},

  2. Paste the following snippet right below that line:

{% 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. Click Save to 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.


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?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿ˜