Install Pendo onto a browser extension
The Pendo agent collects events on any window or frame where the install script is added. Since browser extensions can run on top of many third-party applications, we need to ensure that only events from the extension are captured and events from the third-party application are not captured. If the browser extension falls into one of two categories, Pendo can be successfully installed:
- If the browser extension opens a separate iframe that is hosted by the browser extension (has its own document object), you can install the Pendo install script into that iframe.
- If the browser extension opens a new window, either to your own web application or with an extension based url (e.g. chrome-extension://... in the case of a Chrome extension), then the agent can be isolated to that window and Pendo can be installed successfully via the Pendo install script.
Note: If your browser extension is a Manifest V3 extension, you must take additional steps to ensure that the Pendo agent does not fetch any remote code. Instead of installing the Pendo install script, you must install the Pendo agent via npm. Make sure to follow the additional instructions in the ‘Manifest V3 Extension’ section of the README.
Comments
Update: This has been officially added to https://support.pendo.io/hc/en-us/articles/17606930575387-Installation-options-for-a-direct-web-implementation-of-Pendo
Post is closed for comments.