Identifying users lets you personalize the experience for each user and always show the right information for them even if they use a different device or browsers.
With the identity API you can accomplish that. You only need to send the user id in the following way:
<script>
window.helppierIdentify = {
userId: "", // unique id or user email
// other user properties (any key/value pair)
};
// Helppier's code snippet
</script>
Example:
<script>
window.helppierIdentify = {
userId: "123456789", // unique id or user email
name: "Alessandro",
country: "Italy"
};
var script = document.createElement('script');
script.setAttribute('src',
'http://localhost:3000/widget/js/start.js?help_company_key=xxxxxxxxxxxxxxx');
script.setAttribute('id', 'helppierEmbed');
script.setAttribute('defer', '');
document.head.appendChild(script);
</script>
After this configuration Helppier will use it to see if specific content (guides, notifications, tooltips, NPS, or any other in-app messages) was already showed or not to the user.
It will also allow you to personalize your guides, tooltips, hotspots, or any other in-app messages by inserting the user properties with curly braces.
Example:
Welcome {{name}}
Note: If the user property is not found, Helppier fallback is to replace it with an empty string.
Comments
0 comments
Please sign in to leave a comment.