Passing only name and will not work if “Secure JavaScript API” option enabled. If you want to work with secure mode then you will need to supply the calculated hash value in this function too.

To disable secure mode login into tawk.to and in Admin >> Property Settings >> Secure JavaScript API >> Disable

After this setting passing visitor name and value will work.

var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();

Tawk_API.visitor = {
 name  : 'Name',
 email : 'test@email.com'
 };
 (function(){
 var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
 s1.async=true;
 s1.src='https://embed.tawk.to/xxxxxxxxxxxxxxxxxxxx/default';
 s1.charset='UTF-8';
 s1.setAttribute('crossorigin','*');
 s0.parentNode.insertBefore(s1,s0);
 })();

2,982 total views, 1 views today

Failed to set Visitors name and mail in tawk.to chat
Tagged on:         

Leave a Reply

Your email address will not be published. Required fields are marked *