Using Memberstack 2.0? There is an updated version of this article here.
Automatically pass a member's information into Crisp to track conversations, usage, etc.
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.
<script>
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) {}
}})
</script>
Need more help? Try posting a question in our community.
Comments
0 comments
Please sign in to leave a comment.