Skip to main content
User Feedback allows you to collect feedback from users when they encounter errors, providing valuable context directly from the people experiencing issues.

Capturing Feedback

Use captureFeedback() to send user feedback to Sentry:
Feedback appears in Sentry as a special event type that can be viewed alongside errors and performance data.

Feedback Parameters

Required Fields

Optional Fields

Associating with Errors

Link feedback to specific error events:
Associating feedback with errors helps you understand the user’s perspective on what went wrong.

User Feedback Widget

Sentry provides a pre-built feedback widget:

Widget Configuration

Programmatic Control

Custom Feedback UI

Build your own feedback UI:

Feedback on Errors

Automatically prompt for feedback when errors occur:
Prompting users for feedback on every error can be disruptive. Consider only prompting for critical errors or using a less intrusive widget.

Feedback with Context

Include additional context with feedback:

Screenshot with Feedback

Capture screenshots with feedback:
Screenshots are stored as attachments and visible in the Sentry UI alongside the feedback.

Practical Examples

E-commerce Checkout

Feature Feedback

Support Ticket Creation

Viewing Feedback

Feedback appears in Sentry:
  1. Feedback Tab: View all feedback
  2. Issues: Feedback linked to errors
  3. User Details: All feedback from a specific user
Each feedback includes:
  • User contact information
  • Message content
  • Associated error (if linked)
  • Page URL
  • Browser/device info
  • Tags and context
  • Replay (if available)

Best Practices

  1. Make it easy: Low-friction feedback collection
  2. Provide context: Include page URL and error details
  3. Respect privacy: Don’t require personal info
  4. Close the loop: Respond to feedback
  5. Link to errors: Associate feedback with specific issues
  6. Use appropriate timing: Don’t interrupt critical flows
  7. Thank users: Show appreciation for feedback

Privacy Considerations

Comply with privacy regulations (GDPR, CCPA, etc.) when collecting user feedback. Provide clear privacy notices and obtain consent where required.

Next Steps

Error Monitoring

Link feedback to error events

Session Replay

Include replays with feedback

Context

Add context to feedback

Scopes

Manage feedback scope data