Add support for Pendo Track events and Page/Feature events #6140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Provide Pendo-based telemetry in two main parts:
Client-side Pendo Page/Feature events require a client library to be enqueued and configured.Moved to Implement Pendo JavaScript library (Page/Feature events) #6150See an explanation of "Event types" on this page.
In general, I've tried to follow the pattern provided by the existing Tracks implementation and the generic Telemetry base classes and interfaces. I did make some minor changes to the abstract class
Telemetry_Event
and the extendingTracks_Event
class in order to improve the abstraction and reduce code duplication.New constants will need to be provided in order to configure this functionality automatically:
PENDO_TRACK_SECRET_KEY
: The secret integration key used to authenticate with Pendo and send Track events.PENDO_SNIPPET_API_KEY
: The (non-secret) client API key used to configure Pendo's JavaScript library.VIP_DISABLE_PENDO_TELEMETRY
: Iftrue
, prevents the JavaScript library from being enqueued. Server-to-server Pendo Track events are still sent.VIP_SF_ACCOUNT_ID
: The account ID added to event payloads and used to correlate Pendo events.Pre-review checklist
Please make sure the items below have been covered before requesting a review:
Pre-deploy checklist
Steps to Test