Skip to content

Instrument Pendo Track Events#42

Open
novus-by-dhruv[bot] wants to merge 1 commit into
masterfrom
pendo-track-events-i8gow
Open

Instrument Pendo Track Events#42
novus-by-dhruv[bot] wants to merge 1 commit into
masterfrom
pendo-track-events-i8gow

Conversation

@novus-by-dhruv

Copy link
Copy Markdown

Summary

Adds Pendo Track Event instrumentation across the CourseHive application to capture 21 key user interactions. These client-side pendo.track() calls cover authentication flows, course management, content contributions, FAQ engagement, skill management, and notification handling to enable product analytics and user behavior insights.

Changes

  • Added pendo.track('user_signup_completed') in login.component.ts to capture new user registrations with email domain, roll number, department, browser, and mobile metadata
  • Added pendo.track('user_login_completed') in login.component.ts to track successful email/password logins with browser and mobile metadata
  • Added pendo.track('password_reset_requested') in login.component.ts to track password reset email requests
  • Added pendo.track('push_notification_subscribed') in login.component.ts to capture push notification opt-ins with browser and device type metadata
  • Added pendo.track('course_search_executed') in search.component.ts to track course searches with query and source metadata
  • Added pendo.track('homepage_search_executed') in homepage.component.ts to track searches from the homepage with query and category metadata
  • Added pendo.track('skill_search_executed') in homepage.component.ts to track when users switch to the Skills search category
  • Added pendo.track('course_created') in add-acourse.component.ts to capture new course creation with course details metadata
  • Added pendo.track('course_review_submitted') in course-details.component.ts to track course reviews with course ID, review length, and reviewer metadata
  • Added pendo.track('course_content_uploaded') in course-details.component.ts to capture content uploads with course, document type, and uploader metadata
  • Added pendo.track('faq_question_submitted') in course-details.component.ts to track new FAQ questions with course ID and question length
  • Added pendo.track('faq_answer_submitted') in course-details.component.ts to track FAQ answers with course, question, and answer metadata
  • Added pendo.track('course_pinned') in course-details.component.ts to capture course bookmarking with course details and pin source
  • Added pendo.track('course_unpinned') in course-details.component.ts to track course unbookmarking with course ID and source
  • Added pendo.track('faq_answer_deleted') in course-details.component.ts to track FAQ answer deletions with course, question, and answer IDs
  • Added pendo.track('review_deleted') in myprofile.component.ts to track review deletions with course and review IDs
  • Added pendo.track('content_deleted') in myprofile.component.ts to track content deletions with course, content ID, and document type
  • Added pendo.track('skill_added_to_profile') in myprofile.component.ts to capture skill additions with skill details and expertise level
  • Added pendo.track('skill_removed_from_profile') in myprofile.component.ts to track skill removals with skill ID and name
  • Added pendo.track('notifications_cleared') in myprofile.component.ts to track notification clearing with count of cleared notifications
  • Added pendo.track('skill_created') in add-skill.component.ts to capture new skill creation with skill name and source
  • Added declare let pendo: any; to all instrumented component files for TypeScript compatibility

Notes

  • All events are client-side and use the global pendo object — the Pendo agent must be initialized before these components load
  • Event properties reference variables available in scope at the time of tracking (e.g., this.courseId, this.course.name)
  • The notifications_cleared event fires before the array is emptied to capture the correct count
  • No sensitive data (passwords, tokens) is included in any track event properties

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