Tawk.to backend snippet
-
Hi, I would like to include chat popup on my website backend only and so far I have difficulty doing that, can someone explain how I should amend this 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/[CHATIDCODE]/default'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script> <!--End of Tawk.to Script-->
At this moment when I try to strip
<!--Start of Tawk.to Script--> <script type="text/javascript">
and
</script> <!--End of Tawk.to Script-->
I’m getting error: “The snippet has been deactivated due to an error on line 1:
syntax error, unexpected ‘var’ (T_VAR)”I would really appreciate if someone could help me.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Tawk.to backend snippet’ is closed to new replies.