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.

type: object

Userback.custom_data = {
    account_id: 7,
    name: "John"
};

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

Related Articles

Did this answer your question?