Parsing error: Missing '}' or object member name on my Product Page

Nathanmas1
Visitor
2 0 0

I have recently created this site and allowed Google to Crawl. It returned a Unparsable Structured Data Error on page: https://slantboard.co.uk/products/tib-bar 

 

The code which is not working is this part: 

</script>
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "TIB BAR™",
  "url": "https:\/\/slantboard.co.uk\/products\/tib-bar",
  <span class="shopify-product-reviews-badge" data-id="7345519526109"></span>"image": [
      "https:\/\/cdn.shopify.com\/s\/files\/1\/0608\/3664\/3037\/products\/CJI14-011_1800x.jpg?v=1636470768"
    ],"description": "\nThe Tib Bar™ is a high-quality piece of equipment designed to weight-load your tibialis anterior muscle on the front of your shin. A strong tibialis muscle is the first line of defence for knee, ankle and shin pain, including shin splints. This device exposes your tibialis and ankle to full plantar flexion (pointed toes) to increase ankle strength and range of motion - making you more athletic. This full ankle flexion requires weight-loading and is not available through simple bodyweight tibialis raises.\nUse the Tib Bar™ to squat lower, jump higher and run faster.  \nProduct features include: \n\n2\" olympic collar included. \nDesigned to fit any sized foot. \nFoam padding to make exercising comfortable.\nLong weight-loading beam to allow for wide weight plates. \nA sturdy frame made from Iron. \nSized for standard 2\" weight plates for commercial and home uses.\n\nThe Tib Bar™ is fully commercial grade and exclusive in the UK to Slant Board Ltd. It is delivered fully assembled and ready to use. Weight plates are not included. \n","sku": "TLB","brand": {
    "@type": "Thing",
    "name": "Slant Board Ltd."
  },
  "offers": [{
        "@type" : "Offer","sku": "TLB","availability" : "http://schema.org/InStock",
        "price" : 74.95,
        "priceCurrency" : "GBP",
        "url" : "https:\/\/slantboard.co.uk\/products\/tib-bar?variant=41944875696349"
      }
]
}
</script>
 
I have been told that if i remove this part: 
 
<span class="shopify-product-reviews-badge" data-id="7345519526109"></span>
 
It should fix itself however I want to keep my reviews and therefore need a way to fix this please. I am new to this and rather unexperienced, any help would be very much appreciated. 
Thanks in advance! 
Replies 3 (3)

ilanadavis
Shopify Expert
181 24 56

Hi @Nathanmas1,


It looks like someone pasted the reviews content in the middle of your structured data. Don't delete that, but move it elsewhere so it's not inside the script tag. That will remove the error at least. You can paste it between these two lines so it should look like this:
</script>

<span class="shopify-product-reviews-badge" data-id="7345519526109"></span>
<script type="application/ld+json">

 

You aren't receiving the search enhancements though for your reviews as the theme data isn't connecting to your reviews. So you can win Rich Results for price and availability OR reviews. But the chances of getting all three are limited unless you use an app that integrates with Shopify Product Reviews like JSON-LD for SEO.

Ilana Davis, Shopify Superhero
JSON-LD for SEO, adds structured data to your theme, getting you more organic traffic with Rich Results.
Linking Llama, link complementary, comparable, or related products to improve SEO & UX.
Nathanmas1
Visitor
2 0 0
Hi,

Great – where should I go on the backend of Shopify to edit this code? Thanks for the help!
ilanadavis
Shopify Expert
181 24 56

Looks like you are using Debut? So it should be in your templates/products.liquid file unless you've made other custom edits to the theme.

Ilana Davis, Shopify Superhero
JSON-LD for SEO, adds structured data to your theme, getting you more organic traffic with Rich Results.
Linking Llama, link complementary, comparable, or related products to improve SEO & UX.