Schema question
-
Hi,
I am building a review website. On a page, I have 2 kind of reviews :
– Author based
– Customer based (cf. Site reviews)I am trying to have the best Schema possible. I’ve created a JSON-LD using GTM schema with the following structure :
"@context": "https://schema.org", "@type": "Review", "author": { "@type": "Person", "name": "{{SCHEMA - Author}}" }, "url": "{{Page URL}}", "datePublished": "2014-03-13T20:00", "publisher": { "@type": "Organization", "name": "website", "sameAs": "https://website.com" }, "description": "", "inLanguage": "fr", "itemReviewed": { "@type": "Product", "name": "{{SCHEMA - Product Name}}", "image": "{{SCHEMA - Logo}}", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "88", "bestRating": "100", "ratingCount": "20" } }, "reviewRating": { "@type": "Rating", "worstRating": 0, "bestRating": 5, "ratingValue": {{SCHEMA - RatingValue}} } };
Is there a way to easily populate the AggregateRating fields without having a duplicate JSON-LD ?
Thanks a lot
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Schema question’ is closed to new replies.