Initialization

Initialization

To install Trustisto on your website please embed this code:

HTML
<script>
  (function(a,b,c,d,e,f,g,h,i){
    if(a.SP){return}
    h=a.SPT={u:d},a.SP={init:function(a,b){h.ai=a;h.cb=b},
    go:function(){(h.eq=h.eq||[]).push(arguments)}},
    g=b.getElementsByTagName(c)[0],f=b.createElement(c),
    f.async=1,f.src="//js"+d+e,i=g.parentNode.insertBefore(f,g)
  })(window,document,"script",".trustisto.com","/socialproof.js");
  SP.init("WEBSITE_ID");
</script>

Make sure to replace WEBSITE_ID with your Website ID.

To start using Trustisto you need to embed our initialization snippet on your website.

You can put this code before </body> (end body tag) or you can put it inside your Tag Manager.

You can find your Website ID here: How to find website ID?

To identify users with your own customer data (e-mail, phone, name), see Save Client. If your website uses a cookie consent banner, see Cookie Consent.

To run your own code once the library is loaded, pass a callback as the second argument of SP.init(), see Init Callback.