Skip to content

Install Novus#37

Open
novus-by-dhruv[bot] wants to merge 1 commit into
masterfrom
novus-installation-u92je
Open

Install Novus#37
novus-by-dhruv[bot] wants to merge 1 commit into
masterfrom
novus-installation-u92je

Conversation

@novus-by-dhruv

Copy link
Copy Markdown

Summary

Install the Novus by Pendo SDK into the CourseHive Angular application. The SDK loads asynchronously via the install script in index.html, initializes anonymously on app load, and identifies visitors with full profile metadata after login or signup.

Changes

  • Added Pendo install script with API key 0d5595d3-51ae-485c-a8a6-1d154c256718 to the section of src/index.html
  • Added anonymous pendo.initialize() call in AppComponent.ngOnInit() (src/app/app.component.ts) to start Pendo on app load
  • Added pendo.identify() call after successful login in LoginComponent.Login() with full visitor metadata (fId, email, name, rollNo, karmaPoints, image, phone, myNewNotificationNumber)
  • Added pendo.identify() call after successful signup in LoginComponent.signUpUsingEmailAndPassword() with the newly created profile data
  • Added pendo.identify() call in LoginComponent.ngOnInit() auth state check to identify returning users who are already logged in
  • Added TypeScript declare var pendo: any declarations in app.component.ts and login.component.ts

Notes

  • No account metadata is included since this is a B2C application (students at IIT Madras) with no account/organization concept
  • The emailVerified field from metadata analysis is not included in pendo.identify() calls because it is a Firebase Auth property not available on the Profile model — it could be added separately if needed by checking auth.currentUser.emailVerified

Generated by Novus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants