How to inject Pendo telemetry into the Vida iframe, identify users and accounts, and track pages and events.
YOUR_PENDO_KEY
with your unique Pendo key.
traits
argument, which provides data about the user and the account. Use traits.user.externalUserId
and traits.account.externalAccountId
to match the user and account to your internal analytics. Before the user can be identified, you must first call pendo.initialize()
with the argument visitor.id
set to traits.user.externalAccountIdd
. See below for an example.
Arguments
traits
- object of attributes for the user and the account
window.location.href
to pass which page is loaded.
Vida
so you can more easily document which events are coming from the Vida iframe.
Arguments
event
- string representing the name of the eventprops
- object of attributes unique to this event