Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Trustpilot widget blank or not loading: how to find and fix it

OPS-230Low impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Trustpilot shows reviews on your site through a small embed called a TrustBox. It has two parts: a div with class="trustpilot-widget" and data attributes, and a script (the bootstrap, loaded from widget.trustpilot.com) that fills the div with stars and review text.

Why it costs you leads or sales

Reviews are social proof. They matter most near a form, a price or a buy button, where visitors decide whether to trust you. A blank widget removes that reassurance and leaves an odd gap in the layout. The direct impact is usually small, which is why this issue is rated low, but it is easy to miss and easy to fix. On pages with a lot of paid traffic, even a small drop in trust can add up.

How a blank widget happens
  1. Page loadsHTML contains the TrustBox div
  2. Bootstrap scriptBlocked, failed or missing
  3. Reviews renderDiv stays empty
  4. Visitor trustNo social proof near the CTA

The page works, but the proof never appears.

How to check if your site has it

Check the widget in a few minutes
  1. Look in a clean browser

    Open the page in a private window with extensions off. Scroll to the widget. If it is empty, continue.

  2. Open the browser console

    Press F12, open Console and reload. Look for errors mentioning trustpilot, a blocked request or a Content Security Policy message.

  3. Check the Network tab

    Filter by 'trustpilot'. The bootstrap script (tp.widget.bootstrap.min.js) should return status 200. Failed or blocked requests point to a blocker, consent tool or firewall.

  4. Inspect the div

    Right-click the empty area and choose Inspect. Confirm data-businessunit-id and data-template-id are present and not empty or still placeholders.

  5. Test with and without consent

    Reject cookies and reload, then accept and reload. If the widget only shows after accepting, your consent setup is blocking it.

Common causes of a blank Trustpilot widget
CauseWhat you seeFix
Script not loadedNo request to widget.trustpilot.comAdd or restore the bootstrap script
Wrong or missing business unit IDScript loads, box stays emptyCopy the embed code again from Trustpilot
Consent tool blockingShows only after accepting cookiesAllow the script or categorise it correctly
Content Security PolicyConsole error about blocked sourceAllow widget.trustpilot.com in script-src and frame-src
Caching or minify/defer pluginWorks for admins, fails for visitorsExclude the script from optimisation
Trustpilot outage or plan changeConsole shows failed requests from TrustpilotCheck Trustpilot status and your plan

How to fix it

Start by copying a fresh embed code from your Trustpilot Business account (Integrations, then TrustBoxes, then your widget). That removes typos and old IDs. Then follow the steps for your platform.

Typical TrustBox embed (replace the IDs with your own)html
<!-- TrustBox script -->
<script type="text/javascript" src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js" async></script>
<!-- End TrustBox script -->

<!-- TrustBox widget -->
<div class="trustpilot-widget" data-locale="en-US" data-template-id="YOUR_TEMPLATE_ID" data-businessunit-id="YOUR_BUSINESS_UNIT_ID" data-style-height="24px" data-style-width="100%">
  <a href="https://www.trustpilot.com/review/yourdomain.com" target="_blank" rel="noopener">Trustpilot</a>
</div>
<!-- End TrustBox widget -->
Fix by platform
  1. Re-add the embed

    Paste the TrustBox div into a Custom HTML block, and the script into your header via a header/footer plugin or your theme settings.

  2. Exclude from optimisation

    In your caching or performance plugin, exclude widget.trustpilot.com from JavaScript delay, defer and combine options, then clear the cache.

  3. Check the Trustpilot plugin

    If you use the official Trustpilot plugin, reconnect it and confirm your business is linked.

How to confirm it's fixed

Confirmation checklist
  • Widget shows stars and review text in a private window
  • Network tab shows the bootstrap script returning 200
  • No Trustpilot errors in the console
  • Widget shows on mobile as well as desktop
  • Widget shows with cookies rejected, if that is your intent
  • Widget still shows after clearing your site cache

How to prevent it happening again

Fragile vs resilient setup

Fragile

  • Widget code pasted once and never rechecked
  • Script delayed by a performance plugin
  • No fallback if Trustpilot is slow or down
  • Nobody looks at the page after theme or plugin updates

Resilient

  • Embed copied fresh from Trustpilot after changes
  • Script excluded from delay and combine rules
  • Text link to your Trustpilot page inside the div as fallback
  • Scheduled checks that the widget renders

Put a plain link inside the widget div, as in the snippet above. If the script fails, visitors still see a link rather than empty space. Recheck the widget after theme changes, cache or optimisation plugin updates and consent banner changes.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor loads your pages on a schedule, from the EU or the US, and checks whether the Trustpilot widget renders. If it stays blank, the failure is re-checked from a second region before one alert goes out (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause.

Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent). It does not bypass consent banners or bot protection, so what it sees reflects a normal first-time visitor. The Free plan covers 1 site and 2 journeys with daily checks and no card, and 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?

Usually the Trustpilot bootstrap script did not load, or the business unit ID in the widget is wrong or missing. Other common causes are a consent tool blocking the script, a Content Security Policy, or a caching plugin delaying JavaScript. Check the browser console and Network tab to see which one applies.

Why does my Trustpilot widget show an empty box?

An empty box means the div is on the page but the script did not fill it. Inspect the div and confirm data-businessunit-id and data-template-id are real values, then check that the script request to widget.trustpilot.com returns status 200.

How do I fix a Trustpilot widget on WordPress?

Copy a fresh embed from your Trustpilot Business account and paste it into a Custom HTML block, with the script in your header. Then exclude widget.trustpilot.com from JavaScript delay, defer and combine settings in your caching plugin and clear the cache.

Can a cookie banner stop the Trustpilot widget from loading?

Yes. If your consent tool blocks the Trustpilot script until visitors accept, anyone who declines sees a blank widget. Decide whether the script should load before consent in your setup, and add a text link fallback inside the widget div.

Can a Content Security Policy block Trustpilot reviews?

Yes. If your CSP does not allow https://widget.trustpilot.com in script-src and frame-src, the browser blocks the widget and logs an error in the console. Add the needed Trustpilot sources to your policy and reload.

Why does the Trustpilot widget work for me but not for visitors?

You may be logged in, have cached files, or use a browser without the blocker or consent state your visitors have. Test in a private window, on mobile and with cookies rejected. Caching and minify plugins are a frequent cause.

How can I be alerted when my Trustpilot widget goes blank?

Use a synthetic monitor that loads your page on a schedule and checks the widget renders. FunnelGuard does this and sends one alert with a screenshot and a likely cause after re-checking from a second region.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.