I have added this script as a test and i can get icon badge, not sure how i can pull the record count of unread messages
with JS to set this? Any Ideas?
Thanks,
‘’‘’
I have added this script as a test and i can get icon badge, not sure how i can pull the record count of unread messages
with JS to set this? Any Ideas?
Thanks,
‘’‘’
Any one have a direction they can point me in?
Thanks
Any one have a direction on how i can accomplish this. I have the code to show count but need to get value from noloco to update number. If i could use something like {member.id/new.message.count}
Hey @rjp
Great that you’ve figured out the custom code to do this, it would be great to share it.
In terms of getting values from the user with JavaScript
Our Intercom guide explains how you can do that when the user is loaded
<script type="text/JavaScript">
function setIntercomSettings(user) {
console.log('User', user);
window.Intercom('update', {
app_id: APP_ID,
id: user.id,
name: user.firstName + " " + user.lastName,
email: user.email,
company: user.company.companyName,
// Add other values here
});
}
window._NolocoOnLoadUser = setIntercomSettings;
</script>
You can then access any of the user properties that are loaded in that function