---
title: "Add Ratings & Reviews to Shopify 2.0"
id: "add-ratings-reviews-to-shopify-2-0"
project: "Portal Basics"
url: "https://docs.bazaarvoice.com/articles/portal-basics/add-ratings-reviews-to-shopify-2-0"
updated: 2026-11-06T17:20:16Z
---

# Add Ratings & Reviews to Shopify 2\.0

Use this article to integrate Bazaarvoice Ratings & Reviews into your Shopify 2.0 store to display UGC. You will learn how to:

* [Meet the prerequisites to add Ratings & Reviews to your Shopify store](/articles/portal-basics/add-ratings-reviews-to-shopify-2-0/a/h2__1227129135)
* [Publish and display content on your Shopify store](/articles/portal-basics/add-ratings-reviews-to-shopify-2-0/a/h2__1061950731)
* [Update your SEO settings ​](/articles/portal-basics/add-ratings-reviews-to-shopify-2-0/a/h2__725082066)

## Before you begin

* Enable the **App Embed Block**. On March 1, 2027 Shopify are removing the ScriptTag API. To avoid service degradation, go to your Bazaarvoice Reviews & Photos app and select **Enable App Embed Block**. This enables **Ratings & Reviews** to continue loading on your store without interruption.

![A Shopify notification banner titled &quot;Update required: Enable App Embed Block,&quot; with instructions to enable the Bazaarvoice Snippet, with a red box highlighting the &quot;Enable App Embed Block&quot; button.](/resources/Storage/portal-basics/add-ratings-reviews-to-shopify-2-0/bv-shopify-app-embed-error-block.png)

Alternatively, you can complete the following steps:

1. In your Shopify admin, select **Online Store** &gt; **Themes**.
2. Find the theme you want to edit and select **Customize**.
3. Go to the menu on the left side of the page and select **App embeds**.
4. Select the **Bazaarvoice Snippet** toggle.
5. Select **Save**.
6. Publish the changes to your theme.

* If you haven’t configured your app settings for Ratings & Reviews yet, refer to[Configure app settings](/articles/portal-basics/configure-your-account) before you complete this integration.

To add Ratings & Reviews, complete the following steps.

## Step 1: Publish and display content on your Shopify store

Follow these steps to:

* Display ratings, reviews, and questions and answers on your product pages
* Display inline ratings on your collection pages

### Product page

The following table shows the product page app blocks used to display **Rating Summaries**, **Reviews**, and **Questions & Answers** on your product pages. To learn more about displaying content, refer to the [Overview of display article](/articles/ratings-reviews/overview).

| App block | Description | Code snippet (use if Add Block is not supported in your theme) |
| --- | --- | --- |
| Ratings Summary | Display a product’s average star rating and a link to leave a review. The ratings summary is usually placed at the top of the page near the product title.<br> <br>![Review summary showing a 4.8-star rating based on 31 reviews. The breakdown includes: 26 five-star reviews, 4 four-star reviews, 1 three-star review, and 0 reviews for both two and one stars.](/resources/Storage/portal-basics/ratings-reviews/conversations/en_US/Display/images/rating_summary_update.png) | 
```
<div data-bv-show="rating_summary"
data-bv-product-id="{{product.id}}"></div>

```
 |
| Reviews | Display a list of ratings and reviews for a product. This list is usually placed below the product image and description.<br> <br>![Product review page showing Average Customer Ratings: Quality 4.8, Value 4.8, and Sensitive Skin Friendly 5.0. Below are customer images of 'SUDS' brand skincare bottles and a 4-star review from Court titled 'In love with this product,' stating it helped hydrate skin and absorbs fast.](/resources/Storage/portal-basics/ratings-reviews/display_integration/mobile-optimized-view.png) | 
```
<div data-bv-show="reviews"
data-bv-product-id="{{product.id}}"></div>

```
 |
| Questions & Answers | Display consumer questions and answers for a specific product. Questions & Answers are usually placed below the product image and description.<br> <br>![A web interface titled 'Questions' featuring a search input containing the word 'heating' and a 'Submit new question' button. Below, a single search result shows a question from user 'akileshrao' asking, 'Are there any heating issues with this product?' with an 'Answer this Question' button.](/resources/Storage/portal-basics/ratings-reviews/conversations/en_US/Display/images/questions.png) | 
```
<div data-bv-show="questions"
data-bv-product-id="{{product.id}}"></div>

```
 |

To add product page blocks follow these steps:

1. Open your [Shopify theme](https://accounts.shopify.com/store-login?redirect=themes/).
2. In your current theme, select **Customize.**
3. From the drop-down menu at the top of the page, select **Products** &gt; **Default product**.
4. From the menu on the left side of the page, add a block or section to your product template.
5. If necessary, move the blocks and sections you’ve added to where you want them to appear in the product template.
6. Save your changes.

To override Shopify’s div:empty CSS rule, add the following code to your PDP page:

 
```css
div[data-bv-show] { 
	display: block !important;
}
```


###  Collection page

The following table shows the collection page app blocks used to display Product Card and Grid Ratings on your collection pages. These app blocks display inline ratings. The following image shows an example of inline ratings.

![Screenshot of a beauty product web page featuring a grid of six items: Leave-In Nourishing Conditioner, Dreamy Eyeshadow Palette, Hair Shampoo and Conditioner Duo, Luminescent Skin Glow Foundation, Gentle Moisturizer, and Radiant Colored Hair Shampoo. Each products displays an inline star ratings. ](/resources/Storage/portal-basics/add-ratings-reviews-to-shopify-2-0/inline-ratings-numbers-02.png)

| App block | Description |
| --- | --- |
| Product Card Ratings | Displays inline ratings on collection pages that use a product card style. Refer to the [Inline ratings article](/articles/ratings-reviews/inline_ratings) to learn more. |
| Product Grid Ratings | Displays inline ratings on collection pages that use a product grid style. Refer to the [Inline ratings article](/articles/ratings-reviews/inline_ratings) to learn more. |

Follow these steps to display **Product Card or Product Grid Ratings** that show average star rating for each featured product. Select the code integration steps if your theme does not support app blocks:

| App block steps | To display **Product Card Ratings** that show an average star rating for each featured product complete the following steps:<br><ol> <li>Go to your <a href="https://admin.shopify.com/?redirect=%2Fthemes%2F" target="_blank">Shopify Theme</a>. </li> <li>Select <b>Collections.</b></li> <li> Select <b>Add Block</b> in your product card section and select <b>Product Card Ratings</b>. </li> <li>Drag the block to your preferred position under the product title. </li> </ol> <br>To display **Product Grid Ratings** that show an average star rating for each featured product complete the following steps:<br><ol> <li>Go to your store preview and navigate to a page where the product grid is visible. </li> <li>Right-click the element where you want the star rating to appear and select <b>Inspect</b>. </li> <li>Locate and copy the CSS class name in the code. For example,&#160;.price_information. </li> <li>Paste the class name into the <b>CSS selector</b> field in the <b>product grid block </b>settings. </li> <li>Toggle the <b>position</b> setting to choose whether the rating appears above or below the target. </li> <li>Save your settings to display the ratings in your product grid. </li> </ol> |
| --- | --- |
| Code integration steps | Your collection pages can display [inline ratings](/smart/bv-ratings-reviews/inline_ratings) that show an average star rating for each featured product. To add inline ratings to your collection pages:<br><ol> <li>Open your <a href="https://accounts.shopify.com/store-login?redirect=themes/" target="_blank">Shopify Theme</a><img src="/resources/Storage/portal-basics/ecommerce/external-link.svg" alt="Opens in new tab" class="bvimageinline" style="max-width: 100%; height: auto;" loading="lazy">. </li> <li>In your current theme, select <b>Edit code</b> from the menu <img src="/resources/Storage/portal-basics/shopify_reviews_and_photos/shopify-ellipsis.png" alt="ellipsis icon" class="bvimageinline" style="max-width: 100%; height: auto;" loading="lazy">. </li> <li>From the list of folders on the left side of the page, find the file containing your collection page code by searching in each folder or by entering the file name in the search field. <p>The file is usually named <b>product-card-list.liquid</b>, <b>product-card-grid.liquid</b>, <b>product-grid-item.liquid</b>, or <b>collection.liquid</b>. It is most likely to be in the <b>Templates</b> folder, but may be in the <b>Sections</b> or <b>Snippets</b> folders. </p> </li> <li>Ensure you’re using the correct file by adding placeholder text and confirming you can see this text below the product thumbnail. </li> <li>Once you’re satisfied with the placement of your placeholder text, replace it with the below Bazaarvoice inline ratings code to display star ratings. </li> </ol>
```html
<div data-bv-show="inline_rating" data-bv-product-id="{{product.id}}" data-bv-redirect-url="{{ product.url }}" data-bv-seo="false"></div>
```
<ol> <li value="6"> Save your changes. </li> </ol> |

![Note](/resources/Storage/portal-basics/bv-global/note.png)

## Step 2: Update your SEO settings

**Note:**These instructions do not apply if your theme uses Shopify's native `{{ product | structured_data }}` tag, since there is no editable JSON-LD block to modify. Bazaarvoice is aware of this and investigating.
 
Configure your SEO settings in product pages only to ensure search engines index your reviews:

1. Open your [Shopify Theme](https://accounts.shopify.com/store-login?redirect=themes/).
2. In your current theme, select **Edit code** from the menu ![ellipsis icon](/resources/Storage/portal-basics/shopify_reviews_and_photos/shopify-ellipsis.png).
3. From the list of folders on the left side of the page, find the file containing the JSON LD block:


```json
<script type="application/ld+json">
```

**Note:** You can usually find the JSON LD block in the **theme.liquid** file in the **Layout**folder. If your store contains recipes or non-purchasable items, the block may be in your product page theme files. To find the block in these files:
    1. In your current theme, select **Download theme file** from the menu ![ellipsis icon](/resources/Storage/portal-basics/shopify_reviews_and_photos/shopify-ellipsis.png).
    2. In the files you’ve downloaded, search for the JSON LD block and note which files contain it.
    3. Return to Shopify and select the file or files containing the JSON LD block.

1. Add `"@id" : "{{shop.url}}{{ product.url }}",` to the JSON LD block, as the following example shows: 


```html
<script type="application/ld+json">
  {
   "@context" : "https://schema.org",
   "@type" : "Product",
   "@id" : "{{shop.url}}{{ product.url }}",
   …
  }
    
</script>
```

2. Save your changes.

[![Provide feedback button](/resources/Storage/portal-basics/bv-global/topic-footer-2026/provide-feedback-button.png)](https://docs.google.com/forms/d/1qGZ5rApqDrXO_j6vNzcDihDAOPMEjmUr1alHvcEIbQU/edit)