Skip to main content

JavaScript SDK and Developer Docs

An overview of what the Userback JavaScript SDK lets you build, with links to the full reference for identifying users and for every SDK method.

Written by Jon

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 simpler user_data option 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

Related articles

Did this answer your question?