How to unset visitor name and email in chat window

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

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources



                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now