> ## Documentation Index
> Fetch the complete documentation index at: https://backstage.spotify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Feedback

> Create and configure pop-up surveys in Backstage to collect qualitative user feedback, satisfaction scores, and comments via the Insights plugin.

Qualitative and satisfaction data are every bit as important to understanding Backstage usage and driving adoption. Feedback in the Insights plugin offers a way to gather comments from your users.

<Info>
  There is a known issue with react-router\@6.0.0-beta.0 that causes the Feedback
  features route matching functionality to not work as expected. If you are
  using this version of react-router, please follow the Backstage guidance of
  [upgrading to a later mainline (6.x.x) version of
  react-router](https://backstage.io/docs/tutorials/react-router-stable-migration).
</Info>

## Pop-up Surveys

Pop-up surveys are short, one-to-two pane questionnaires shown to users within the Backstage UI.

Consisting of a configurable name, a free-text question, and an optional 5-point scale satisfaction question, this survey appears to your users as a modal in the bottom-right side of the screen on pages of your choice.

<Frame>
  <img src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/pop-up-surveys.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=1731ae449471b4dd2685f94989109563" alt="Pop-up Surveys" width="1930" height="860" data-path="plugins/insights/images/pop-up-surveys.png" />
</Frame>

### Display Logic

Where and when a pop-up survey is displayed is configurable along two axes: **location** and **trigger**.

#### Location

You can specify one or more page paths where the survey should appear. Multiple paths should be comma-separated. Paths may contain `*` and `**` wildcard characters. See examples below for how paths may be specified.

* **`/soundcheck`** - Only on the Soundcheck homepage
* **`/catalog/*/component/*/soundcheck`** - On the Soundcheck tab for any component
* \*\*`/catalog/**/soundcheck`\*\* - On the Soundcheck tab for any entity
* \*\*`/soundcheck,/catalog/**/soundcheck`\*\* - On the Soundcheck homepage or any entity's Soundcheck tab
* \*\*`/**`\*\* - On any page

<Info>
  The page paths specified should be relative to the Backstage instance. If
  Backstage is hosted on a sub-path of the domain (e.g.
  `example.net/backstage`), do not include the `/backstage` sub-path in the
  location configuration.
</Info>

#### Trigger

Surveys can be triggered to appear *on* the specified page, or *after leaving* the specified page.

You might, for example, configure a **Search Satisfaction** survey to appear after leaving `/search`, asking `How easy was it to find what you were looking for?`

In either case, the survey can be configured to appear after a certain number of seconds have passed after the trigger.

<Frame>
  <img src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-trigger-config.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=153b6ba48d7b3bf550b248c26a6ee79d" alt="Survey trigger logic" width="330" height="147" data-path="plugins/insights/images/survey-trigger-config.png" />
</Frame>

<Info>
  It's possible that multiple surveys could be eligible to appear for a user on
  a single page. In such cases, only one will be shown within a 5 minute
  cooldown period. Surveys that are configured to be shown "after leaving" will
  take priority over others. Surveys with the nearest closing date then take
  precedence.
</Info>

### Ownership

Surveys are resources that have a concept of ownership. By default, a survey will belong to the user who created it; the user may optionally choose to set the owner to any group to which they have ownership claims.

<Frame>
  <img src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-ownership.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=ecbe849b22b45d143fc7122a200e4123" alt="Survey ownership" width="481" height="204" data-path="plugins/insights/images/survey-ownership.png" />
</Frame>

If you are using [RBAC](../../rbac/) or otherwise have permissions enabled and implemented, you can use survey ownership as a means to limit access to surveys and their results.

For example, using the `IS_SURVEY_OWNER` rule in RBAC, you can limit the ability to "read" surveys and their results to only those with ownership claims over the survey.

<Frame>
  <img
    src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/insights-survey-owner-permission-decision.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=3fda10d39b73f58d192ea6745fd98a39"
    alt="RBAC permission decision based on survey
owner"
    width="1374"
    height="1037"
    data-path="plugins/insights/images/insights-survey-owner-permission-decision.png"
  />
</Frame>

The full list of permissions can be found under [Available Permissions](../setup-and-installation#available-permissions)

### Lifecycle

A survey goes live as soon as you save it. It will continue to appear to your users indefinitely, unless you set an optional **end date**. In order to maintain data integrity, your survey's content/questions will not be editable after launch.

<Frame>
  <img src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-end-date.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=7c250397d10700b890cc30f8d7052d1d" alt="Survey end date" width="261" height="148" data-path="plugins/insights/images/survey-end-date.png" />
</Frame>

You can close a survey at any time using the action menu on the surveys table. Responses are retained after closing the survey. Deleting a survey will also delete all associated responses. This action cannot be undone.

<Frame>
  <img
    src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-table-action-menu.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=3c87ff1c91d7b3e9f6d4b1a5ae704f76"
    alt="Surveys table and action
menu"
    width="1421"
    height="842"
    data-path="plugins/insights/images/survey-table-action-menu.png"
  />
</Frame>

## Survey Responses

For any given survey, a user may submit one response. Once you've collected several responses, it's time to start looking at the data!

### Completion Rate

After you've launched a survey, you'll see a card representing that survey on the Feedback page. This card will show completion rate for the survey. Completion rate is the total number of completed survey responses divided by the number of users who *saw* the pop-up survey (e.g. those who took no action or closed out of the modal).

<Frame>
  <img src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-completion.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=047267670dcfcb3f96928c735b2e3256" alt="Survey completion card" width="512" height="457" data-path="plugins/insights/images/survey-completion.png" />
</Frame>

### Satisfaction

If your survey was configured to include a satisfaction score, the card representing the survey will show a line chart representing average satisfaction over time.

<Frame>
  <img
    src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-satisfaction-over-time.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=545c1543b1a98b86201679a855eb2131"
    alt="Survey satisfaction over
time"
    width="511"
    height="459"
    data-path="plugins/insights/images/survey-satisfaction-over-time.png"
  />
</Frame>

### Comments

Free text responses for all surveys are shown in the comments card to the right of the surveys table. You can filter down to a specific survey and search for key words for phrases within the provided comments.

<Frame>
  <img src="https://mintcdn.com/spotify-89f50c35/u5FqPpFSnmv3K-GI/plugins/insights/images/survey-comments-card.png?fit=max&auto=format&n=u5FqPpFSnmv3K-GI&q=85&s=6a1b1113c25e0b136f72954bf6c21751" alt="Survey comments card" width="421" height="412" data-path="plugins/insights/images/survey-comments-card.png" />
</Frame>
