Knowledge base | Judge.me

Automatic Rich Snippets

Judge.me automatically adds rich snippets to all review widgets with at least one review, also on the free plan.

This article covers all the steps you can take to ensure your snippets get indexed by Google and shown in the Google search results.

Upgrade to schema.org/AggregateRating snippets (1 click)

If you've been using Judge.me since before March 2017, it is possible you are still using the old "data-vocabulary" snippets. If that is the case, you will see this notice in the app settings under the SEO tab:

Unless your snippets are currently showing in Google, we recommend you to upgrade to the newer schema.org/AggregateRating snippets. Simply click on "Upgrade To The Latest Rich Snippets" and Judge.me does the rest.

After upgrading your snippets, this is the only rich snippets settings box you will see in the SEO tab of the app settings:

Link all your Product snippets via @id (1 line of code, optional)

This part is only relevant if your theme already has JSON-LD snippets in the product.liquid template. (See example JSON-LD snippets below. Ask your theme developer when in doubt.) Even if so, this part is still not necessary - it's recommended, but optional.

With the upgraded JSON-LD snippets, Judge.me adds Product snippets as well to make sure Google knows our AggregateRating snippets belong to the product on the product page.

Here are the Product snippets Judge.me adds:

As you can see in the screenshot, however, our Product snippets are not linked to the theme's Product snippets by default.

To maximize the chances Google understands all Product snippets belong together, it is best to link the Product snippets as follows:

As you can see in the screenshot above, the two Product snippets (Judge.me's + from the theme) are integrated into 1 Product / Product snippet, because they share the same @id with as value the product URL.

To achieve this result, add this @id line to your theme's JSON-LD Product snippets:

"@id": {{ canonical_url | append: '#product' | json }},

You are most likely to find these JSON-LD snippets added as a script in your product.liquid template. Here is an example of a complete script tag that would cover your theme's JSON-LD Product snippets, with the @id line added below @type:

{% capture jsonld_brand_url %}https://{{ shop.domain }}{{ product.vendor | url_for_vendor }}{% endcapture %}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",

  "@id": {{ canonical_url | append: '#product' | json }},

  "brand": {
    "@type": "Brand",
    "name": {{ product.vendor | json }},
    "url": {{ jsonld_brand_url | json }}
  },
  "sku": {{ product.selected_or_first_available_variant.sku | json }},
  "description": {{ product.description | strip_html | json }},
  "url": {{ canonical_url | json }},
  "name": {{ product.title | json }},
  {% if product.featured_image %}
  "image": "https:{{ product.featured_image | product_img_url: 'grande' }}",
  {% endif %}
  "offers": [{% for variant in product.variants %}{
    "@type": "Offer",
    "price": "{{ variant.price | divided_by: 100.0 }}",
    "priceCurrency": "{{ shop.currency }}",{% unless shop.metafields.jsonld.itemCondition == blank %}
    "itemCondition": "http://schema.org/{{ shop.metafields.jsonld.itemCondition }}",{% endunless %}
    "availability": "{% if variant.available %}InStock{% else %}OutOfStock{% endif %}"
  }{% unless forloop.last %},{% endunless %}{% endfor %}]
}
</script>

Let Google re-crawl your rich snippets

It's a good idea to let Google re-crawl your product pages after updating your snippets. More information on how to ask Google for a re-crawl can be found here.

Disabling JSON-LD snippets

This is not recommended, but if you only want the microdata (HTML) snippets you can disable the Judge.me JSON-LD (Javascript) snippets by putting the following code at the bottom of your product.liquid file:

<script>
  judgemeOpts=window.judgemeOpts||{};judgemeOpts.jldDisable=true
</script>

Tips or remarks?

If you followed a different approach than we offer to get your review snippets indexed by Google, please email us at support@judge.me so we can discuss.

Judge.me considers rich snippets a super core feature so we will dedicate priority developer time to improve our rich snippets whenever needed.