Skip to content

Commit 7280a66

Browse files
author
Adam Dupaski
authored
Merge pull request mendix#5756 from MichaelMendix/development
Update app-insights.md
2 parents 6fbd1f3 + 3b2a709 commit 7280a66

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

content/en/docs/appstore/modules/app-insights.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,22 @@ To import this module into your app, follow the instructions in [How to Use Mark
2929
2. (Optional) Configure the constant **TEST_MODE**. If this is turned on, the survey will always show.
3030
3. Save the changes.
3131

32-
4. Open the **Put Survey Widget On Template** folder, and place **Template_SurveyWidget** on the page where you would like the mini-survey to appear.
33-
5. Open the **Show Survey** folder, and copy the **ShowSurvey_OnAction** nanoflow to your own module.
34-
6. Set up the **ShowSurvey_OnAction** nanoflow as follows:
32+
4. Open the **Put Survey Widget On Template** folder, and place **Template_SurveyWidget** on the page where you would like the mini-survey to appear. We recommend placing only one widget inside the master layout page.
33+
5. Configure how the mini-survey will appear, either on-action or on-page load:
3534

36-
1. Double-click **Create String variable**, fill in the survey ID of the mini-survey, and then save the changes. You can find the survey ID on the [Settings](/developerportal/collaborate/product-insights/#survey-details-settings) tab or [Implementation](/developerportal/collaborate/product-insights/#survey-details-implementation) tab of the survey details page in **App Insights** in the Developer Portal.
37-
2. Double-click **CHANGE ME**, add your microflow or nanoflow action here, then save the changes.
35+
* For the on-action option:
36+
37+
1. Open the **Show Survey** folder, then copy the **ShowSurvey_OnAction** nanoflow to your own module.
38+
1. In the nanoflow, double-click **Create String variable**, fill in the **Survey ID** of the mini-survey, and then save the changes. You can find the survey ID on the [Settings](/developerportal/collaborate/product-insights/#survey-details-settings) tab or [Implementation](/developerportal/collaborate/product-insights/#survey-details-implementation) tab of the survey details page in **App Insights** in the Developer Portal.
39+
1. (Optional) Double-click **CHANGE ME**, add your microflow or nanoflow action, then save the changes.
40+
1. Create a button that calls the **ShowSurvey_OnAction** nanoflow on the page where **Template_SurveyWidget** is placed. Mendix recommends renaming the flow to something that describes the original action.
3841

39-
7. Create a button that calls the **ShowSurvey_OnAction** nanoflow on the page where **Template_SurveyWidget** is placed. Mendix recommends renaming the flow to something that describes the original action.
40-
8. In **App Explorer**, double-click **Security**, and add the **AppInsights_MiniSurvey.User** user role to all the system roles that use the mini-survey in the **App Security** dialog box.
42+
* For the on-page load option:
43+
44+
1. Open the **Show Survey** folder, and copy the widget from **ShowSurvey_OnPageLoad** to your page.
45+
1. Place this widget on any page you wish to show the survey (you can use multiple **Show Mini Survey On Page Load** widgets in your app to trigger many surveys).
46+
1. Double-click the **Show Mini Survey On Page Load** widget, then fill in the **Survey ID**.
47+
48+
6. In **App Explorer**, double-click **Security**, and add the **AppInsights_MiniSurvey.User** user role to all the system roles that use the mini-survey in the **App Security** dialog box.
4149

4250
{{% alert color="info" %}}Once the start time of the mini-survey is reached, the mini-survey will start running, and all the target users of the mini-survey will receive the survey automatically.{{% /alert %}}

0 commit comments

Comments
 (0)