Set up manual control for Tawk (tawk.to) live chat

Modified on Fri, 30 Aug, 2024 at 10:22 AM

If you are having difficulty getting Usercentrics to control the live chat script for tawk.to, try updating the tawk.to script so to set up the Usercentrics manual control feature.


So for example, if this is what your tawk.to script looks like:


<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/XXXXXXXXXXXXX/default';


      s1.charset = 'UTF-8';


      s1.setAttribute('crossorigin', '*');


      s0.parentNode.insertBefore(s1, s0);

    })();


</script>


You want to update the script to include the manual control feature:



So the new script will look like this: 

<script type="text/plain" data-usercentrics="tawk.to">

    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/XXXXXXXXXXXXX/default';


      s1.charset = 'UTF-8';


      s1.setAttribute('crossorigin', '*');


      s0.parentNode.insertBefore(s1, s0);

    })();


</script>


If you have any questions or issues, please contact support (and please include screenshots or a screen recording so we can see the issue as well as a visual for how you updated the script in the backend of your website). 







Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article