Hi everyone,
I dug this thread in seek of a solution, since we were plagued by the same issue most of you described... all stars/review ratting disapeared from google.
It was months ago, we tried multiple solutions, such as not hiding the reviewes in a display none with a toggle button... no luck.
But I think we finaly got to a solution, specifying all the details in a json script.
So, here is our code you can use only with Shopify Product Review, to place within the product snippet.
You need to set up some variables first:
This will extract the rating average value and review count from the app.
This needs to come before the script.
{% comment variable set up %}{% endcomment %}
{% assign review = product.metafields.spr.reviews | split:'votes" content="' %}
{% assign popularity = review[1] | split: '" />' %}
{% assign popularity = popularity[0] | split: '" />' %}
{% assign review = review[1] | split:'average" content="' %}
{% assign rating = review[1] | split: '" />' %}
{% assign rating = rating[0] %}
Then, you need to add the ld+json script in the product template.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "{{ product.title | escape }}",
"image": "{{ product.featured_image | product_img_url }}",
"description": "{{ page_description | escape }}",
"url": "{{shop.secure_url | escape}}{{ product.url | escape }}",
"brand": "{{ shop.name }}",
"offers": {
"@type": "Offer",
"sku": "{{ product.variants.first.sku }}",
"priceCurrency": "{{ shop.currency }}",
"availability": {% if product.tags contains 'stock' %}"https://schema.org/InStock"{% else %}"https://schema.org/PreOrder"{% endif %},
"itemCondition": "http://schema.org/NewCondition",
"price": "{{product.variants.first.price | times: 0.01 }}"
}{% if rating and rating != '0.0' %},
"aggregateRating": {
"@type": "AggregateRating",
"itemReviewed": "{{ product.title | escape }}",
"bestRating": "5",
"worstRating": "1",
"ratingValue": "{{ rating }}",
"reviewCount": "{{ popularity }}"
}{% endif %}
}
</script>
Obviously, the "availability" part and some other values depend on your settings.
The aggregateRating part is what will fix your problem.
Disclaimers:
It worked for us.
Let me know if it worked for you !
If not, we'll dig into it a big deeper.
Cheers
Hi,
So, Shopify just updated the app, right after my post, and it's now under Schema.org, which should fix the issue.
Thanks for breaking our stuff and not answering my message that has, obviously triggered your response/update, Shopify !
It also reset the translation to English on all our websites by the way...
Hi,
Good to see Shopify Reviews made the move to schema.org, like Judge.me did 2 weeks ago.
For those using Shopify Reviews who also want to add JSON-LD snippets, or who want to connect their JSON-LD review snippets to their product snippets, this guide can be helpful: help.judge.me/knowledge_base/topics/automatic-rich-snippets
The guide is written for shops using the Judge.me Product Reviews app, but it's valid for all shops who want to apply schema.org/AggregateRating snippets in both microdata and JSON-LD form of course.
It happened since last week.
For product reviews, im using PRODUCT REVIEW APP free version by Shopify.
The stars shown in a site search, and im sure i have correct markup for rich snippets. Example: search
site:https://www.bijouteriegonin.com/products/custom-diamond-bape-pendant-necklace-micro-gold
When i perform keyword search, the stars don't show in real searched.
https://www.google.com.hk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=bape+necklace
I have emailed many times about this and even on google forum anyone have the same issue?
Is that google bug or quality issue regarding the reviews. has my site been marked as spam which is impossible cause the site is fairly new and only have 35 reviews?
Can someone please help i would be really appricated for some answers.
So regarding to Shopify guru they pushed the ball to Google but we all know you would never got a direct answer through Google or search forum. They basically tell you no problem and asked you to wait. While it seems like if you a Shopify user you have to purchase a $160 USD theme for better structure or you get no help with tons of bug. Thank you really.
Hi JORDYYYY,
So sorry to bother you, but im having the same problems.
I was wondering what came to the solution at last.
Cause as mentioned, Shopify product reviews works with metafields. So i did the changes similiar to yours (i hired someone yes) but what happened was the stars disappeared and they don't come back in organic search.
Does this happen to you?
Subject | Author | Latest Post |
---|---|---|
Subject | Author | Posted |
---|---|---|
48m ago | ||
2 hours ago | ||
2 hours ago | ||
4 hours ago | ||
5 hours ago |
User | Count |
---|---|
34 | |
32 | |
22 | |
16 | |
16 |