Angular 12 Integration

Recently a community member ran into the following problem on a Web application:

They were integrating with Angular 12+ and were dividing the snippet amongst several hundred subdomains. They needed to set the account.id on-the-fly during initialization. However, the installation did not recognize window.pendo.initialize(). 

The solution was the community member put the basic fragment into the <head> portion of the html, then put a component in the <body><footer> that calls the pendo.initialize in its constructor. They then chained several subscribe calls to fetch subdomain-specific settings so they can fill-out the visitor.id and account.id fields for the pendo.initialize(). The component html is basically empty (though for checking purposes, they put-in an indicator of success).

1

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post