Main Code

How to add the floating trustmark and main code to your website.

The main code allows you to automatically display the floating trustmark and manually add inline trustmarks across you sites. We recommend adding the code before the closing </body> tag in your footer template file.

<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>

When adding a new site to your account, you'll need to add this code to the home page for verification that it is installed.

Optional Parameters

You can set the position of the trustmark from your TrustedSite dashboard. However, if you'd like to programmatically modify the trustmark position or test it on non-certified site (demo trustmark), you can use the following parameters.

<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js?demo=1&postion=bottomLeft&offset=15" async></script>
Parameter
Required
Value

demo

No

1 = demo mode (For use in an editor or non-certified site)

position

No

bottomLeft or bottomRight

offset

No

Pixel offset from edge of screen. If tm_position is set, this defaults to 0. We recommend 15.

Last updated

Was this helpful?