# Collect Feedback on Your Website with Myra

You can capture valuable customer insights directly from your own external website. With Myra, customers never have to log into the Atlassian ecosystem to share their thoughts, but all their feedback flows securely and instantly right into your Jira instance.

Here is how to set up your embedded feedback widget:

#### 1. Create a Public Survey

First, you need to build a survey designed specifically for external web use.

* Navigate to the **Settings** tab and click **+ New**.
* Set the survey's **Scope** to **Public**.
* Define your **Calculation Strategy** (such as Average or NPS) and your preferred **Field Type** to dictate exactly how you want to receive the feedback.

{% content-ref url="/pages/6outOcH36EOur27LMUrq" %}
[Create new Feedback Survey](/myra-master-your-ratings/use-myra/create-new-feedback-survey.md)
{% endcontent-ref %}

#### 2. Enable Collection

Once your survey is created, you must activate it to generate your unique embed code.

* Open your newly created survey's **Settings** page.
* Switch the **Enable Collection** toggle to the "On" position.

{% content-ref url="/pages/DSpbFG2mt4KBmNOziJgS" %}
[Collection configuration](/myra-master-your-ratings/use-myra/collection-configuration.md)
{% endcontent-ref %}

#### 3. Embed the Widget Code

Enabling collection for a Public survey automatically generates the necessary web snippets.

* Locate the **Public Rating Code** in your configuration menu.
* Copy this snippet and paste it anywhere within your website's HTML body.

#### 4. Trigger the Feedback Form

Finally, you need to give your users a way to open the Myra widget. You can trigger the form by calling its specific open function on any interactive element.

* Add an onclick event to a button or link on your site. (you can copy it form the settings page) For example:

```
<button onclick="window.myra_widget_<your-feedback-id>.open()"> Rate Us </button>
```

{% hint style="warning" %}
**Content Security Policy (CSP) Requirements**

If you are using the **Public Score Display** on a website that enforces a Content Security Policy (CSP), you must update your website's headers.

Add the correct directives by copying it from the survey's setting to allow the Myra widget script and styles to load correctly:

`Content-Security-Policy: script-src 'self' https://<your-own-link>.hello.atlassian-dev.net; style-src 'self' https://<your-own-link>.hello.atlassian-dev.net;`&#x20;

Without these specific CSP configurations, your browser's security policy will block the widget, preventing your feedback score from appearing on the page.
{% endhint %}

You are officially live! Your website visitors can now submit feedback seamlessly, and your team can track, measure, and act on those responses directly inside Jira.

<figure><img src="/files/UQgGUmzUfkpqt1wXDPL1" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meta-inf.hu/myra-master-your-ratings/cookbook/collect-feedback-on-your-website-with-myra.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
