Surveys
To integrate Nudges from Nudge into Web, you need to make sure that the basic integration of the nudge_core_browser
SDK is done, if you have not already done it, check here.
Import the NudgeSurveyUi
module from nudge_core_browser
import { NudgeSurveyUi } from 'nudge_core_browser';
Initialize the NudgePopupsUi
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
would now trigger Surveys defined on your Dashboard using theNudgeSurveyUi
plugin.