Integrations

  1. Home
  2. Docs
  3. Integrations
  4. Tawk.to Integration

Tawk.to Integration

Tawk.to is a Web Chat platform that allows site users to communicate instantly with your business. You can integrate Tawk.to with WhatConverts easily.

1Copy your Tawk.to integration code. It should look similar to this:

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

2Paste the following into the Tawk.to Widget Code:

Tawk_API.onChatEnded = function(){
wc_chat_ypbib("Chat","New Chat Session");
};

Your new Tawk.to Widget Code will look like this

<!--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/5aa6d1134b401e45400da8f5/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
Tawk_API.onChatEnded = function(){
wc_chat_ypbib("Chat","New Chat Session");
};
</script>
<!--End of Tawk.to Script-->

This will trigger a new Chat Lead in WhatConverts when someone initiates a chat.

    Note: If a customer leaves the page before the chat session has ended, WhatConverts will not track the chat. You can change the “Tawk_API.onChatEnded” to “Tawk_API.onChatStarted” however, this change will trigger a tracked chat when you (or the client) initiates a chat with someone browsing the page (who may not respond to the chat).