Installation guide
Google reviews embed code: add reviews to any HTML page
Google does not give businesses an embed code for their reviews. This guide shows the options that do exist, then the exact HTML to paste for a live reviews widget, in a hand-written page or any HTML block that allows JavaScript.
Updated November 2026
Quick answer
- In VerifiedWidget open your widget, click Embed, and copy the installation code.
- Paste it into your page body, exactly where the reviews should appear.
- Publish and open the live page. A file opened from your computer (a
file:address) fails if you set allowed domains.
Want the reviews somewhere other than where you pasted the code? Move the placeholder <div data-verifiedwidget-id="…"> block to that spot. The script line can stay where it is.
Is there an official Google reviews embed code?
No. Google Maps lets you embed a map of your business, and Google Business Profile gives you a link that asks customers for a review, but neither gives you HTML that shows your reviews on your own site. People who search for “Google reviews embed code” usually end up with one of these three options.
| Method | What visitors see | Updates by itself? | What you need |
|---|---|---|---|
| Google Maps embed (Share or embed map, then Embed a map, then Copy HTML) | A map of your business location, not a list of reviews | Yes, it is Google's own map | Nothing extra; free from Google |
| Google Places API in your own code | Up to 5 reviews per place, built by you | Only if your code fetches again | A Google Cloud key with billing, and a developer. See the Google reviews API guide. |
| A reviews widget, such as VerifiedWidget | A designed display of your Google reviews: carousel, grid, badge and more | Yes, on a schedule set by your plan | A short block of install code, shown below |
See Google's steps for embedding a map. The rest of this page covers the third option.
Get the code for your own widget
Start in VerifiedWidget. Connect the business with its Google Maps link. Check that the business name and imported reviews are the ones you expect. Then make a widget, pick a layout, save it, and open its Embed dialog. With HTML / website builder chosen as the platform, the main box gives you a short block. It is a placeholder div holding a plain-text summary of a few reviews, then the script. Copy all of it. The text is for search engines and AI tools that skip JavaScript, and the widget removes it once the reviews draw. You do not need a WordPress plugin, a Google API key in the page, or a hand-built list of review cards.
Here is the shape of that block, with an example widget ID and shortened text. Your own block has your business name and a few of your reviews. The ID below is only a placeholder and will not show your reviews. The Script Tag option under Visual widget only shows this same block. You only get a bare script line if the dashboard could not build the full block. Always paste the code from your own dashboard, including crossorigin and async. Do not paste a private key into public HTML.
<div data-verifiedwidget-id="c123456789012345678901234">
<div data-vw-fallback>
<p><strong>Example Café</strong> is rated 4.8 out of 5 from 312 Google reviews (as of November 2026).</p>
<blockquote><p>“Friendly staff and the best flat white in town…”</p><cite>Sam P., 5/5 Google review</cite></blockquote>
<p><a href="https://verifiedwidget.com/r/c123456789012345678901234">Read more reviews of Example Café</a></p>
</div>
</div>
<script src="https://verifiedwidget.com/widget.js" crossorigin="anonymous" async></script>The browser downloads widget.js from VerifiedWidget. Once it runs, the loader fills the placeholder div (or, for a bare script line, adds the display beside it) and requests your saved widget data. That placement detail matters: put the code in the part of the page body where visitors should see the reviews. If you put it in the document head without a matching placeholder, the loader adds the display at the end of the body instead.
Paste it into a plain HTML page
Open the file that produces the published page. Find the section where your heading and reviews should sit, then paste the copied code immediately below the heading or introductory paragraph. Here is a complete example. The sample ID is deliberately fake; use your own dashboard snippet before publishing.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Customer reviews</title>
<style>
.reviews-slot { min-height: 320px; }
</style>
</head>
<body>
<main>
<h1>What our customers say</h1>
<div class="reviews-slot">
<div data-verifiedwidget-id="c123456789012345678901234">
<div data-vw-fallback>
<p><strong>Example Café</strong> is rated 4.8 out of 5 from 312 Google reviews (as of November 2026).</p>
<blockquote><p>“Friendly staff and the best flat white in town…”</p><cite>Sam P., 5/5 Google review</cite></blockquote>
<p><a href="https://verifiedwidget.com/r/c123456789012345678901234">Read more reviews of Example Café</a></p>
</div>
</div>
<script src="https://verifiedwidget.com/widget.js" crossorigin="anonymous" async></script>
</div>
</main>
</body>
</html>Save, deploy, and open the public URL in a fresh tab. Check the page itself rather than only a visual editor or a local file opened with a file: address. The review request needs an ordinary website address (such as https://yoursite.com), especially if you have restricted the widget to certain domains. If your site builder offers an HTML or Embed block that runs scripts, place the same install code there and publish the page. If the block only prints code as text, use a block that permits scripts or ask the site owner to add it to the page template. If no block runs scripts, the Embed dialog also has an Iframe option under Visual widget only. It is not offered once you set allowed domains. Some content systems strip script tags when you save; our Joomla guide shows how to stop that.
Use one copy of the install code for each widget placement. Each copy is tied to one saved widget ID. If you duplicate the section across a site template, every page using that template may show the widget and use monthly views. Remove an old embed if you replace it with a new widget; otherwise you may render the same reviews twice.
Why the script uses async
The async attribute lets the page continue loading while the browser fetches the review script. It does not wait for an exact position in the page-loading sequence. Keep the script next to the intended display spot so it can insert the widget there when it executes. Avoid wrapping this tag inside a code sample, a quoted HTML string, or a comment: those show text to visitors but do not run the widget.
Reviews arrive after the script requests data. A fast page may briefly show an empty reserved area. This is normal; do not add made-up review text as a loading placeholder. If reviews are important near the top of the page, keep the page light and avoid site plugins that delay external scripts until a visitor scrolls. If you intentionally defer scripts for consent, verify that your consent tool eventually loads the tag and that the review area becomes visible.
Allow the required requests through a security policy
Some sites send a Content Security Policy, or CSP, header that limits which services the browser can contact (see MDN's CSP reference). A policy that only allows your own domain can stop the script or the review-data request. Your site administrator can add https://verifiedwidget.com to script-src for the file and to connect-src for its data request. The line below is an illustrative set of directives, not a replacement for your complete site policy.
Content-Security-Policy: script-src 'self' https://verifiedwidget.com; connect-src 'self' https://verifiedwidget.com; img-src 'self' data: https://verifiedwidget.com https://*.googleusercontent.com;Images may come from the review source or your selected theme, so check blocked image addresses in the browser before adding a narrow image host. The widget also adds its own styles. If your policy sets style-src (or default-src), it needs 'unsafe-inline' for those styles. If you pick a Google font in the widget, also allow https://fonts.googleapis.com in style-src and https://fonts.gstatic.com in font-src. Keep your existing policy rules for the rest of the site. If your site uses a nonce-based strict policy, have its maintainer apply that policy's trusted-script setup instead of blindly pasting this example. The browser console will name the exact directive that blocked a request.
Leave room for the reviews
Because the reviews load after the first HTML, the area can grow and push content below it. That visible jump is called layout shift. Give an ordinary grid or carousel a reasonable minimum height, as in the example, then adjust it after checking the live widget on desktop and mobile. A longer list may need more height; a floating badge needs none, because it sits in a screen corner. Do not force a fixed height with hidden overflow unless you want to clip reviews. The right value depends on the selected layout, number of cards, and screen width.
Check the finished page with a narrow browser window. If cards overflow, give the section a full-width parent and remove restrictive widths or clipping on its ancestors. If there is too much blank space before the widget appears, reduce the reserved height or choose a smaller layout. The widget itself uses a shadow root for its styles, but the space around it still comes from your page's layout.
If the widget is blank
First confirm that all of the install code survived publishing and that you are checking the correct public page. Then check the saved widget in VerifiedWidget for imported reviews, filters that hide every review, and any monthly view limit. If you enabled allowed domains, include the actual production host and any staging host you use for testing. A restricted host can produce a 403 response. A deleted or mistyped widget ID can produce a 404.
Open the browser console and network panel. A blocked widget.js points to script loading or CSP; a blocked /api/embed/ request points to connect-src, network access, or the domain list. Try once without a script-blocking browser extension. If the widget loads but is hidden, inspect the surrounding section for display:none, zero width, or clipped overflow. When asking for help, share the page URL and widget ID, never private credentials.
Showing reviews on your own site does not make that business eligible for Google review stars in search results. Our review stars guide explains the rule. For a site built with components rather than plain HTML, use the React guide or Next.js guide.
Using placeholders for more than one widget
You might want a different widget in two spots, such as a badge-style summary near the top and a grid lower down. You do not need to repeat the full install code for that. Load the script once without data-widget-id, then put one placeholder where each widget belongs: <div data-verifiedwidget-id="WIDGET_ID_ONE"></div> and <div data-verifiedwidget-id="WIDGET_ID_TWO"></div>. The loader finds each placeholder and fills it. It also watches for placeholders added later, which helps if a script or template inserts them after the page loads.
Placeholders are also the easiest option for a static site or template system. Put the loader once in your base layout, and drop a placeholder into whichever pages need reviews. Each page that shows a widget counts its own views.
Free widget code for HTML: what you get
The Free plan gives you one Google Reviews widget, up to 30 reviews refreshed monthly, and 2,000 views a month. Free widgets show a small VerifiedWidget badge, which paid plans can remove. Starter ($49 a year) adds 3 widgets, all 35 layouts and weekly updates. Pro ($99 a year) adds unlimited widgets, daily updates and the domain allowlist. The HTML you paste is the same on every plan.
You can test the code on a local page before going live, as long as you have not set an allowlist. Serve the file from a local web server rather than opening it as a file: address. If you use an allowlist, add your real domain to it before you launch.
Frequently asked questions
Does Google have an official embed code for reviews?
No. Google Maps can embed a map and Google Business Profile gives you a review request link, but Google offers no HTML for showing your reviews on your own site. Use a reviews widget or build your own display with the Places API.
Can I show two different review widgets on one HTML page?
Yes. Load the script once without a widget ID and add a placeholder div with data-verifiedwidget-id for each widget.
Is there a free Google review widget HTML code?
Yes. The Free plan includes one widget with up to 30 reviews, refreshed monthly. Copy the install code from the Embed dialog and paste it into your page body.
Do I need a plugin or a Google API key?
No. Paste the install code copied from your VerifiedWidget dashboard into HTML that permits JavaScript. Keep any private API keys out of the page.
Where exactly should I paste the install code?
Place it in the page body at the spot where reviews should appear, such as below a reviews heading. A head placement without a matching placeholder puts the display at the end of the body.
Why is the script marked async?
It lets the rest of the page load while the widget file downloads. The reviews appear once the script and review data have arrived.
Why is there a blank gap before reviews appear?
The page may reserve height to prevent content from jumping while reviews load. Adjust that minimum height for your selected layout and mobile screens.
Can I use the same code on several pages?
Yes. Each page will show the saved widget where you place its install code, and each load can count toward your monthly view allowance.
Add reviews with one HTML snippet
Create a free widget, copy the real install code from your dashboard, and test it on your published page.