NPS widget

How to install ProdCamp NPS widget

  1. Install the widget SDK by following the steps described here:

pageInstalling widgets

After installing the SDK code you need to call the NPS Init function:

    ProdCamp('initNPSwidget', {email: ""});

NPS widget commands

There are several commands that you can use to manipulate the feedback widget behavior

  • initNPSWidget - this one you already know and it instantiates an NPS widget.

  • openNPSWidget - this command can be used to open the widget manually from anywhere in your code To test the NPS widget manually, you can either call the following command in the browser's console


or add a button to your page:

<button onclick="ProdCamp('openNPSWidget')">TEST NPS</button>
  • closeNPSWidget - this command will close the widget

  • updateNPSWidgetUser - using this command you can update the user's email which will be used to determine when the widget should appear

  • destroyNPSWidget - destroy the widget instance on the page

Last updated