You can use Pendo’s browser console commands to confirm whether the Pendo Web SDK is installed correctly in your app, verify which Visitor ID and Account ID are being tracked, and troubleshoot installation issues. These commands are especially useful during initial setup or when guides, analytics, or metadata aren’t working as expected.
Prerequisites
These commands can only be run on a page where the Pendo Web SDK is installed.
Check web SDK installation
If you’re experiencing issues after the initial install, start by confirming that the web SDK is running and collecting data.
- Go to a page where the Pendo Web SDK is installed.
- Right-click your mouse from anywhere on that page and select Inspect.
- Select the Console tab at the top of the inspector.
- Enter
pendo.validateInstall(), then press Enter. This command returns details such as the web SDK version, Visitor ID, Account ID, whether tracking is active, and any installation warnings.
Check Account ID and Visitor ID
These commands return the recognized Account ID and Visitor ID for a visitor, which is especially useful for guide segments when other metadata isn’t available.
If you want to verify that the correct Account ID and Visitor ID are being tracked for visitors:
- Go to a page where the Pendo Web SDK is installed.
- Right-click your mouse from anywhere on that page and select Inspect.
- Select the Console tab.
- To check the Account ID, enter
pendo.getAccountId()and press Enter. - To check the Visitor ID, enter
pendo.getVisitorId()and press Enter.