Surveys
To integrate Nudges from Nudge into Web, you need to make sure that the basic integration of the nudge_core_browser_v2
SDK is done, if you have not already done it, check here.
Import the NudgeSurveyUi
module from nudge_core_browser_v2
import { NudgeSurveyUi } from 'nudge_core_browser_v2';
Initialize the NudgeSurveyUi
class
var survey = new NudgeSurveyUi();
- Just add the above-defined variable to the list in the
plugins
property ofNudgeProvider
new NudgeProvider({nudgeInstance: nudge, plugins: [survey]});
nudge_core_browser_v2
would now trigger Surveys defined on your Dashboard using theNudgeSurveyUi
plugin.