Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Add pendo.initialize() for in-app designer support #75

Open
anilmurty opened this issue Mar 18, 2023 · 0 comments
Open

Add pendo.initialize() for in-app designer support #75

anilmurty opened this issue Mar 18, 2023 · 0 comments

Comments

@anilmurty
Copy link
Contributor

anilmurty commented Mar 18, 2023

Is your feature request related to a problem? Please describe.
Add support for Pendo In-App Designer

Describe the solution you'd like
In-app designer is the only way to tag new pages in pendo that it hasn't found by itself: https://support.pendo.io/hc/en-us/articles/360032292151-Tagging-and-viewing-Pages

We have the pendo snippet:
https://github.com/akash-network/console/blob/main/web/public/index.html#L78
But are missing the initialize code:

// This function creates anonymous visitor IDs in Pendo unless you change the visitor id field to use your app's values
// This function uses the placeholder 'ACCOUNT-UNIQUE-ID' value for account ID unless you change the account id field to use your app's values
// Call this function in your authentication promise handler or callback when your visitor and account id values are available
// Please use Strings, Numbers, or Bools for value types.
    pendo.initialize({
        visitor: {
            id:              'VISITOR-UNIQUE-ID'   // Required if user is logged in, default creates anonymous ID
            // email:        // Recommended if using Pendo Feedback, or NPS Email
            // full_name:    // Recommended if using Pendo Feedback
            // role:         // Optional

            // You can add any additional visitor level key-values here,
            // as long as it's not one of the above reserved names.
        },

        account: {
            id:           'ACCOUNT-UNIQUE-ID' // Required if using Pendo Feedback, default uses the value 'ACCOUNT-UNIQUE-ID'
            // name:         // Optional
            // is_paying:    // Recommended if using Pendo Feedback
            // monthly_value:// Recommended if using Pendo Feedback
            // planLevel:    // Optional
            // planPrice:    // Optional
            // creationDate: // Optional

            // You can add any additional account level key-values here,
            // as long as it's not one of the above reserved names.
        }
    });

workaround
A workaround is to manually initialize the in-app designer using Chrome devtools console:

  1. Open Console (the app) and then Chrome Dev Tools Console
  2. > pendo.initialize()
    That should launch the designer overlay on console
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant