Each time feedback is submitted in your form, Userback automatically collects the meta-data like browser type and screen size as well. This helps add context to the feedback and makes it easier to troubleshoot issues.

But what if you need to capture additional information like customer type or account id? You'll be glad to know that with just a few lines of code, you can collect custom data with our Javascript API.


How to collect custom data

Use the code below to send custom data along with new feedback.

// Before widget code is loaded
Userback.custom_data = {
account_id: 123456,
account_type: 'Standard',
trial: 'No'
};

// Reset custom data on demand
Userback.setData({
account_id: 123456,
account_type: 'Standard',
trial: 'No'
});


Viewing custom data

The custom data collected with your feedback will display at the bottom of the Feedback Viewer when viewing feedback full screen or on the right-hand panel in Inbox View.

Inbox View

Feedback viewer

It will also display in the notification emails related to the feedback.

custom_data_in_email.png

🔐 Who is this article for?

Plans

Solo

Startup ✔

Company ✔

Premium ✔

User type

Client

Collaborator

Admin ✔

Owner ✔

📙 Helpful articles

JavaScript API

How do I open Userback with a custom link or button?

Did this answer your question?