The JS SDK was designed to help customers on your application submit feedback on your FeatureOS page without having to login. This does not require any external SSO client to integrate.
Before you integrate the SDK, ensure that your application has an SSL certificate (https instead of http). Further, the SDK will not work on incognito browsers.
Add your FeatureOS page link anywhere thatās easy for your customers to find on your application, such as the header, footer or menu sidebar. Use a clear CTA to encourage customers to submit posts.
The SDK helps us identify your customers when they navigate from your application to FeatureOS. Any posts, comments or votes made by your customer will now be tied to their FeatureOS account, without them having to log in.
Note that we will only identify customer accounts (those present in your āAll Customersā page) to prevent malicious access.
Navigate to Organization Settings ā Advanced ā JS SDK, copy and paste the JS snippet onto your application.
Your SDK will look something like this,
<script src="https://feedback.FeatureOS.co/hellonext.js"></script>
<script>
hellonext("init", {
appId: "3972xxxxxxxxxxxxxxxx8831bf",
domain: "feedback",
user: {
email: "[email protected]",
name: "Swaathi Kakarla",
custom_fields: {
"City": "Chennai",
"Favorite Food": "French Fries"
}
}
})
</script>
The SDK passes the following user identification over to FeatureOS, which will need to be configured for every authenticated user on your application,
Email Address
Name
Custom Attributes
If an email address does not exist on FeatureOS, we will create an account for that user with the email and name attribute. However, if the account already exists, we do not update the userās name.
Custom attributes can be used to provide additional information such as the subscribed plan, region and more. You can pass any key-value data. This data will then be across your FeatureOS account for you to organize and manage feedback easily.
Reach out to our support at [email protected] or submit a request on our support board! š
Swathy