Adding context information to Ideas and Bugs

When analyzing customers feedback, it is important to understand in what context user leaves it. UserReport provides device and browser information. However, in some cases, it might not be enough. You might, furthermore, like to know the following:

  • is user registered or not
  • if registered, on what plan it is - free or premium?
  • what is his user ID
  • is anything in her or his shopping card?

The UserReport snippet enables you to add context information to your user feedback. Here is example:

var userContext = { "userId": 123, "accountType": "premium" }; // composing context object

// If separated from main snippet we need to ensure that _urq is defined
window._urq = window._urq || [];
// Set context information
_urq.push(['setFeedbackForumMetadata', userContext]);

After a user submits an idea or bug, you can get context information in the UserReport interface:

 

We don't do any transformation of passed objects, so you may compose any object that describes the context of a user, and this way gain more insights in his feedback.

If you embed Feedback Forum into IFrame or compose a link to it dynamically, you can also send context information, using metadata parameter. Here is an example:

var userContext = { "userId": 123, "accountType": "premium" };
var staticLink = "https://feedback.userreport.com/ff479801-fc38-48bd-bf2d-a499ae38c02b/";
var feedbackUrl = staticLink + "#metadata=" + encodeURIComponent(JSON.stringify(userContext));

Due to privacy reasons, it is prohibited to put personally identifiable information (like e-mail or phone address) into the context.

Attachments

Comments

Powered by Zendesk