function intitiatePendo(visitorId, visitorEmail, visitorFullName, accountId, accountName, accountProductType) { // 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 after users are authenticated in your app and your visitor and account id values are available // Please use Strings, Numbers, or Bools for value types. if (typeof pendo !== 'undefined' && pendo) { // May not have installed pendo for IL pendo.initialize({ visitor: { id: visitorId, // Required if user is logged in, default creates anonymous ID email: visitorEmail, // Recommended if using Pendo Feedback, or NPS Email full_name: visitorFullName, // Recommended if using Pendo Feedback in the future //tags: // Recommended if using Pendo Feedback in the future // You can add any additional visitor level key-values here, // as long as it's not one of the above reserved names. }, account: { id: accountId, // Required if using Pendo Feedback, default uses the value 'ACCOUNT-UNIQUE-ID' name: accountName, // Optional productType: accountProductType // Amplifund Configuration //tags // Recommended if using Pendo Feedback in the future // You can add any additional account level key-values here, // as long as it's not one of the above reserved names. } }); } }