Skip to content

Add Pendo track events for key user interactions#116

Open
novus-by-pendo-dev[bot] wants to merge 1 commit into
mainfrom
novus/add-pendo-track-events
Open

Add Pendo track events for key user interactions#116
novus-by-pendo-dev[bot] wants to merge 1 commit into
mainfrom
novus/add-pendo-track-events

Conversation

@novus-by-pendo-dev

Copy link
Copy Markdown

Summary

  • Adds 9 pendo.track() events across the BrowseGPT extension to capture key user interactions
  • Events instrumented: user_signed_up, user_logged_in, user_logged_out, profile_updated, message_sent, command_executed, chat_created, chat_deleted, chat_search_executed
  • Each event includes relevant metadata properties for analytics segmentation (auth provider, chat IDs, message lengths, search terms, etc.)
  • Chat search tracking is debounced (500ms) to prevent over-firing on every keystroke

Test plan

  • Verify user_signed_up fires with correct auth_provider after successful OAuth sign-up via Google, GitHub, and Facebook
  • Verify user_logged_in fires with correct auth_provider after successful OAuth login
  • Verify user_logged_out fires before Pendo session is cleared on logout
  • Verify profile_updated fires after successful profile form submission with correct is_first_profile_completion flag
  • Verify message_sent fires on successful GPT response with message/response lengths
  • Verify command_executed fires when a slash command is used with command name and search query
  • Verify chat_created fires when a new chat is created with correct total count
  • Verify chat_deleted fires when a chat is deleted with correct remaining count and active chat flag
  • Verify chat_search_executed fires after 500ms debounce when searching chats, with result count
  • Confirm no events fire when Pendo is not loaded (optional chaining prevents errors)

🤖 Generated with Claude Code

Instrument 9 pendo.track() events: user_signed_up, user_logged_in,
user_logged_out, profile_updated, message_sent, command_executed,
chat_created, chat_deleted, and chat_search_executed with relevant
metadata properties for analytics and segmentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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