π§ Looking for Developer Docs and REST API info? Go here: Developer Docs
What is the JavaScript SDK?
The standard Userback widget works out of the box. Simply install the snippet to your site and your users can submit feedback straight away.
The JavaScript SDK gives you advanced control over how Userback behaves inside your site: who sees the widget, when it appears, what data gets attached to each piece of feedback, and how it fits into your site's look and feel. Think of it as the layer that makes Userback feel completely native to your site, rather than a third-party tool sitting on top of it.
What you can do with the JavaScript SDK
Here are the most powerful capabilities your development team can unlock with the JavaScript SDK:
π Track Users: Track user data from your application by identifying them. This will add their user data to Userback, and each feedback they submit. Identifying users allows you to create segments for widget targeting and view feedback by user or segment.
β
π Create your own feedback button: Trigger the Userback feedback button by your own button / UI element or link.
β
βοΈ Prefill fields: Prefill specific fields in the Userback feedback widget including name, and email.
β
π Dynamic Language: Set the language of the widget, in code, based on the users language.
β
π Attach Custom Data: Gain more insights into user feedback by attaching custom data, like product version, user agent, or app-related data.
β
π Customize the widget settings: Change the look and feel of the Userback widget based on the page, or user variables. For example: Show the bug tracking form only for internal users.
View all the capabilities of the JavaScript SDK in our Developer Docs.
Frequently Asked Questions
Q: Can I use Userback without showing the widget button?
A: Yes! Simply hide the default launcher in your widget settings by going to Edit Widget β Target β Do not display the launcher. Your developer can then trigger feedback manually using the JavaScript SDK.
Q: What plan do I need to use the JavaScript SDK?
A: The JavaScript SDK is available on the Business plan and above. See our pricing page for a full plan comparison.
Q: Can I pass data from my app to Userback without the user entering it?
A: Yes. Using the SDK you can silently attach any data point from your application, such as plan type, user ID, product version, feature flags, to every feedback submission. Users never see this data, but your team gets full context on every item in the inbox.
