Step-by-step guide
How to embed Trustpilot reviews on your website
To embed Trustpilot reviews you paste your Trustpilot profile URL into Reviews Widget, style the grid, then copy one script tag into your site. It works on every CMS because the widget renders inside a Shadow DOM.
Last reviewed by the Reviews Widget product team.
Step 1 — find your Trustpilot link
Everything starts with the public Trustpilot URL. There is no API key, no app install and nothing to configure on Trustpilot itself.
- 1Open trustpilot.com and search for your business.
- 2Open your public profile — the address bar reads trustpilot.com/review/<your domain>.
- 3Copy the whole URL.
- 4Paste it into Add source → Trustpilot in your dashboard.
https://www.trustpilot.com/review/yourdomain.com
Step 2 — build and embed the widget
- 1Create a free account. Sign up at reviewswidget.app and create your first grid. No card is needed to start.
- 2Add the review source. Open Add source in the left sidebar, choose the platform, then paste the listing URL. Reviews import within about a minute.
- 3Style the widget. Pick grid, masonry, list, carousel or floating star badge, then set colours, corner style, header text and how many words show before Read more.
- 4Copy the embed code. Open Add to your site and copy the single <script> tag. It renders inside a Shadow DOM so nothing inherits or leaks your site's CSS.
- 5Paste it into your website. Drop the script into any HTML block — WordPress Custom HTML, Shopify custom Liquid, Wix Embed HTML, Squarespace Code block, Webflow Embed, or straight into your template.
- 6Publish and check the stars. Publish the page, then run it through Google's Rich Results Test to confirm the Review and AggregateRating markup is valid.
Where to paste the script on each platform
| Platform | Where the embed code goes |
|---|---|
| WordPress | A Custom HTML block in Gutenberg, a Classic Editor text tab, or a sidebar HTML widget |
| Elementor | The HTML widget inside any section or column |
| Shopify | A custom Liquid section on the page or product template |
| Wix | The Embed HTML element (Embed a widget) in the Editor or Wix Studio |
| Squarespace | A Code block on 7.1, with Display Source unticked |
| Webflow | An Embed element in Designer, then publish |
| Plain HTML | Anywhere in the body — static sites, Astro, Next.js, Hugo, Eleventy or Jekyll |
The exact clicks for each builder are covered in the pillar embed guide — the steps are identical whichever review source you connected.
Step 3 — check your star markup
The widget emits Review and AggregateRating JSON-LD when schema is enabled for that widget. Reviews must be visible on the page for markup to be eligible, and Google decides whether to show a rich result. More detail in review schema explained and star rich snippets.
Before you publish
Connect only a listing you own or are authorised to represent. Reviews appear exactly as published, with the Trustpilot source badge and a link to the original review on every card. Trustpilot is a trademark of its owner; Reviews Widget is not affiliated with Trustpilot.
Sources & further reading
- Google Search Central — review snippet structured data — Self-serving review rules that apply to reviews shown on your own site
- Google Search Central — structured data general guidelines — What must be visible on the page for markup to be eligible
- Trustpilot — guidelines for businesses — Rules on displaying and attributing Trustpilot reviews