Display Intercom to logged in users
complete
Dan Guenther
Hi Memberstack,
I am in desperate need of a code snippet for Intercom Integration (Logged In vs Logged Out Users)
codebase = Webflow (HTML, CSS & JavaScript)
I cant imagine it being any more different to the code snippet for crisp chat integration.
Best regards, Dan
Naitik Mehta
complete
This can be accomplished with a JavaScript code snippet. 馃挴
Please refer to this article for more information.
Dan Guenther
Hi Naitik Mehta,
I feel that this resource should be included in Memberstack Dashboard/ Power Up section/ Integrations/ next to Crisp Chat Integration.
Naitik Mehta
Awesome, fixed! We added some more integrations along with it as well.
Thanks for the heads up Dan Guenther! 馃帀
Josh Lopez
Hey Dan, I believe you would need something like this:
<script>
MemberStack.onReady.then(function (member) {
if (member.loggedIn) {
window.intercomSettings = {
app_id: "YOURAPPIDHERE",
name: member["name"],
email: member["email"],
};
} else {
// member not logged in
}
});
</script>
Dan Guenther
Greetings Josh Lopez,
I eventually used Memberstacks Intercom (for logged in) to find the above resource, the irony :) thank you for the response either way!