<script>
if(window.logged_in_user && window.logged_in_user['softr_user_email']) {
$crisp.push(["set", "user:email", window.logged_in_user['softr_user_email']]);
}
</script>
1 Like
To contextualize, this code snippet serves to improve the user experience by eliminating the need for users to manually enter their email address when using the crisp chat box within your softr web application. By doing so, the user doesn’t need to manually enter their email address when using the chat box.
2 Likes
Thanks for the provided details, @lea
This code worked for getting the authenticated user’s email.
How would I pull in their first name from Softr and display it in the chat box?