# Implement Review/AggregateRating only if justified

- Check 15.09 · Schema.org structured data · Important
- Source: https://checklist-seo-geo.com/en/schemaorg-structured-data/implement-review-aggregaterating-only-if-justified
- Decide when to mark up Review and AggregateRating, avoid self-serving reviews, then implement them on WordPress, Shopify, PrestaShop, Laravel or Next.js.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/schemaorg-structured-data/implement-review-aggregaterating-only-if-justified.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

`Review` describes an individual review (author, rating, text) and `AggregateRating` an item's average rating (value, number of reviews). This markup can show stars in Google, but only for certain item types and under strict conditions. The check first means deciding whether your reviews qualify, then marking up only real reviews, visible on the page, inside the entity being reviewed.

## Why it matters

Google shows review snippets (stars, rating, number of reviews) for a closed list of types: `Product`, `Book`, `Recipe`, `SoftwareApplication`, `Event`, `Movie`, `Course` (in a course list), and a few media types. The others, including `Article`, `BlogPosting`, `Service` or `WebPage`, are not eligible.

Two restrictions rule out most abusive uses:

- **Self-serving reviews**: a business that publishes reviews about itself on its own site, marked up as `LocalBusiness` or `Organization`, is not eligible for stars, even when the reviews come from a third-party widget. This markup is only recommended for sites that review other businesses.
- **Visible, genuine reviews**: the marked-up content must be readable on the page, be about a specific item (not a category), and not be aggregated from other sites. Google prohibits fake reviews and undisclosed incentivized reviews.

Markup that breaks these rules is exposed to a manual action: the page loses its eligibility for rich results, with no effect on rankings according to Google. The risk is therefore not disappearing from search results, but losing legitimate stars along with the others.

On the GEO (Generative Engine Optimization) side, assistants such as ChatGPT or Perplexity answer reliability questions (“is this software well rated?”) by cross-checking third-party sources. No vendor documents using your `AggregateRating` in these answers: your presence on [relevant review platforms](https://checklist-seo-geo.com/en/external-authority-corroboration/identify-review-platforms) carries more weight than your markup.

## What it improves

- **Click-through rate**: stars make the result more visible. Google publishes no general figure; measure the effect on your own pages.
- **Merchant listings**: a rating complements the product markup in search results and on Shopping surfaces.
- **Consistency**: a marked-up rating identical to the displayed rating avoids contradictory signals.
- **Rankings**: no direct effect.
- **Generative engines**: undocumented effect, indirect at best.

## How to check

Find the pages that declare a rating:

```bash
curl -s https://example.com/produits/theiere-fonte/ | grep -o -E '"(ratingValue|reviewCount|ratingCount)": ?"?[0-9.,]+' 
```

Then compare with what visitors see: the rating and the number of reviews must be displayed on the page, with the same values.

Then:

- **Rich Results Test**: enter the URL. The “Review snippets” section must appear without errors. A rating placed on an `Article` or an `Organization` does not appear there, or appears with a warning.
- **Search Console**: the “Review snippets” report in the Enhancements section lists valid pages and errors; the “Security & Manual Actions” section flags any manual action for structured data.
- **Crawler**: Screaming Frog, with structured data extraction enabled, lists the pages carrying `AggregateRating` and their parent type.

Expected result: only pages for eligible items carry a rating, each rating corresponds to visible reviews, and no home page or service page awards itself stars.

## How to implement

### Before you start

Decide page by page with this table:

| Situation | Markup | Stars possible |
|---|---|---|
| Product page with customer reviews collected on your site | `Product` + `aggregateRating` + `review` | Yes |
| Software, recipe, book, course, event with user reviews | Relevant type + `aggregateRating` | Yes |
| Editorial review of a product by an identified author | `Review` with `itemReviewed` of type `Product` | Yes |
| Directory or guide that reviews other businesses | `LocalBusiness` + `review` / `aggregateRating` | Yes |
| Home or “about” page with reviews of your company | `Organization` or `LocalBusiness` | No: do not mark up |
| Service page with testimonials | `Service` | No: type not eligible |
| Blog post rated by a plugin | `Article` / `BlogPosting` | No: remove |
| Rating imported from Google, Trustpilot or a marketplace | Any type | No: aggregation prohibited |
| Category page with the average of its products | `ItemList`, `CollectionPage` | No: not a specific item |

Next, make sure collection is sound: all reviews published, not just the good ones; incentivized reviews flagged as such; moderation based on public criteria. See [Avoid fake reviews and misleading data](https://checklist-seo-geo.com/en/schemaorg-structured-data/avoid-fake-reviews-misleading-data).

Properties required by Google:

| Object | Required | Recommended |
|---|---|---|
| `Review` | `author` (name shorter than 100 characters), `reviewRating.ratingValue`, `itemReviewed` and its `name` if the review is not nested | `datePublished`, `reviewRating.bestRating`, `reviewRating.worstRating`, `reviewBody` |
| `AggregateRating` | `ratingValue`, `ratingCount` or `reviewCount`, `itemReviewed` and its `name` if not nested | `bestRating` (5 by default), `worstRating` (1 by default) |

Nest the rating inside the reviewed entity with `aggregateRating` and `review`: Google then considers the parent to be the reviewed item. Do not also add an `itemReviewed`: Google asks you to avoid several ways of stating what is being reviewed. Use a period as the decimal separator (`4.6`).

Reference template for a product page:

```html
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://example.com/produits/theiere-fonte/#product",
  "name": "Cast iron teapot 1.2 L",
  "image": "https://example.com/images/theiere-fonte.jpg",
  "offers": {
    "@type": "Offer",
    "price": "59.90",
    "priceCurrency": "EUR",
    "availability": "https://schema.org/InStock"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.6",
    "reviewCount": "38",
    "bestRating": "5",
    "worstRating": "1"
  },
  "review": [
    {
      "@type": "Review",
      "author": { "@type": "Person", "name": "Claire M." },
      "datePublished": "2026-10-02",
      "reviewRating": { "@type": "Rating", "ratingValue": "5" },
      "reviewBody": "Keeps the heat well, and the enamel inside does not stain."
    }
  ]
}
</script>
```

The values come from the same source as the display: the average and count calculated from published reviews, not figures entered by hand.

### WordPress

Versions: WordPress 6.4 and later, WooCommerce 9 and later; Yoast SEO 20 and later, Rank Math 1.0.x, November 2026.

WooCommerce adds `aggregateRating` and the latest `review` entries to its `Product` block as soon as product reviews are enabled: `WooCommerce > Settings > Products`, reviews section, check the options that enable reviews and star ratings. Nothing else to do for product pages.

The risk comes from plugins:

- **Post rating plugins** (stars at the bottom of a post): disable their structured data option; an `AggregateRating` on a `BlogPosting` is not eligible.
- **Google or Trustpilot review widgets** displayed on the home page: disable the widget's “schema” or “rich snippets” option, which marks up reviews aggregated from another site on your own `Organization`.
- **Product review plugins** (reviews with photos, verified reviews): they often replace WooCommerce reviews and add their own markup. Check with curl that only one `Product` block and one rating remain.

To remove a rating that an SEO plugin wrongly injects, filter the graph. With Yoast SEO:

```php
add_filter('wpseo_schema_graph', function (array $graph): array {
    foreach ($graph as $index => $piece) {
        if (! is_array($piece)) {
            continue;
        }

        $types = (array) ($piece['@type'] ?? []);

        if (array_intersect($types, ['Article', 'BlogPosting', 'Organization', 'WebPage'])) {
            unset($graph[$index]['aggregateRating'], $graph[$index]['review']);
        }
    }

    return $graph;
});
```

With Rank Math, the equivalent filter is `rank_math/json_ld`. Put this code in the child theme's `functions.php` or in a custom plugin, then clear the page cache.

### Shopify

Versions: Online Store 2.0 Horizon and Dawn themes, November 2026.

The Liquid `structured_data` filter does not mention ratings in its documentation. Review apps usually fill in the standard `reviews.rating` (average rating) and `reviews.rating_count` (number of ratings) metafields, and some also inject their own markup.

1. Open a product page that has reviews, then search for `aggregateRating` in the source code. If it appears once, in the `Product` block, the app handles it: nothing to do.
2. If it is missing, replace the `{{ product | structured_data }}` block in the product section with a hand-written block (`Online Store > Themes > … > Edit code`, file `sections/product-information.liquid` in Horizon, `sections/main-product.liquid` in Dawn, or equivalent):

```liquid
{%- assign variant = product.selected_or_first_available_variant -%}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": {{ shop.url | append: product.url | append: '#product' | json }},
  "name": {{ product.title | json }},
  "image": {{ product.featured_image | image_url: width: 1200 | prepend: 'https:' | json }},
  "description": {{ product.description | strip_html | truncate: 500 | json }},
  "offers": {
    "@type": "Offer",
    "price": {{ variant.price | divided_by: 100.0 | json }},
    "priceCurrency": {{ cart.currency.iso_code | json }},
    "availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}"
  }
  {%- if product.metafields.reviews.rating_count.value > 0 -%},
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": {{ product.metafields.reviews.rating.value.rating | json }},
    "bestRating": {{ product.metafields.reviews.rating.value.scale_max | json }},
    "worstRating": {{ product.metafields.reviews.rating.value.scale_min | json }},
    "ratingCount": {{ product.metafields.reviews.rating_count.value | json }}
  }
  {%- endif %}
}
</script>
```

For a product with variants, keep the filter's `ProductGroup` logic: just add the `aggregateRating` block at the right level. Test the product page in the Rich Results Test after publishing.

### PrestaShop

Versions: PrestaShop 8 and 9, Classic and Hummingbird themes, official product comments module.

The Classic and Hummingbird themes (Hummingbird is the default theme since PrestaShop 9.1) output the `Product` block in `templates/_partials/microdata/product-jsonld.tpl`. They add `aggregateRating` (average and number of comments) when the official product comments module is installed and there are approved reviews; they do not output individual reviews. Check in the module that comment approval does not filter out negative reviews. If you use a third-party review module, disable one of the two markups to avoid two ratings. Clear the cache in `Advanced Parameters > Performance`.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.

Magento Open Source and Adobe Commerce handle product reviews natively (`Marketing > User Content > All Reviews`). Depending on the theme, the rating is marked up or not, in microdata or JSON-LD: check the source code of a product page with reviews. If you add a structured data extension, make sure it uses the approved reviews and that only one rating per product remains.

### Laravel

Versions: Laravel 11 to 13.

Calculate the rating from published reviews, with the query that feeds the display:

```php
$reviews = $product->reviews()->published()->latest()->get();

$schema = [
    '@context' => 'https://schema.org',
    '@type' => 'Product',
    '@id' => route('products.show', $product).'#product',
    'name' => $product->name,
    'image' => $product->imageUrl(),
    'offers' => [
        '@type' => 'Offer',
        'price' => number_format($product->price, 2, '.', ''),
        'priceCurrency' => 'EUR',
        'availability' => 'https://schema.org/InStock',
    ],
];

if ($reviews->isNotEmpty()) {
    $schema['aggregateRating'] = [
        '@type' => 'AggregateRating',
        'ratingValue' => round($reviews->avg('rating'), 1),
        'reviewCount' => $reviews->count(),
    ];

    $schema['review'] = $reviews->take(5)->map(fn (Review $review): array => [
        '@type' => 'Review',
        'author' => ['@type' => 'Person', 'name' => $review->author_name],
        'datePublished' => $review->created_at->toDateString(),
        'reviewRating' => ['@type' => 'Rating', 'ratingValue' => $review->rating],
        'reviewBody' => $review->body,
    ])->values()->all();
}
```

In the Blade view:

```php
<script type="application/ld+json">
    {!! json_encode($schema, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
</script>
```

Adapt `published()`, `imageUrl()` and the column names to your model. Display on the page the same five reviews as those marked up.

### Next.js

Versions: Next.js 15 and 16 (App Router).

Build the object in the page's server component, from the data that feeds the display:

```tsx
const jsonLd = {
  '@context': 'https://schema.org',
  '@type': 'Product',
  '@id': `https://example.com/produits/${product.slug}/#product`,
  name: product.name,
  image: product.image,
  offers: { '@type': 'Offer', price: product.price, priceCurrency: 'EUR' },
  ...(product.reviewCount > 0 && {
    aggregateRating: {
      '@type': 'AggregateRating',
      ratingValue: product.ratingAverage,
      reviewCount: product.reviewCount,
    },
  }),
};
```

Render it in a `<script type="application/ld+json">` tag with `dangerouslySetInnerHTML` and `JSON.stringify(jsonLd).replace(/</g, '\\u003c')`, as the Next.js documentation recommends. If reviews come from a third-party service loaded on the client side, fetch the rating on the server side, otherwise it will not exist in the initial HTML.

## Common mistakes

- **Awarding yourself stars** on the home page or the “about” page with the company's Google reviews: not eligible and against the guidelines.
- **Rating articles or services**: `Article`, `BlogPosting` and `Service` do not qualify for review snippets.
- **A rating that is marked up but not displayed**, or displayed only in a tab the crawler does not see.
- **Hard-coded values**: a 4.8 rating entered in the theme that never changes when reviews do.
- **Two ratings for one product**: one from the theme, one from the review app, with different counts.
- **Decimal comma** (`"4,6"`) or undeclared scale: a rating out of 10 without `bestRating` is read as out of 5.
- **Publishing only positive reviews**: the rating becomes misleading, even if every review is real.

## Frequently asked questions

### Can you show Google stars with reviews of your own company?

No. Google excludes from stars the pages where a business publishes reviews about itself, marked up as LocalBusiness or Organization, even when those reviews come from a third-party widget such as Trustpilot or Google. This markup is reserved for sites that review other businesses. For a business, stars remain possible on product, software or course pages that collect genuine, visible customer reviews.

### Should you mark up every review or only the average rating?

The average rating, with AggregateRating, is enough for the review snippet. If you mark up individual reviews with Review, Google asks you to add the average rating as well. Only mark up reviews actually displayed on the page, with a named author, a rating and, preferably, the date and text. There is no need to mark up hundreds of reviews: a few recent, visible reviews consistent with the average are enough.

### Can you reuse your Google or Trustpilot rating in your structured data?

No. Google's guidelines prohibit aggregating reviews or ratings collected on other sites in your markup. You can display a Trustpilot or Google badge to reassure visitors, but without marking it up as AggregateRating. Only reviews collected and published on your own site, on the page of the reviewed item, can be marked up.

### Does AggregateRating markup help you get recommended by ChatGPT or Perplexity?

No generative engine vendor documents using AggregateRating markup in its answers. These assistants answer reputation questions by cross-checking third-party sources: review platforms, comparisons, forums, press articles. Your markup remains useful for Google and for the consistency of your pages, but a real, well-rated presence on your industry's platforms carries more weight in recommendations.

## Resources

- [Google Search Central: review snippets (Review, AggregateRating)](https://developers.google.com/search/docs/appearance/structured-data/review-snippet?hl=en)
- [Google Search Central: general structured data guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies?hl=en)
- [Google Search Central: making review rich results more helpful (self-serving reviews)](https://developers.google.com/search/blog/2019/09/making-review-rich-results-more-helpful)
- [schema.org: Review](https://schema.org/Review) and [AggregateRating](https://schema.org/AggregateRating)
- [Shopify: standard metafield definitions](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-standard-definitions)
- [Yoast: Schema API](https://developer.yoast.com/features/schema/api/)

Next steps: [Avoid fake reviews and misleading data](https://checklist-seo-geo.com/en/schemaorg-structured-data/avoid-fake-reviews-misleading-data), [Align markup with visible content](https://checklist-seo-geo.com/en/schemaorg-structured-data/align-markup-visible-content) and [Collect authentic reviews without selective gating](https://checklist-seo-geo.com/en/local-seo/collect-authentic-reviews-without-selective-gating).
