Memberstack

In all pages where you've added the Memberstack script, add the following script tags (taking care to replace INSERT_API_KEY_HERE with your API key):

<script>!function(){var e=window.Cohere=window.Cohere||[];if(e.invoked)console.error("Tried to load Cohere twice");else{e.invoked=!0,e.snippet="0.2",e.methods=["init","identify","stop","showCode","getSessionUrl","makeCall","addCallStatusListener","removeCallStatusListener","widget"],e.methods.forEach(function(o){e[o]=function(){var t=Array.prototype.slice.call(arguments);t.unshift(o),e.push(t)}});var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://static.cohere.so/main.js",o.crossOrigin="anonymous";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(o,t)}}();</script>
<script>window.Cohere.init("INSERT_API_KEY_HERE");</script>
<script>
MemberStack.onReady.then(member => { if (member.loggedIn) { Cohere.identify(member.id, { displayName: [member.fname, member.lname].filter(Boolean).join(" "), email: member.email }); }});
</script>

Cohere should now be working on your site after a refresh, and logged in users will be identified inside the dashboard.