---
title: "How to Add Ryviu's Product Rich Snippets to Your Shopify Product Page"
description: "You can add Ryviu's Product Rich Snippet to your product page, which helps you show star ratings in Google organic search results."
url: https://docs.ryviu.com/en/articles/34-how-to-add-ryviu-s-product-rich-snippets-to-your-shopify-product-page
collection: "Free Features"
updated: 2026-11-03
language: en
---

# 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.

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:** **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](https://app.gleap.ai/projects/669dc9e6f35b0c8e9e7d0982/helpcenter/collections/669f2cd7375159b1e676c6dd/articles/669e11a53bc4e3babf789bf8) or email us at [info@ryviu.com](mailto:info@ryviu.com) 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.](https://staticfiles.gleap.io/ghelparticle/rX5kBY6T23LFg5GrV6fIyikElg1Mi3RZmmiawtqOKlZDpben6W9qLpVwp0gtlfU6V8YJaIkeuWt.png)

### 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">`
    

5.  Find this line of code inside that tag: `"name" : {{ product.title | json }},`
    
6.  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 %}  
```

7.  Click **Save** to save your file.
    

### 👉 Step 2. Verify Rich Snippets Implementation

1.  Go to the [Rich Results Test](https://search.google.com/test/rich-results).
    
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](https://docs.ryviu.com/en/articles/101-support.md) or email at [info@ryviu.com](mailto:info@ryviu.com)**.** We're here to help!
