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.
- Page loadsHTML contains the TrustBox div
- Bootstrap scriptBlocked, failed or missing
- Reviews renderDiv stays empty
- Visitor trustNo social proof near the CTA
The page works, but the proof never appears.
How to check if your site has it
Look in a clean browser
Open the page in a private window with extensions off. Scroll to the widget. If it is empty, continue.
Open the browser console
Press F12, open Console and reload. Look for errors mentioning trustpilot, a blocked request or a Content Security Policy message.
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.
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.
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.
| Cause | What you see | Fix |
|---|---|---|
| Script not loaded | No request to widget.trustpilot.com | Add or restore the bootstrap script |
| Wrong or missing business unit ID | Script loads, box stays empty | Copy the embed code again from Trustpilot |
| Consent tool blocking | Shows only after accepting cookies | Allow the script or categorise it correctly |
| Content Security Policy | Console error about blocked source | Allow widget.trustpilot.com in script-src and frame-src |
| Caching or minify/defer plugin | Works for admins, fails for visitors | Exclude the script from optimisation |
| Trustpilot outage or plan change | Console shows failed requests from Trustpilot | Check 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.
<!-- 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 -->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.
Exclude from optimisation
In your caching or performance plugin, exclude widget.trustpilot.com from JavaScript delay, defer and combine options, then clear the cache.
Check the Trustpilot plugin
If you use the official Trustpilot plugin, reconnect it and confirm your business is linked.
Check the app or theme code
If you use the Trustpilot app, open it and confirm it is connected. If you pasted code, open Online Store, Themes, Edit code and check the script is in theme.liquid.
Check the section is enabled
In the theme editor, make sure the section holding the widget is visible on the page template.
Check the tag
If you load the bootstrap through a Custom HTML tag, confirm it is published and its trigger fires on the right pages.
Check consent settings
Review the tag's consent settings so it is not waiting for a consent type that is never granted.
Use an Embed element
Add the TrustBox div in an Embed element and the script in Project Settings, Custom Code, Head Code. Publish the site.
Test the live site
Embeds often look empty in the Designer. Check the published URL.
Use an Embed code element
Add an Embed HTML element and paste the full TrustBox code, script included. Publish and test on the live site.
Use a Code block
Add a Code block with the full embed. Turn off Display Source. Code injection and Code blocks may need a plan that allows custom code.
Allow Trustpilot in your CSP
If you send a Content-Security-Policy header, add https://widget.trustpilot.com to script-src and frame-src, and the image and frame hosts Trustpilot's widget uses.
Load the script once
Make sure the bootstrap loads once, and that single-page app routes call window.Trustpilot.loadFromElement(element) after the div is added.
How to confirm it's fixed
- 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
- 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.
Related issues
- OPS-231Analytics/GTM endpoint blocked or downFix guide
- OPS-219Google Fonts / font CDN outage (invisible text)Fix guide
- OPS-220jQuery/CDN library outageFix guide
- OPS-233Third-party status changes not correlated with incidentsFix guide
- OPS-223Video host (Vimeo/Wistia/YouTube) VSL won't playFix guide
- OPS-222reCAPTCHA/hCaptcha service outageFix guide