This example shows how to implement a Product rating schema with AggregateRating.
const productSchema = {
'@context': 'https://schema.org',
'@type': 'Product',
'name': 'Example Product',
'description': 'This is an example product with ratings',
'image': 'https://example.com/product-image.jpg',
'aggregateRating': {
'@type': 'AggregateRating',
'ratingValue': '4.5',
'reviewCount': '89'
}
};This example shows how to implement a LocalBusiness rating schema.
const businessSchema = {
'@context': 'https://schema.org',
'@type': 'LocalBusiness',
'name': 'Example Business',
'address': {
'@type': 'PostalAddress',
'streetAddress': '123 Main St',
'addressLocality': 'Anytown',
'addressRegion': 'CA',
'postalCode': '12345',
'addressCountry': 'US'
},
'telephone': '+1-123-456-7890',
'aggregateRating': {
'@type': 'AggregateRating',
'ratingValue': '4.8',
'bestRating': '5',
'worstRating': '1',
'reviewCount': '250'
}
};This example shows how to implement a Review schema for a specific item.
const reviewSchema = {
'@context': 'https://schema.org',
'@type': 'Review',
'itemReviewed': {
'@type': 'SoftwareApplication',
'name': 'Nuxt SEO Template',
'applicationCategory': 'WebApplication'
},
'reviewRating': {
'@type': 'Rating',
'ratingValue': '5',
'bestRating': '5',
'worstRating': '1'
},
'author': {
'@type': 'Person',
'name': 'John Doe'
},
'datePublished': '2023-06-15',
'reviewBody': 'This is an excellent SEO template for Nuxt.js projects. Highly recommended!'
};