Copy and paste this code below your Memberstack and Crisp scripts, but just above the "</body>" tag.

Delete "name" and replace it with the field ID from a custom field from your Memberstack account.

 MemberStack.onReady.then(function(member) {  
   var email = member["email"]
   var name = member["name"]  
   if (member.loggedIn) {
    try {
     $crisp.push(["set", "user:email", [email] ])
     $crisp.push(["set", "user:nickname", [name] ])
    } catch(e) {}

Need more help? Try posting a question in our community.

Did this answer your question?