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:
- Сreate a Portal Page Template
- Create a Portal Page to embed a Feedback Prompt
The process comprises the following steps:
1. Create a Feedback Prompt
Access Content > Feedback Prompts
- [+ Feedback Prompt]
- Enter a Name for the Feedback Prompt
- Prompt on: Selected Page
- Select a Portal Page to utilize the Feedback Prompt
- [Save]
For more details on Feedback Prompt configuration, see Create a Feedback Prompt.
2. Configure Portal Page Template Info
Access the Info tab
- Enable the Portal Page Template
- 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">
- Layout: None
- [Save]
3. Configure Portal Page Template Variables
Access the Variables tab
- [+ Variable]
- Name: PAGE_NAME
- Type: Text
-
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
- See Overview of Portal Pages for details on Portal Page configuration
- [Save Variable]
- [Save]
4. Configure Portal Page Template Code
v7
Access the Code tab
- 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]"
}
});
});
- [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.
- [View]
- The Feedback Prompt is displayed on the Portal Page