How to unset visitor name and email in chat window
Hello,
I am working on an application where I want to fill in the visitor name and email automatically when a user logs into the app. This works fine. However, after logging out the visitor information should be cleared from the chat window. Since it is an SPA there is no reloading of the Zoho SalesIq JavaScript and the visitor information needs to be unset manually via javaScript. If I try to pass an empty string or null or undefined (like so $zoho.salesiq.visitor.name('')) it won't work. I have already debugged it a bit and realized that the _.notifier.updateInfo does not update the value if it is empty. I could not find any solution to unset the visitor information.
Is that possible with the Visitor API and Zoho SalesIq and how can it be done?
Thanks for your help in advance!
Best regards,
Jürgen