WiseReviews
  • Welcome to WiseReviews
  • OVERVIEW
    • โญWhat is WiseReviews?
    • โœจOur Features
  • PRODUCT GUIDES
    • ๐Ÿ› ๏ธSetting up your WiseReviews
    • โฌ‡๏ธImporting Reviews
    • ๐Ÿ”Automatically Sync New Reviews
    • ๐Ÿ“Creating a Single Review
    • โœ๏ธEditing a Review
    • ๐Ÿ“Importing Reviews via CSV
    • ๐ŸŒŸShop review vs Product reviews
    • ๐Ÿ“„Changing or Removing Reviews tab
    • ๐Ÿ”ฝFiltering Reviews
    • ๐Ÿ”กTranslating Reviews
    • ๐Ÿ’ฌCustomizing my Review Widgets
    • ๐Ÿˆท๏ธChanging my Review Widget Language
    • ๐Ÿช„What is Magic review reply?
    • ๐Ÿ’ŒCustomizing the Review Request Email to Customers
    • โœ…Managing New Reviews
    • ๐Ÿ“งSend emails using custom email or domain.
    • ๐ŸŽซGiving Customers a Discount on their Future Purchases as an Incentive for Posting a Review
    • โฌ†๏ธExporting all reviews in bulk?
    • ๐Ÿ—‘๏ธDeleting Imported Reviews in Bulk
    • ๐ŸšซDisabling Review Widgets?
    • ๐Ÿ“„Creating a Reviews Page
    • ๐ŸŒAdding Review Widgets to my Homepage
    • ๐Ÿ“ŒAdding Featured Reviews
    • ๐Ÿ”ŽDisplaying Star Ratings on Organic Google Search Results
    • โฌ‡๏ธInstalling Review Widgets Manually
    • ๐Ÿ“ƒWhy are all my product pages showing the same reviews?
    • ๐ŸงจMy review widget is not rendering properly
    • โ€ผ๏ธDelete duplicate reviews
  • OTHER GUIDES
    • ๐Ÿ“ฉSubmitting a Feature Request
    • ๐Ÿ“ขView New Updates - Changelogs
    • โœณ๏ธRemoving WiseReviews Branding/ Watermark
    • ๐Ÿ’ณWiseReviews Subscription Plan
    • โ“Why can't I Import more than 100 Rreviews from Amazon?
    • โ“Why can't I import more than 100 reviews from Etsy?
    • โ“Why can't I import more than 150 reviews from Shein?
    • โ“Why can't I import more than 20 reviews from Temu?
    • ๐Ÿ‘ฅAdding a Staff Account
    • ๐Ÿ”ŽFinding Product Handle
    • ๐Ÿ“Terms of Service
    • โ›”Uninstalling WiseReviews
    • ๐Ÿ”ขFinding Shopify's Collaborator Request (Access) Code
    • ๐Ÿ“‘Export reviewer/customer data
Powered by GitBook
On this page
  1. PRODUCT GUIDES

Displaying Star Ratings on Organic Google Search Results

PreviousAdding Featured ReviewsNextInstalling Review Widgets Manually

Last updated 1 year ago

You can manually add the code by following the steps below:

  1. You can verify the integration using . For products with at least one review, you should see an "aggregateRating" section under the Product object:

  1. Create a new snippet called wise-rich-snippet.liquid under snippets folder.

  1. Paste the following code.

snippets/wise-rich-snippet.liquid
{% capture productID %}{{ product.id }}{% endcapture %}

{% if shop.metafields.wisereviews.reviews.value.products[productID].average_rating %}
  <script id="wiseReviewsSchemaJson" type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Product",
      "@id": {{ canonical_url | json }},
      "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "{{ shop.metafields.wisereviews.reviews.value.products[productID].average_rating }}",
        "reviewCount": "{{ shop.metafields.wisereviews.reviews.value.products[productID].reviews_count }}"
      },
      "name": {{ product.title | json }}
    }
  </script>
{% endif %}

  1. Open the template or section you use for product pages (usually called product.liquid, main-product.liquid or product-template.liquid, but some themes may work differently).

{% render 'wise-rich-snippet', product: product %}

  1. Paste the following code at the bottom of the page:

๐Ÿ”Ž
Google's structured data testing tool