To integrate Streaks 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.
Please also make sure that you have tagged all the relevant UI components into theid
s as defined in the above docs.
var streaksUi = new StreaksUi();
Once you have integrated the Nudge Code SDK, just add the above-defined variable to the list in theplugins
property of NudgeProvider
<NudgeProvider
app={nudge}
plugins={[
streaksUi,
]}>
..
..
..
</NudgeProvider>
That's it!
For non-JSX based libraries, use the following snippet:
NudgeProvider({app: nudge, plugins: [streaksUi]});
Our Nudge Core would now trigger Surveys defined on your Dashboard using the streaksUi
plugin.