eTrusted Review Widget

On this page:

  • Learn how to integrate the eTrusted widget into your own HTML website
  • Display reviews with our widget

You will need:

You have your carefully and well designed website and now you want to also integrate eTrusted? Luckily, we have an easy and flexible widget integration for you. All you need for our widget is an HTML div element. You are completely free in terms of placement.

Additionally, you will never have to change your integration. Trusted Shops maintains the widget implementation and you just reference it.

It's really as simple as that!

Javascript

There is a Javascript file publicly available to support our review widget. Reference it in the <head> section your HTML source like so:

<head>
    <script type="text/javascript" src="https://widgets.etrusted.com/platform/1.0/platform.js"></script>
</head>

Widget div

To include the widget, add the class etrusted-widget and the parameter data-etrusted-widget-id to the div-element where you want to display our widget like so:

<div class="etrusted-widget" data-etrusted-widget-id="e66ec20c-5b51-4420-8ba5-d82cbdb102b3"/>

Sample Integration

Here is a minimum working example with an example widget ID:

<html>
    <head>
        <script type="text/javascript" src="https://widgets.etrusted.com/platform/1.0/platform.js"></script>
    </head>
    <body>
        <div class="widget-wrapper">
            <h2 class="widget-title">My widget</h2>
            <div class="etrusted-widget" data-etrusted-widget-id="e66ec20c-5b51-4420-8ba5-d82cbdb102b3"/>
        </div>
    </body>
</html>

Note that you can add HTML as you like around your widget div. In the example, we used a wrapper-div and added an h2-title to the widget.