Initialization

If you want to install Trustisto on your website, there is a need to embed some JavaScript code on it. The most important script is the main script which downloads and initialize our library.

The main script look like this:

<script>
  (function(a,b,c,d,e,f,g,h,i){
  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-CODE-###")
</script>

Look carefully, there is a line that holds you Website ID:

SP.init("###-WEBSITE-CODE-###")

Website ID is an identifier that Trustsito assigns to your website when you add it to our system.

This snippet should be placed at the end of <body> tag on each page where events can occur or you want to display notifications.

There is no need to place this code on other pages.

Next step >> Saving events

results matching ""

    No results matching ""