The reviews widget
Last updated
One div and one script show your approved reviews on any page. You copy them from the Widget tab of your review site.
Add the widget
- Open Reviews, pick your site and open the Widget tab.
- Go to step Add to site and press Copy next to Code for your site.
- Paste the code where the reviews should appear. The tabs under the code (HTML, WordPress, Wix, Webflow, Tilda, Shopify, Framer) say where each site builder takes HTML; the platform guides in the side menu walk through it click by click.
- Go to step Check, enter the Page with the widget and press Check my site.

<div data-formgong-reviews="fk_your_reviews_key" data-limit="6"></div>
<script src="https://formgong.com/reviews.js" defer></script>
The widget draws into its own shadow DOM, so your site's CSS cannot break it. With no approved reviews it shows only the “Write a review” link, or nothing. The count always says “approved reviews”.
“Write a review” opens the review form in a window over your page, so the buyer stays on the product: stars, text, your customer questions and photo or video upload. Files go through the same checks as on the review page (location data removed, antivirus, a bot check on every upload). Ctrl or Cmd-click still opens the form in a new tab.
Settings on the div
data-limit: how many reviews show first (1 to 50, default 6). “Show more reviews” loads the next batch.data-product: show one product's reviews only. On Shopify usedata-product="{{ product.handle }}".data-title: a heading, shown only when there are reviews.data-lang: the widget language. Without it the widget follows<html lang>.data-layout="carousel": the same cards in one row that scrolls sideways, with Previous and Next buttons. Adddata-autoplay="6"to move it every 6 seconds (3 or more). Hovering pauses it, and it never moves for visitors who turn off motion.
On a shop with several products, put data-product on the div of each product page, and add the same product id to that product's review link (?product=product-id). Each product then shows its own reviews.
With data-product, the widget also adds the product's rating as structured data (JSON-LD) for Google's review stars, named from data-product-title or the page title. A page whose own markup has a rating keeps it. data-schema="off" turns it off.
Filters and sort
Once a site has 5 approved reviews, a toolbar appears above the list. The rating bars filter the list to one star value, “With photos” keeps reviews with a photo, Search reviews finds words in the review text, and Sort by offers Newest, Highest rating, Lowest rating, Most helpful, With photos first and Verified buyers first. On Pro, and while the free Reviews offer runs, chips such as “Quality (12)” or “Delivery (5)” filter the list by the topics the AI tagged; they show only topics that have reviews.
Rating badge
A small “★ 4.8/5 · 123 approved reviews” link for any page, with the same script:
<div data-formgong-badge="fk_your_reviews_key" data-href="/reviews/" data-position="bottom-right"></div>
data-position is inline (default), bottom-right or bottom-left. Add data-product for one product's rating.
Review pop-up
A small card in a corner of the page that shows your newest approved written reviews one at a time, with the same script:
<div data-formgong-popup="fk_your_reviews_key" data-href="/reviews/"></div>
The first card appears after 8 seconds (data-delay changes it), each stays 7 seconds, and a visitor sees at most 6 per page. It shows the newest reviews whatever their stars. Hovering holds a card; × hides the pop-ups until the visitor closes the tab. data-position="bottom-right" moves it from the bottom-left corner; data-product shows one product's reviews.
Stars in product lists
Put <span data-formgong-stars="fk_your_reviews_key" data-product="42"></span> under each product title. All of them on a page load in one request per 50 products. A product without approved reviews shows nothing; data-show-count="0" hides the “(12)”.
Product groups
When you sell one product as several, such as a colour, a size or a pack per product, group them under Widget → Product groups: tick the products and press Group the selected products. Each of them then shows the reviews of all of them, its stars in product lists count them all, and every review from another version says which one it was written for (“Written for: Linen shirt, blue”). Take out removes a product from its group.
Bundles: on the same page, enter a bundle's product key and tick the products in it. The bundle then shows their reviews too, each labelled.
Group only versions of the same product. Showing reviews of a different product as reviews of this one is review hijacking, which the US FTC rule on consumer reviews forbids. A group holds up to 20 products. Groups apply to the widget on your site, the WordPress plugin and the Wix widget; the Shopify block still shows each product's own reviews.
When a product is replaced by a new one, or its key changed, Move reviews on the same page moves all its reviews to another product key. They keep their stars, text, photos and dates.
Reviews as JSON
The approved reviews are also public JSON at https://formgong.com/reviews/<key>.json, open to any origin.
Related articles
Questions: support@formgong.com.