What is Heap?

Heap.io gives you a complete dataset of every interaction with your product. Every click. Every tap. Every swipe. There’s no code to implement, and no need to decide in advance what to track.

Add this code below your Memberstack and Heap scripts.

Copy the code below and paste it above the  tag in your website code. Remove or replace the "userProperties" with fields IDs from your Memberstack account.

<script>
 MemberStack.onReady.then(function(member) {
   if (member.loggedIn) {
     try{
       const userProperties = {
         'Name': member["name"],
         'Email': member["email"],
       }
       heap.identify(member["email"])
       heap.addUserProperties(userProperties)
     } catch(e) {
       console.log(e)
     }
   }
 })
</script>


Need more help? Try posting your question in our community forum.

Did this answer your question?