ProdCamp Help
Go to ProdCampSign InLeave Feedback
  • What is ProdCamp?
  • How it works
  • Getting Started
    • Getting Started with ProdCamp
    • Invite Your Team
    • Custom Domain
  • Customer feedback
    • Attaching Feedback to a Feature
    • Processing Feedback
  • Feedback Channels
    • Customer Feedback Channels
    • ProdCamp App
    • Public Roadmap
    • Feature Voting Portal
    • Email Forwarding
    • Google Chrome Extension
    • Intercom Messanger
    • Embeddable Feedback Widget
    • NPS
    • Any App (via Zapier)
  • Installing widgets
    • Installing widgets
    • Widgets SSO
    • Changelog widget
    • Feedback Widget
    • NPS widget
  • Features
    • Creating a Feature
    • Sharing Features on Public Roadmap
    • Push Feature to Jira
    • Feature Releases
    • Features and Sprints relation
  • Feedback Loop
    • Closing Feedback Loop
    • Changelog
  • Roadmaps
    • Public Roadmap
    • Single Sign-On (SSO)
    • Feature Placement on the Public Roadmap
    • Internal Roadmap
    • Protected Roadmap (beta)
  • ❌Sprints (DEPRECATED)
    • Sprints Mode
    • Create Sprint
    • Adding Features to a Sprint
    • Sprint Releases
  • Products
    • Create and Manage Products
  • Prioritization
    • Prioritization Matrix
    • RICE Prioritization
  • Customers
    • Manage Accounts and Contacts
    • Sync Accounts with SalesForce
  • Integrations
    • Slack
    • Jira
    • GitLab
    • SalesForce
    • Intercom
    • Zapier
  • Operations
    • Import Features
    • Import Customers
  • Settings
    • Profile
  • Getting Help
    • Contact Us
  • API
    • Authentication
    • Feedback API
      • Feedback Types
      • Feedback States
    • Features API
    • Customers API
Powered by GitBook
On this page

Was this helpful?

  1. Installing widgets

NPS widget

How to install ProdCamp NPS widget

PreviousFeedback WidgetNextCreating a Feature

Last updated 1 year ago

Was this helpful?

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

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

<script>
    ProdCamp('initNPSwidget', {email: "name@domain.com"});
</script>

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

ProdCamp('OpenNPSWidget')

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

Installing widgets
Net Promoter Score Widget
Net Promoter Score Widget