HTML & static sites · 5 min read

How to embed Google reviews in plain HTML

If you have a plain HTML site, a static site (Astro, Next.js, Hugo, Eleventy, Jekyll) or a one-page landing page, the Reviews Widget snippet is a single <script> tag with no build step.

TL;DR: Create a free Google reviews widget, paste the snippet inside <body>, deploy.

Step-by-step

  1. 1

    Create your free Reviews Widget

    Sign up, connect your Google Business Profile, and load in your reviews.

  2. 2

    Style the widget

    Pick a layout, colors and preset from the visual editor. Preview across desktop, tablet and mobile.

  3. 3

    Copy the embed snippet

    In the Embed tab, copy the one-line <script> tag.

  4. 4

    Open your HTML file

    Open the page you want the reviews on in your code editor — index.html, a landing page, or a static-site template.

  5. 5

    Paste the snippet inside <body>

    Paste the <script> tag where you want the widget to render. It renders in place, so put it exactly where the reviews should appear (not in <head>).

  6. 6

    Deploy and verify

    Push to your host (Netlify, Vercel, Cloudflare Pages, GitHub Pages, S3, or any shared hosting). Paste the live URL into Google's Rich Results Test to confirm the Review + AggregateRating JSON-LD validates.

For the general walkthrough that covers CMS platforms, read the full guide.

Frequently asked questions

Does this work on static site generators like Astro, Next.js, Hugo, Eleventy or Jekyll?+

Yes. The snippet is standard HTML — put it in a template, a partial or an MDX file. In Next.js you can use a <div dangerouslySetInnerHTML> or the Script component with strategy='afterInteractive'.

Can I put the script tag in <head>?+

You can, but the widget renders exactly where the tag lives, so if you want to control placement it's easier to paste it inside <body> at the position you want.

Does the embed need any build step?+

No. It's a runtime script — no npm install, no bundling, no build config.

Will the embed hurt my Lighthouse score?+

The script is ~5 KB gzipped and loads asynchronously, so it doesn't block LCP or INP. Reviews are cached on our infrastructure.

Will Google show stars for my static site?+

The embed injects valid Review + AggregateRating JSON-LD. Rich results are Google's call, but the schema validates in the Rich Results Test.

Ready to embed Google reviews in your HTML?

Free forever plan. No build step, no plugin.