What you can build with it
The JavaScript SDK lets your own code control Userback beyond what the widget does on its own:
Track users. Use
identify()for apps where people log in or switch accounts, or the simpleruser_dataoption if your site is static. See How to Identify Users.Trigger feedback from your own UI. Open the widget from a custom button instead of the default launcher.
Prefill the form. Pass a name and email into the feedback form ahead of time.
Set the widget's language in code, based on the visitor's language preference.
Attach custom data to submissions, like a product version or a feature flag.
Customize the widget's behavior, including showing or hiding it based on the current page or a user attribute.
Every method above, plus a few more, is documented in full in the JavaScript SDK Method Reference.
Full technical reference
For complete method signatures and parameters, see the Developer Docs: the JavaScript SDK docs specifically, or Mobile SDK docs for iOS/Android/React Native.
What is the JavaScript SDK?
The standard Userback widget works out of the box, install the snippet and users can submit feedback right away. The JavaScript SDK adds a layer of control on top of that: who sees the widget, what data gets attached to each piece of feedback, and how it fits into your site.
What's next
