How Do I Enable Feedback Prompt on a Portal Page?

This article describes how to embed a Feedback Prompt on a Portal Page created from a Portal Page Template.

PREREQUISITES:

The process comprises the following steps:

  1. Create a Feedback Prompt
  2. Configure Portal Page Template Info
  3. Configure Portal Page Template Variables
  4. Configure Portal Page Template Code
  5. Access the Portal Page with a Feedback Prompt

1. Create a Feedback Prompt

Access Content > Feedback Prompts

  1. [+ Feedback Prompt]
  2. Enter a Name for the Feedback Prompt
  3. Prompt on: Selected Page
  4. Select a Portal Page to utilize the Feedback Prompt
  5. [Save]

For more details on Feedback Prompt configuration, see Create a Feedback Prompt.

2. Configure Portal Page Template Info

Access the Info tab

  1. Enable the Portal Page Template
  2. For v6: Activate Display without Metric Insights navigation bar

NOTE: In v7, if Display without Metric Insights navigation bar is activated, add the following code to your Portal Page Template:

<script src="/auth/info.js"></script>
<script defer="defer" src="/js/main.js"></script>
<link href="/css/main.css" rel="stylesheet">
  1. Layout: None
  2. [Save]

3. Configure Portal Page Template Variables

Access the Variables tab

  1. [+ Variable]
  2. Name: PAGE_NAME
  3. Type: Text
  4. Default Value: Enter the Name used in URL of the Portal Page created from the current Portal Page Template. This Portal Page will display the Feedback Prompt
  5. [Save Variable]
  6. [Save]

4. Configure Portal Page Template Code

v7

Access the Code tab

  1. Paste the following code snippet to the Portal Page Template's code:
$(document).ready(() => {
    MiNamespace.render({
        "component": "feedback_prompt",
        "props": {
            "itemType": "page",
            "itemId": "[PAGE_NAME]"
        }
    });
});
  1. [Save]

v6

Access the Code tab

  1. Paste the following code snippet to the Portal Page Template's code:
<div>
 <iframe style="width:0px; height:0px; border: 0px none;"
   frameBorder="0"
   src="/ratingprompt/page/prompt/name/[PAGE_NAME]"></iframe>
</div>
  1. [Save]

5. Access the Portal Page with a Feedback Prompt

Access the Portal Page created from the current Portal Page Template. The Name used in URL of this Portal Page was utilized in the Portal Page Template Variables configuration.

  1. [View]
  2. The Feedback Prompt is displayed on the Portal Page