Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Trustpilot widget not showing: how to find and fix it

PRF-102Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A TrustBox is the widget Trustpilot gives you to show your star rating or reviews on your own site. It has two parts: a small script from Trustpilot's servers, and an HTML block (a div with a trustpilot-widget class and data attributes) that the script fills in.

The issue is when that fill-in never happens. You see an empty gap, a loading placeholder that never goes away, a link with no stars, or nothing at all.

Why it costs you leads or sales

Reviews sit near the decision point: on product pages, pricing pages and landing pages. When they vanish, visitors lose a trust signal right where they decide whether to buy or fill in a form. Worse, you usually do not notice, because nothing looks like an error to you.

The effect is usually modest rather than catastrophic, which is why it can run for weeks. A blank box can also make a page look unfinished.

Where a TrustBox breaks
  1. Page loadsHTML and your content appear
  2. Trustpilot scriptBlocked, delayed or placed wrongly
  3. Widget rendersStars and reviews never appear
  4. Visitor trustNo social proof near the CTA

The page loads, but the review widget never renders, so the trust signal is missing at the decision step.

Common causes

Typical reasons a TrustBox does not render
CauseWhat you seeWhere to look
Script blocked by ad blocker, privacy tool or consent bannerEmpty gap, only for some visitorsConsole and Network tab
Script placed after the widget runs, or removed by a minify or delay pluginWidget never initialisesPage source, optimisation plugin settings
Wrong or missing data attributes (template ID, business unit ID)Empty box or error inside the boxEmbed code vs Trustpilot Business
Content Security Policy blocks Trustpilot domainsConsole CSP errorResponse headers
Widget hidden by CSS, tabs or a lazy-loaded sectionZero-height boxInspect element
Trustpilot profile has too few reviews or widget type needs reviews that do not match filtersEmpty render though script loadedWidget settings in Trustpilot

How to check if your site has it

Check the widget in your browser
  1. Open the page in a private window

    Use a fresh window with extensions off, so ad blockers do not hide the cause.

  2. Look for the widget

    Scroll to where the TrustBox should be. Note whether it is blank, shows a placeholder or is missing.

  3. Open DevTools and the Console

    Press F12 (or Cmd+Option+I on Mac). Look for red errors mentioning trustpilot, widget.trustpilot.com or Content Security Policy.

  4. Check the Network tab

    Reload and filter by 'trustpilot'. The script (usually tp.widget.bootstrap.min.js from widget.trustpilot.com) should return status 200. Blocked, failed or missing means the script is the problem.

  5. Inspect the widget element

    Right-click the gap, choose Inspect, and find the div with class trustpilot-widget. If it contains an iframe, the script ran. If it is empty, the script did not initialise it. If the iframe exists but is blank, check the widget settings.

  6. Test with extensions and consent

    Repeat with your ad blocker on, and with cookies declined in your consent banner, to see whether the widget depends on either.

How to fix it

Start by re-copying the embed code from your Trustpilot Business account (the Widgets or TrustBox area). Old or hand-edited snippets are the most common cause. Then place it as shown below.

Typical TrustBox structure (copy your own IDs from Trustpilot)html
<!-- TrustBox script: load once, ideally in <head> -->
<script type="text/javascript" src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js" async></script>

<!-- TrustBox widget: place where you want it to appear -->
<div class="trustpilot-widget" data-locale="en-GB" data-template-id="YOUR_TEMPLATE_ID" data-businessunit-id="YOUR_BUSINESSUNIT_ID" data-style-height="24px" data-style-width="100%">
  <a href="https://uk.trustpilot.com/review/yourdomain.com" target="_blank" rel="noopener">Trustpilot</a>
</div>
Fix the embed on your platform
  1. Re-add the embed

    Paste the widget div into a Custom HTML block, or use Trustpilot's own plugin if you already use it. Put the script in the header via your theme or a header-scripts plugin.

  2. Exclude it from optimisation

    In your caching or performance plugin (for example minify, defer or delay JavaScript options), exclude widget.trustpilot.com from being delayed, combined or removed, then clear the cache.

Broken vs fixed TrustBox

Broken

  • Empty gap above the call to action
  • Script delayed or removed by an optimisation plugin
  • Console shows blocked or failed Trustpilot request

Fixed

  • Stars and review count render on load
  • Script returns status 200 and is excluded from delay rules
  • Widget iframe present inside the trustpilot-widget div

How to confirm it's fixed

Confirmation checklist
  • Widget visible in a private window with extensions off
  • Trustpilot script returns 200 in the Network tab
  • No Trustpilot or CSP errors in the Console
  • An iframe exists inside the trustpilot-widget div
  • Widget shows after accepting and after declining cookies, if you intend it to
  • Checked on mobile width and on every template that uses it (home, product, landing)
  • Cache cleared and live page rechecked

How to prevent it happening again

Prevention habits
  • Keep one copy of the embed code, copied from Trustpilot, in your documentation
  • Re-test the widget after theme, plugin, caching or consent banner changes
  • Exclude widget.trustpilot.com from JavaScript delay and minify rules
  • Review your CSP whenever you add or change third-party tools
  • Give the widget a fixed minimum height so a failure does not shift your layout
  • Add a manual monthly check of your top pages that show reviews

How FunnelGuard handles this

FunnelGuard covers this issue partly. As a robot visitor runs your real journeys on a schedule, it can detect when the Trustpilot script fails to load. When that happens and the failure is confirmed from a second region, you get one alert with a screenshot and a likely cause.

What it does not detect is an empty render: a case where the script loads fine, but the widget shows no stars or reviews (for example because of wrong settings or filters). It also will not tell you whether the widget looks right for visitors using ad blockers.

The Free plan includes 1 site and 2 journeys with daily checks and no card. Paid plans have a 3-day free trial. A free read-only website audit is also available.

Questions people ask

Why is my Trustpilot widget not showing on my website?

The most common reasons are a blocked or delayed Trustpilot script, a performance plugin that removes or defers it, wrong template or business unit IDs, or a Content Security Policy that blocks the domains. Open the browser console and Network tab to see which one applies.

Why does my Trustpilot widget show an empty box?

An empty box usually means the script loaded but has nothing to display. Check the template ID, business unit ID, language and any review filters in your Trustpilot Business account, and inspect whether an iframe exists inside the widget div.

Do ad blockers hide the Trustpilot widget?

Some ad blockers and privacy tools can block third-party widget requests, so some visitors may see a gap. Test with an ad blocker on, and give the widget a fixed height or a plain text fallback link so the layout still looks fine.

How do I add the Trustpilot widget to WordPress or Shopify?

Copy the embed code from your Trustpilot Business account. On WordPress, paste the widget div into a Custom HTML block and load the script in the header. On Shopify, add the script to theme.liquid and the div to the relevant section.

Why does the Trustpilot widget work in some pages but not others?

The script may only be loaded on some templates, or the widget is inside a tab, slider or popup that is created after the script runs. Make sure the script loads on every template and re-initialise the widget with Trustpilot.loadFromElement for dynamic content.

Can a cookie banner stop the Trustpilot widget from loading?

Yes, if you load the script through a tag manager or consent tool that waits for consent, it will not run until the visitor accepts. Decide whether the widget should wait, and test both accept and decline paths.

Can FunnelGuard tell me when my Trustpilot widget breaks?

Partly. FunnelGuard detects when the Trustpilot script fails to load, but it does not detect a widget that loads and renders empty. Check the widget manually on key pages to cover that gap.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: if script fails; empty render not.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.