Insert tawk.to widget js code


(Mike) #1

I try inserting the widget code vrom tawk.to according to the instructions
But inserting the code

<!--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/589b3d0a55c2fd09f84ae094/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->

in /body dosen’t work. Anybody have an idea why?


(Daniela) #2

Yep, wrong place. You need to insert the code in <Head> as the documentation said:

5. Paste the code into your websites HTML (just before the </body> tag)

before the body tag (not in the body tag)