Instrument Pendo Track Events#45
Open
novus-by-dhruv[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Pendo Track Event instrumentation across 24 user interaction points in the CourseHive application. These client-side pendo.track() calls capture key business events—authentication, course/skill search, content creation, voting, pinning, and notification management—that aren't automatically tracked as Feature clicks or Page loads.
Changes
user_signup_completedtrack event in login.component.ts after successful registration and pendo.identify, with userId, rollNo, department, programme, year, and emailDomain metadatauser_login_completedtrack event in login.component.ts after successful login and profile fetch, with userId, rollNo, karmaPoints, and notificationCount metadatapassword_reset_requestedtrack event in login.component.ts after password reset email is sent, with emailDomain metadatapush_notification_subscribedtrack event in login.component.ts after push subscription is saved to server, with userId, browserName, deviceType, and subscriptionTag metadataemail_verification_senttrack event in verify-email.component.ts after verification email dispatch, with email and source metadatacourse_search_executedtrack event in search.component.ts inside the searchCouseByName subscription, with query, searchType, resultsCount, and maxResultsDisplayed metadataskill_search_executedtrack event in skill-search.component.ts inside the searchSkill subscription, with query and resultsCount metadatacourse_addedtrack event in add-acourse.component.ts after successful course creation, with courseId, courseName, instructorName, and credits metadatacourse_review_submittedtrack event in course-details.component.ts after ReviewCourse resolves, with courseId, reviewLength, reviewerId, and reviewerRollNo metadatacontent_uploadedtrack event in course-details.component.ts after UploadContent resolves, with courseId, courseName, documentType, fileName, uploaderId, and uploaderRollNo metadataquestion_askedtrack event in course-details.component.ts after AskAQuestion resolves, with courseId, questionLength, askerId, and askerRollNo metadataanswer_submittedtrack event in course-details.component.ts after AnswerAQuestion resolves, with courseId, questionId, answerLength, answererId, and answererRollNo metadataanswer_deletedtrack event in course-details.component.ts after deleteAnswer resolves, with courseId, questionId, answerId, and userId metadatadocument_downloadedtrack event in course-details.component.ts before opening the document URL, with documentUrl, courseId, and source metadatareview_votedtrack event across all 6 review vote branches (upvote, downvote, reverse_upvote, reverse_downvote, switch_to_upvote, switch_to_downvote) in course-details.component.ts with courseId, reviewId, voteAction, voterId, and reviewAuthorId metadatacontent_votedtrack event across all 6 content vote branches in course-details.component.ts with courseId, contentId, documentType, voteAction, voterId, and contentUploaderId metadatacourse_pinnedtrack event in course-details.component.ts after savePinnedCourses resolves, with courseId, courseName, userId, and source metadatacourse_unpinnedtrack event in course-details.component.ts after removeCourseFromMyPinnedCourses resolves, with courseId, userId, and source metadatacourse_review_deletedtrack event in myprofile.component.ts after deleteReview resolves, with courseId, reviewId, and userId metadatacontent_deletedtrack event in myprofile.component.ts after deleteContent resolves, with courseId, contentId, documentType, and userId metadataskill_added_to_profiletrack event in myprofile.component.ts after addSkillInStudentData resolves, with skillId, skillName, expertiseLevel, description, and userId metadataskill_removed_from_profiletrack event in myprofile.component.ts after removeSkillFromMySkills resolves, with skillId, skillName, and userId metadatanotifications_clearedtrack event in myprofile.component.ts before clearing the notifications array, with userId and notificationCount metadataskill_pinned_from_detailstrack event in skill-details.component.ts after addSkillInStudentData resolves, with skillId, skillName, userId, and studentCount metadataNotes
review_votedandcontent_votedevents use avoteActionproperty to distinguish between upvote, downvote, reverse, and switch actions across all 6 code branches eachnotifications_clearedevent captures the count before clearing the array so the pre-clear count is preservedGenerated by Novus.