Guide · updated 27 November 2026
How to embed Google reviews in HTML without a plugin
You can embed Google reviews in any HTML page with two lines of code and no plugin: one line marks the spot, the other loads a 9 KB script. This guide covers hand-written pages, static site generators, single-page apps and Webflow.
You need a widget ID. Create a free Featherstar widget first: one widget is free, with no view limit and no cookies.
Create a free widget1. Paste the two lines
In the Featherstar dashboard choose a layout and click Publish, then copy the code from the Add to your site tab:
<div data-featherstar="YOUR_WIDGET_ID"></div> <script src="https://cdn.featherstar.app/widget/v1.js" async></script>
- The
divgoes exactly where the reviews should appear. - The
scriptcan sit anywhere, though just before</body>is tidy. It loads withasync, so it never holds up your page. - Several widgets on one page? Add a
divfor each; one script tag is enough.
Layout, colours, language and which reviews to show are set in the dashboard. When you publish a change there, every page with the code picks it up; you don’t edit the HTML again.
The widget draws itself inside its own isolated area (a shadow root), so your stylesheet won’t clash with it and it won’t restyle your page.
2. Override settings in the code (optional)
Attributes on the div win over the dashboard settings for that one spot:
| Attribute | Values |
|---|---|
data-fs-layout | grid, list, masonry, carousel, slider, badge, inline (one line of stars), button (“Review us”), popup |
data-fs-theme | light, dark, auto |
data-fs-lang | a language code such as en or de; page follows your page’s language, visitor the visitor’s browser |
data-fs-max | the number of reviews to show |
<div data-featherstar="YOUR_WIDGET_ID" data-fs-layout="carousel" data-fs-max="6"></div>
Forgot you set one? Check my page in the dashboard opens your page and lists any overrides it finds.
3. A badge or popup on every page
Choose Badge with its Position set to a corner, or Corner popup, in the dashboard. Then put both lines just before </body> in the template or include that every page shares. The div can be anywhere in the body, because a floating layout positions itself on the screen.
4. Static site generators
Treat it like any other HTML: the div in the template or content where the reviews belong, the script once in your base layout.
- Hugo, Jekyll, Eleventy: put the
divin a partial or include (for examplereviews.html) and the script in the base layout before</body>. In Markdown content, some setups strip raw HTML; use the partial or allow HTML in your Markdown settings. - Astro: write the script tag as
<script is:inline src="…" async></script>so Astro leaves it alone instead of bundling it.
5. React, Next.js, Vue and other single-page apps
Render the div as normal markup and load the script once for the whole app (in Next.js with the Script component). The script scans the page when it loads. If a route renders the div later, during client-side navigation, call this after the route has rendered:
window.Featherstar && window.Featherstar.scan();
Widgets that are already shown are skipped, so calling it more than once is safe.
6. Webflow
- In the Designer, open the Add panel and drag a Code Embed element where the reviews belong.
- Paste the two lines and click Save & Close.
- Publish the site. The Designer canvas doesn’t run the script, so check the published site.
For a floating badge or popup, use Site settings → Custom code → Footer code instead, then publish. Code Embed elements and site-wide custom code need a paid Webflow Site plan or a qualifying Workspace plan.
7. Sites with a Content Security Policy
If your server sends a Content Security Policy, allow https://cdn.featherstar.app in script-src and connect-src (the script fetches your reviews from there). Reviewer photos come from Google’s image servers, so allow https://*.googleusercontent.com in img-src, or switch on privacy mode, which shows initials instead. The widget’s styles live inside its shadow root, so a policy without 'unsafe-inline' in style-src can leave it unstyled.
Widget not showing?
- Is it published? Publish the widget in the dashboard and upload or deploy the page.
- Is the code complete? The
divwith your exact widget ID and the script tag. A typo in the ID shows nothing; the browser console logs a line starting with[Featherstar]. - Is a consent tool blocking the script? Some cookie banners block every outside script until consent. Featherstar sets no cookies; add an exception for
cdn.featherstar.app. - Are you looking at a preview? Builder previews and editors often don’t run scripts. Check the live page.
FAQ
Can I get the reviews as real HTML text on a static site?
With the script, the reviews are drawn in the browser. If the review text must be in the HTML itself, WordPress sites can use the Featherstar plugin, which prints them server-side.
Does it need jQuery or a framework?
No. It’s one dependency-free script of about 9 KB.
Does it set cookies?
No cookies and no tracking. More in the GDPR checklist.
Put your Google reviews on your site in five minutes. Featherstar is free for one widget, with no view limit, no trial and no cookies. Pro is €19 a year for the first 100 customers.
Create a free widgetRelated guides
- How to embed Google reviews on your website
- How to add Google reviews to WordPress
- Google reviews without cookies: a GDPR checklist