How to embed Trustpilot widget into your website

Search

How to embed Trustpilot widget into your website

Framer offers a built-in component, but you can also use a design from Trustpilot. To add it to your website, follow the instructions provided.

Add the first Trustpilot script to the custom code section, placing it at the start of the <head> tag in your site's general settings.

<!-- TrustBox script -->
<script type="text/javascript" src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js" async></script>
<!-- End TrustBox script -->

Copy the second script from your Trustpilot account and paste it into a text editing tool like TextEdit on Apple or Notepad on Windows. Then, copy the IDs from the Trustpilot script.

  • data-template-id (e.g 5407e68dz0d06a09e041d5km

  • data-businessunit-id (e.g 5c09c4742068df0001rrfd35)

Copy the script below into another text editing tool, and then add your data template ID and business unit ID to their respective fields.

<!-- TrustBox widget - Horizontal -->
<div id="trustbox" class="trustpilot-widget" data-locale="en-US" data-template-id="your-data-template-id" data-businessunit-id="your-business-unit-id" data-style-height="28px" data-style-width="100%" data-theme="light">
  <a href="https://www.trustpilot.com/review/possiblefinance.com" target="_blank" rel="noopener">Trustpilot</a>
</div>
<script>var trustbox = document.getElementById('trustbox');
 window.Trustpilot.loadFromElement(trustbox);</script>
<!-- End TrustBox widget -->

Next, navigate to the Insert menu and search for "embed". Then, drag the component onto the canvas.

Finally, add all the code to the HTML tab of the embed component.

Still experiencing the issue after following the steps above? Create a support ticket in the Community.