Note: This article applies to customers that use Legacy Zendesk Chat only (without Support). To identify which Chat version to use, see the article: Determining your Zendesk Chat account version. For customers that use the Web Widget, see the article: How do I prefill the user contact form in the Web Widget?
Question
When customers are signed in on my website, I want the Chat widget to capture the user's name and email address. How do I capture the user's name and email address for the Chat widget?
Answer
The Chat widget does not automatically capture the user's name and email address when they log in to your website. Use the Chat API to send the name and email address to the Chat widget. To know more about how to identify users in the Chat widget, see the developer article: Identifying visitors.
Another workaround is to use user authentication. For more information about authenticated visitors for the Chat widget, see the article: (Legacy Chat) Enabling authenticated visitors in the Chat widget.
2 Comments
Hi there, I have a question.
Visitors that visit our website should input their email manually upon initiating the chat widget however recently we've had the email addresses pre-filled under the [Email] section of the built-in chat widget. However these email addresses do not actually belong to the actual visitors themselves but rather random email addresses pre-filled that may have been from our existing client database from Zendesk Support.
Please assist to investigate if this a system bug from your end? Hoping to hear from you soonest
Thank you
Regards
Jee Han
Hey Jee,
It looks like one of our agents replied to a ticket you created with us but was unable to replicate this issue. Are you still running into issues with this on your end?
Please sign in to leave a comment.