API Reference

Nudges

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 NudgesUi module from nudge_core_browser

import { NudgesUi } from 'nudge_core_browser';

Initialize the NudgesUi class

 var nudges = new NudgesUi();
  • Just add the above-defined variable to the list in the plugins property of NudgeProvider
new NudgeProvider({nudgeInstance: nudge, plugins: [nudges]});
  • nudge_core_browser would now trigger Nudges defined on your Dashboard using the nudges plugin.