Review Widget Integration Guide
Embed your Your.Reviews rating and reviews on your website with a single script tag.
1. Create a widget
In your business dashboard, open Review Widgets, choose an available type, and save its appearance settings. Open Add to website and select Generate embed code, then Copy embed code. Previously installed codes continue working; generate another only when you need a copy for installation. The copied snippet contains your embed token. The examples below use placeholder tokens.
2. Paste the embed code
Paste it where you want the widget to appear . There is no separate placeholder element: the script inserts the widget directly after itself, so its position on the page is the widget’s position. Use a body content block for inline widgets, not the document head. Side Bar and Floating Button use their saved docked position.
<script src="https://backend-api.your.reviews/embed.js" data-token="YOUR_EMBED_TOKEN" data-lazy="false" defer></script>
For staging, use the staging dashboard’s snippet and token. Do not mix staging and production hosts or tokens. Staging test widgets may require an approved website origin.
<script src="https://stage-api.your.reviews/embed.js" data-token="YOUR_STAGING_EMBED_TOKEN" data-lazy="false" defer></script>
The script loads without blocking the page. If your plan permits multiple widgets, paste the snippet once per widget, each with its own token, in the place that widget should appear.
Options
| Attribute | Values | What it does |
|---|---|---|
data-token | required | The embed token from your widget’s page in the dashboard. Without it nothing renders. |
data-size | xs · sm · md · lg · xl | Optional scale override. Omit to use the saved appearance; saved size applies to Badge, Floating Button and Snackbar formats. |
data-scale | greater than 0, up to 2 | Exact scale factor, if the presets do not fit. Overrides data-size. |
data-lazy | true · false | Defer loading until the widget scrolls into view. The loader defaults to true; dashboard snippets use false to load immediately. |
data-debug | true · false | Log what the embed is doing to the browser console. |
If nothing appears
- Check the snippet still has its data-token . Without it the script loads and renders nothing, deliberately quietly, so a copy-paste error cannot break your page.
- Add data-debug="true" to the tag and open your browser console — the embed will explain what it is doing. Also check that the widget is active, the token is current, the script can load, and publication or website-origin rules allow display.
Widget types
Growth is called Basic in the widget chooser. Pro is called Professional.
| Type | What it shows | Plan |
|---|---|---|
| Side Bar | A docked rating panel with review insights, trends and a scrollable review drawer. | Pro |
| Trust Badge | A compact rating and review count for headers, footers and checkout. | Free and up |
| Review Carousel | A scrollable row of customer reviews for your homepage. | Growth and up |
| Review Grid | Responsive review cards for a testimonials page. | Growth and up |
| Review Wall | A featured testimonial with an overall rating for landing pages. | Pro |
| Floating Button | A compact corner button linking to your public review page. | Pro |
| Rating Snackbar | A slim rating bar for a header, footer or product page. | Pro |
Notes
- Embed tokens are signed and scoped to one widget on your business; the token in the snippet is safe to make public.
- Light and dark themes are available in the widget appearance settings.
- The widget refreshes published data periodically. Eligible published imports contribute under the business’s publication rules; original sources remain recorded. No separate provider parameter is needed.
Need help? Contact us or visit the Help Center.
Free includes the badge; Growth adds the carousel and grid; Pro has every type.
Free includes the badge; Growth adds the carousel and grid; Pro has every type.
