Refactoring Crisp Code to MS2.0 Answered
Hey team can I get a little help refactoring this code for MS2.0?
<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] ])
profitwell('start', { 'user_email': email });
} catch(e) {
}
}
})
</script>
Comments
3 comments
try this:
Thanks, Josh! I'll give it a try.
Josh-Lopez
any chance you can change this to MS 2.0 code?
Please sign in to leave a comment.