SwissTrustWidget
Integration

Embed Google Reviews via HTML – On Any Website

Display your Google reviews on any website — regardless of which CMS, hosting or programming language you use. One HTML code is all you need.

Not every website runs on WordPress, Wix or Shopify. Maybe you have a custom-built website. Maybe you use a niche CMS. Or maybe you manage clients with the most diverse setups as an agency. The good news: SwissTrustWidget works everywhere HTML is rendered. That's practically every website in the world. You copy a short script tag into your HTML code — done. No framework, no build tools, no dependencies.

1

Create Widget at SwissTrustWidget

Go to swisstrustwidget.ch and click "Create Widget". Connect your Google location, choose a template (badge, carousel, review cards, inline badge, trust pill). What works best depends on where you place the widget. Customise the design.

2

Copy Embed Code

Click "Copy Code". SwissTrustWidget generates a short script tag — that's the entire code. No CSS files, no additional dependencies. A single script tag.

3

Insert in Your HTML Code

Open your HTML file and insert the code: in the body at the desired location, in the footer for site-wide display, or in a container div for layout control. The widget renders automatically at the position of the script tag.

What the embed code looks like

HTML
<script src="https://cdn.swisstrustwidget.ch/widget.js"
  data-place-id="IHR_GOOGLE_PLACE_ID"
  data-template="badge-compact"
  data-theme="light">
</script>

Where to place the widget?

Home page (below the hero): A badge or trust pill directly below the headline. Visitors see within seconds that your business is rated. Contact page: Review cards or a carousel next to the contact form. Right where the enquiry decision is made. Footer (site-wide): A compact badge in the footer appears on every page. Subtle, but always present. About us page: An extensive widget with multiple reviews and authentic customer feedback. Landing pages: A widget near the call-to-action boosts conversion.

Troubleshooting: Widget not showing?

File uploaded? Make sure the updated HTML file is on your server. For SSGs (Hugo, Jekyll, Astro): re-run the build process. HTTPS active? The widget script loads via HTTPS. If your site still runs on HTTP, browsers block the script. Solution: enable SSL certificate. Content Security Policy (CSP): If you have a strict CSP, add cdn.swisstrustwidget.ch as an allowed script source. JavaScript disabled? The widget requires JavaScript. Under 2% of users have JS disabled. Server-Side Rendering (SSR): For Next.js, Nuxt, SvelteKit — the script must run in the browser, not on the server.

FAQ

Ready? Create Your Widget in 60 Seconds.

One script tag. Any website. Start for free.

Create widget