• Home
  • What We Do
  • Our Work
  • eCommerce Solutions
    • Ecommerce Platforms
      • Shopify
      • Shopify plus
      • Magento eCommerce
    • Growth Opportunities
      • Klaviyo Email Marketing
      • Shopify Support and Success
      • Shopify Migration Experts
      • eCommerce Strategy
      • eCommerce SEO
      • Wholesale B2B Solutions
      • Shopify & Yotpo Loyalty Solutions
      • ERP & Shopify Integrations
      • Shopify POS Solutions
  • COMPANY
  • Contact
GET A FREE QUOTE
Alinga
logo
Phone Call Icon
logo
  • What We Do
  • Our Work
  • eCommerce Solutions
  • Company
  • Shopify Premier Partner
UNLOCK YOUR GROWTH
  • Shopify Support and Success
  • Klaviyo Email Marketing
  • eCommerce Strategy and Growth
  • Shopify Migration Experts
  • Shopify Search Engine Optimisation
  • Wholesale B2B Solutions
  • Shopify POS Solutions
GET A FREE QUOTE
  • Home
  • eCommerce Strategies
  • How to Add Rich Snippets to Shopify
eCommerce StrategiesJuly 9, 2025

How to Add Rich Snippets to Shopify

By Alinga Admin

Rich snippets make your Shopify store stand out in search results by showing extra details like product prices in AUD, stock availability, star ratings, and reviews. They improve search visibility, increase click-through rates, and build trust with potential customers.

Key Steps to Add Rich Snippets:

  1. Understand Schema Types: Use Product, Review, FAQ, Breadcrumb, and Organisation schemas to highlight essential details.
  2. Prepare Product Data: Ensure your listings include product name, price (AUD), stock status, description, SKU, brand, and images (800x800px minimum).
  3. Edit Theme Files: Add JSON-LD schema code to theme.liquid or product-template.liquid files.
  4. Validate Markup: Test your schema using Google’s Rich Results Test to ensure everything works.
  5. Monitor Performance: Use Google Search Console to track errors, visibility, and CTR improvements.

Quick Benefits:

  • Higher CTR: Make your search listings more clickable.
  • Better SEO: Help Google understand your store.
  • Improved UX: Provide key details upfront.

Follow these steps to boost your Shopify store’s visibility and performance in search results.

Setup Requirements

Check Current Data Structure

Before adding rich snippets, use Google’s Rich Results Test tool (https://search.google.com/test/rich-results) to evaluate your pages. Focus on:

  • Identifying existing markup and fixing errors
  • Checking for missing required properties
  • Ensuring the data format meets Google’s guidelines

Test different page types (e.g., product, collection, homepage) to get a full picture of your current setup. Once your structured data is validated, confirm that all essential product details are ready.

Required Product Details

To implement rich snippets effectively, make sure your product listings include the following:

Required Element Description Example Format
Product Name Exact name of the product “Classic Cotton T-Shirt”
Price Current price in AUD “$29.95”
Availability Stock status “In Stock” / “Out of Stock”
Product Description At least 150 characters Minimum 150 characters
SKU/ID Unique identifier “SKU-123456”
Brand Manufacturer’s name “BrandName”
Image Minimum resolution 800x800px 800x800px minimum

Once all product details are complete, proceed to choose the right schema types for your site.

Schema Type Selection

Use the following schema types to enhance your rich snippets:

1. Product Schema

  • Includes basic product information
  • Displays pricing details in AUD
  • Shows stock availability
  • Supports product variants

2. Offer Schema

  • Highlights special pricing
  • Covers bulk discount options
  • Details limited-time offers
  • Includes shipping information

3. Review Schema

  • Displays customer ratings
  • Includes written reviews
  • Shows aggregate ratings
  • Lists total review counts

Choose schema types that align with your store’s features and ensure all required fields are properly filled.

How to Add Google Rich Snippets to Shopify Product Page?

Shopify

Rich Snippet Installation Steps

After choosing your schema type, it’s time to add the markup to your theme files.

Accessing Theme Files

To get started, go to Shopify Admin > Online Store > Themes > Actions > Edit code. This will allow you to access your theme files. Look for the product-template.liquid file under the Sections directory. This file contains the key product information where schema markup is applied.

Before making changes, create a backup of your theme. Duplicate it by navigating to Themes > Actions > Duplicate, and name the backup something like Pre-Schema Backup 31/03/2025.

Adding Product Schema Code

Insert the following JSON-LD markup just before the </head> tag in your theme.liquid file:

<script type="application/ld+json"> 
{ 
  "@context": "https://schema.org/", 
  "@type": "Product", 
  "name": "{{ product.title }}", 
  "image": "{{ product.featured_image | img_url: 'master' }}", 
  "description": "{{ product.description | strip_html | strip_newlines | escape }}", 
  "sku": "{{ product.selected_or_first_available_variant.sku }}", 
  "brand": { 
    "@type": "Brand", 
    "name": "{{ product.vendor }}" 
  }, 
  "offers": { 
    "@type": "Offer", 
    "url": "{{ shop.url }}{{ product.url }}", 
    "priceCurrency": "AUD", 
    "price": "{{ product.price | money_without_currency }}", 
    "availability": "{% if product.available %}https://schema.org/InStock{% else %}https://schema.org/OutOfStock{% endif %}" 
  } 
} 
</script>

Customising Product Schema

You can modify the schema to suit your product details. Here’s a quick reference for some common properties:

Schema Property Shopify Variable Example Output
Product Name product.title “Merino Wool Jumper”
Price product.price “$159.95”
Currency Static "AUD" “AUD”
Availability product.available In Stock
Description product.description Product description text

For products with variants, include this additional code in your schema:

<script type="application/ld+json"> 
{ 
  "variants": [ 
    {% for variant in product.variants %} 
    { 
      "@type": "ProductVariant", 
      "sku": "{{ variant.sku }}", 
      "price": "{{ variant.price | money_without_currency }}", 
      "availability": "{% if variant.available %}https://schema.org/InStock{% else %}https://schema.org/OutOfStock{% endif %}" 
    }{% unless forloop.last %},{% endunless %} 
    {% endfor %} 
  ] 
} 
</script>

Once you’ve made these adjustments, it’s important to test the markup to ensure everything is working correctly.

Testing and Validation

  1. Validate the Markup: Use Google’s Rich Results Test tool to check your schema.
  2. Test Across Platforms: Ensure the schema displays correctly on different pages, devices, and browsers.
  3. Currency Verification: Confirm that the currency is displayed as AUD.
  4. Price Formatting: Double-check that prices use the correct Australian format, like “$159.95”.

Keep an eye on Google Search Console under the Enhancements section to spot and fix any potential errors in your markup.

sbb-itb-19747f8

Adding Review Snippets

Review snippets can enhance your product schema by building trust and improving engagement. They also make your search listings more appealing to users.

Setting Up Product Reviews

To enable product reviews, navigate to Settings > Apps and sales channels > Product reviews. From there, you can adjust the display settings in the product-template.liquid file.

Adding Rating Schema

Incorporate the following aggregate rating schema into your existing product schema markup:

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "{{ product.metafields.reviews.rating.value }}",
    "reviewCount": "{{ product.metafields.reviews.rating_count.value }}",
    "bestRating": "5",
    "worstRating": "1"
  }
}
</script>

Place this code within your product schema to include aggregate rating data. After that, proceed to display individual reviews to complete the setup.

Displaying Customer Reviews

Use the following code to display individual reviews:

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "review": [
    {% for review in product.reviews limit:5 %}
    {
      "@type": "Review",
      "reviewRating": {
        "@type": "Rating",
        "ratingValue": "{{ review.rating }}",
        "bestRating": "5"
      },
      "author": {
        "@type": "Person",
        "name": "{{ review.author | escape }}"
      },
      "datePublished": "{{ review.created_at | date: '%Y-%m-%d' }}",
      "reviewBody": "{{ review.content | strip_html | strip_newlines | escape }}"
    }{% unless forloop.last %},{% endunless %}
    {% endfor %}
  ]
}
</script>

Key Review Properties

Here are the essential properties to include in your review schema:

Property Description Example Value
ratingValue The numerical rating given “4.5”
reviewCount Total number of reviews “127”
datePublished Review publication date “2025-03-31”
reviewBody The actual review content “Great product, fast delivery”

This setup ensures your reviews are properly displayed and optimised for search engines.

Fixing Common Issues

Setting up rich snippets in Shopify can sometimes be tricky. Follow these tips to identify and fix common problems.

Testing Tools Guide

Google’s Rich Results Test is your go-to tool for checking schema markup. Here’s how to use it:

  • Head to search.google.com/test/rich-results.
  • Enter the URL of your Shopify product page.
  • Look for warnings or errors and address them.
  • Ensure all data is complete and accurate.
  • Test multiple product pages to ensure consistency.

Once you’ve identified issues, use the steps below to fix them.

Problem Resolution Steps

  • Missing Price
    Cause: The product.price object is invalid.
    Solution: Update the liquid variable to {{ product.price }}.
  • Invalid Reviews
    Cause: Rating values are incorrectly formatted.
    Solution: Make sure ratings are between 1 and 5, with one decimal place.
  • Duplicate Schema
    Cause: Multiple schema blocks are present.
    Solution: Combine all product data into a single schema block.
  • Missing Images
    Cause: Image URLs are incorrect.
    Solution: Use absolute URLs like {{ product.featured_image | img_url: 'master' }}.

For syntax issues, double-check your JSON-LD structure. Ensure braces and quotation marks are properly formatted.

After resolving these issues, follow the maintenance tips below to keep your schema running smoothly.

Maintenance Guidelines

Regular upkeep is essential for effective schema performance. Here’s what to do:

  • Monthly Schema Validation: Run Google’s Rich Results Test after any theme updates or customisations.
  • Data Quality Monitoring:
    • Confirm prices and their formatting.
    • Check that descriptions are accurate.
    • Ensure reviews are current.
    • Validate image URLs.
  • Schema Updates: Keep an eye on Google’s schema guidelines to stay compliant and maintain visibility.

Next Steps

Implementation Summary

After adding rich snippets, it’s important to validate and update them regularly using Google’s Rich Results Test. Keep product data – like prices, descriptions, and availability – accurate. Regular monitoring, as mentioned earlier, is key to maintaining strong search visibility.

For more specific support on keeping these standards in check, keep reading.

Alinga Services

Alinga

If you’re looking for professional assistance, Alinga offers Shopify development services. As a certified Shopify Plus Partner with two decades of experience, they specialise in creating eCommerce solutions designed to drive conversions.

“We use proven strategies, tailored design, & innovative technologies to make beautiful and conversion optimised eCommerce experiences.” – Alinga

Their Support & Success team gives you priority access to Shopify developers and SEO experts. They ensure your rich snippets are implemented and maintained correctly, helping you maximise your online visibility.

Tracking Results

Once your rich snippets are live, use Google Search Console to track their performance with these key metrics:

Metric What to Track Frequency
Click-through Rate Compare CTR before and after snippet implementation Weekly
Search Visibility Check how often products appear in search results Fortnightly
Error Reports Look for schema markup errors or warnings Monthly
Position Tracking Monitor keyword rankings for products with snippets Monthly

Additionally, review conversion rates for products with rich snippets. Use custom reports in Google Analytics to track the customer journey from search to purchase. This data can highlight which product categories gain the most from rich snippets and where improvements might be needed.

Do you need support with your eCommerce plans? Alinga, a leading eCommerce expert, is here to help businesses excel online. We offer IT expertise and innovative concepts for all projects, assisting from the beginning to completion and beyond. Let Alinga boost your online presence if you’re new or are looking to enhance your online business. Be in touch with us now to get started!

Related posts

  • 5 Common Shopify SEO Mistakes and How to Fix Them
  • Ultimate Guide to Multi-Currency SEO for Shopify Plus
  • How UGC is the ‘new thing’ for social proofing
  • How to Use Dynamic Sources in Shopify Themes

improve Shopify SEO, product snippets, schema markup Shopify, Shopify rich snippets, Shopify search enhancements, structured data Shopify
Previous Mobile Accessibility Guidelines for Shopify
   

Related Posts

Yotpo loyalty and referral program benefits

March 29, 2025

5 Ways Behavioural Data Improves Shopify Plus Stores

June 2, 2025

Byron Bay Fashion eCommerce stores – Alinga agency

April 18, 2025

How Alinga have grown 8 figure e-commerce brands

April 3, 2025
Group-1-copy
Overall 4.9 out of 5.0 client rating. 310+ clients on over 2500+ projects. view our work.
  • About Alinga

    We are a extremely talented, professional and incredibly knowledgeable team that produces high converting web solutions for growth businesses.

    Alinga - Shopify Expert Gold-Klaviyo-Master-White Yotpo-Winners-Badge
  • Business Solutions

    • COMPANY
    • WHAT WE DO
    • OUR WORK
    • CONTACT
    • BLOG
    • WEB DESIGN
    • SHOPIFY ECOMMERCE
    • SHOPIFY PLUS
    • MAGENTO ECOMMERCE
    • SHOPIFY SEO
    • ERP > SHOPIFY INTEGRATION
    • WHOLESALE B2B SOLUTIONS
    • SHOPIFY POS
    • SHOPIFY MIGRATION EXPERTS
    • KLAVIYO EMAIL MARKETING
© 2025 Alinga Web Media Design Pty Ltd. All rights reserved.
  • What We Do
  • Our Work
  • eCommerce Solutions
  • Company
  • Shopify Premier Partner