TrustGetter

Google reviews widget for WooCommerce

Show your real Google reviews on your WooCommerce store — on one page, or across every product at once — with one line of code and no extra plugin. This guide covers both the block themes that use the Site Editor and the classic themes that do not.

Works with any WooCommerce theme No extra plugin About five minutes

Before you start: you need a TrustGetter account with a saved widget, which is where your embed code comes from, and admin access to your WooCommerce site. Since WooCommerce runs on self-hosted WordPress, there is no plan tier that blocks custom HTML.

How to add Google reviews to WooCommerce

Five steps. The first three happen in TrustGetter; the last two are in your WordPress admin, and step 4 branches depending on where you want the reviews.

Connect your Google business listing

Create a free account and search for your business by name, the way a customer would find you on Google Maps. We fetch your reviews once and serve every page view from our cache, so a product page under load never waits on Google.

Screenshot: searching for a business by name on the connect screen

Choose a layout that suits a shop

Nine templates across four layouts. A carousel or marquee reads well as a compact reviews badge near the add-to-cart button, where space is tight and the decision is being made; a grid suits a homepage or an about page where you have room for the fuller treatment.

Screenshot: the builder with a carousel template and the live preview

Save the widget and copy the embed code

Saving publishes the widget and generates its embed code — two short lines, with your own widget id in place of the example:

<div data-trustgetter-widget="your-widget-id"></div> <script src="https://trustgetter.com/widget.js" data-widget-id="your-widget-id" async></script>

Decide where the reviews go

One page — any theme. Edit the page, click the + button, add a Custom HTML block, and paste the code in. This is the right answer for a homepage trust section or an about page.

Every product page — block theme. Go to Appearance → Editor → Templates → Single Product, add a Custom HTML block below the product summary, and paste the code there. Every product using that template picks it up, including ones you add later.

Every product page — classic theme. Classic themes have no Site Editor, so the widget is attached to a WooCommerce hook instead. In a child theme's functions.php, hook your embed markup onto woocommerce_after_single_product_summary. Use a child theme rather than editing the parent, or a theme update will erase it.

Screenshot: the Site Editor with the Single Product template open

Save, then check a live product page

Click Update or Save and open a real product page in another tab. The block editor and the Site Editor both show the raw code rather than the rendered widget, so the storefront is the only place that tells you the truth.

Screenshot: the widget rendered under a product summary on the live store

Caching and optimisation plugins are the usual culprit. A WooCommerce store almost always runs one, and aggressive JavaScript minification or deferral can stop the embed from executing. If the widget does not appear on the live page, clear the cache first, and if it still does not, exclude trustgetter.com/widget.js from JavaScript optimisation in the plugin's settings.

Common WooCommerce questions

Does this replace WooCommerce product reviews?

No, and it is not meant to. WooCommerce product reviews are about an individual product; Google reviews are about your business as a whole. Most stores show both — product reviews on the product, and Google reviews as evidence that the shop behind it is a real business with a real reputation.

Will it slow my store down?

The widget is under 20 kB with no libraries and loads asynchronously, so it never blocks the page from rendering. The reviews are served from our cache rather than fetched from Google on each view, which is what keeps it steady on a product page taking real traffic.

Do I need a separate widget for each product?

No. One widget covers the entire store — the embed code is identical everywhere, so putting it in the Single Product template shows the same reviews on every product at no extra cost. You only need a second widget when you want a second, different design, such as a wide grid on the homepage and a narrow badge on products.

Will a theme update wipe it out?

Not if you used a Custom HTML block or the Site Editor — those are stored in your database, not in theme files. The only route with that risk is editing a parent theme's functions.php directly, which is why the classic-theme instructions above say to use a child theme.

Using something else?

The same widget and the same embed code work anywhere you can paste HTML. These guides give the exact menu names for each platform.

See all integrations Compare plans and prices

Show your Google reviews on your WooCommerce store.

Start free with one widget on one business. Connect your listing and see your real reviews in every template before you decide anything.