Widget Containers (HTML)
Place<div> containers anywhere in your HTML. These containers must be pure HTML, they cannot be injected by GTM. They must be part of your page templates.
Example values are:
data-product-group-id= “Product”data-product-id= “Product-Color”data-variant-id= “Product-Color-Size”
- PLP = Product Listing Page
- PDP = Product Detail Page
Ratings widget (PDP & PLP)
This is an inline star \ score count. It is typically placed near the product title.Ratings widget
voyado-ratings--small(16 px text)voyado-ratings--vertical(stacked layout)- Or both combined.
Badge widget (PDP — sidebar)
This includes a large numeric score, stars, a review count and a “Review this product” CTA that opens the review popup.Badge widget
voyado-badge--compactfor a smaller score (48 px instead of 78 px with CTA hidden)
Summary widget (PDP)
This includes AI generated sentiment highlights from customer reviews. It is automatically hidden when there are no reviews.Summary widget
Reviews widget (PDP)
This is a full review list with sort dropdown, pagination, author, date, star rating, text, verified-buyer badge, thumbs up/down voting, and comment threads. Authenticated users can edit their own reviews.Reviews widget
voyado-reviews--boxedwraps each review in a card
Highlights widget (PLP / PDP)
This is a single AI-selected review excerpt including title, date, and a “Powered by Voyado” footer. It is lighter than the full Summary widget.Highlights widget
Distribution widget (PDP — rating breakdown)
Five-row breakdown (5★ down to 1★), each row showing a mini star icon, the review count for that star value in parentheses, and a horizontal bar sized to that rating’s share of all reviews. This is the widget referenced internally as “rating breakdown (5★/4★/3★…).”Distribution widget
Carousel widget (PDP — scrolling review cards)
A horizontally-scrolling row of review cards under the heading “What our customers are saying,” with prev/next nav buttons. Supports two optional filtering attributes not used by any other widget:data-min-rating: Include only reviews at or above this star rating (for example, 4 means show only 4 and 5 star reviews)data-max-review-count: Cap the number of review cards rendered (for example, to 10)
Carousel widget
Add Review widget (PDP — standalone collection button)
A standalone CTA button that opens the review-submission modal directly.Add Review widget
Loading widgets
This is how the widgets are loaded:Loading widgets
- “ratings”
- “badge”
- “summary”
- “reviews”
- “highlights”
- “distribution”
- “carousel”
- “add-review”
PLP example
PDP example
Clearing widgets
To clear the loaded widgets, call:load-widgets again after the new view is rendered.
Keeping widget attributes in sync
It’s important to always keep widget attributes in sync with the selected variant. This means you should always ensure that the attributesdata-product-group-id, data-product-id and data-variant-id match what the shopper is currently viewing on the page and not just contain the values present when the initial page load was done.
Whenever the shopper changes size, color, or otherwise selects a different variant, update these three attributes on every Voyado widget present on the page (such as .voyado-badge, .voyado-add-review, and any others you’ve added):
If you don’t do this, the attributes will be never updated, meaning a shopper who switches variant will end up submitting — or viewing — reviews for the wrong product and/or variant.
If no variant is selected
If the merchant hasn’t selected a variant on the site (for example, the shopper is on a product page where no size or color is chosen yet), setdata-variant-id to an empty value on the widgets.
Do not leave a stale variant from an earlier selection.
Links from review-request emails
When a visitor arrives at your site through a link in a review-request email, the link also carries avoyado-rating-item parameter. The script then:
- Looks for other Voyado widgets on the page, such as
voyado-badgeorvoyado-add-review - Reads
data-product-group-id,data-product-idanddata-variant-idfrom the widgets and uses only the attributes that have values - If there is no widget, or all three attributes are empty, it will fall back to the value in
voyado-rating-item
voyado-rating-item.
When the customer follows this link, the script gets this information on your site and tries to set it as data-variant-id in the voyado-badge and voyado-add-review widgets, but only if that attribute is empty. Here data-product-group-id and data-product-id have already been set by the script.