Install the Helptail JS Snippet

All features from Helptail are added by adding a tiny JS snippet onto your site. You can get started by including the base snippet as is. If you want to go more advanced, do check out the custom properties.

How to add the JS snippet?

On your settings you’ll find your customised JS snippet, ready to be added in your app.

<script>
  (function (w,d,s,o,f,js,fjs) {
    w['Helptail']=o;w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
    js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
    js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
  }(window, document, 'script', 'mw', 'https://cdn.helptail.com/v1/embed.js'));
  mw('init', { publicKey: 'YOUR-PUBLIC-KEY' });
</script>

Above snippet is the same for every Helptail customer, except the publicKey. The snippet you copy from your settings has this key already added for you. You should add the snippet just before the </body> tag on every page you (might) want to add a stream to.

Where and how to exactly add this snippet, depends on the tools you use to build your site or app.

If you need any help with adding your JS snippet, feel free to reach out.