Home Forums Basel support forum Basel: what's the best place to put JS for Chat?

Basel: what's the best place to put JS for Chat?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #191503

    oleg_dmitriev
    Participant

    He Elise,

    I am thinking to install “Chat” provided by tawk.to. For this I need to add a script to all pages of the site. I was thinking to either add a snippet to “front end” or a Widget, to the widget area.

    What is the best method?

    (here is the cript to be added)
    <!–Start of Tawk.to Script–>
    <script type=”text/javascript”>
    var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
    (function(){
    var s1=document.createElement(“script”),s0=document.getElementsByTagName(“script”)[0];
    s1.async=true;
    s1.src=’https://embed.tawk.to/5e92f13d69e9320caac2c6d9/default&#8217;;
    s1.charset=’UTF-8′;
    s1.setAttribute(‘crossorigin’,’*’);
    s0.parentNode.insertBefore(s1,s0);
    })();
    </script>
    <!–End of Tawk.to Script–>

    #191680

    Hello,

    The custom JS can be inserted in the Theme Settings > Custom JS.

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)