Skip to content

Conversation

@joe-replin
Copy link
Contributor

@joe-replin joe-replin commented Nov 7, 2025

Update

  • Added xAPI statement tracking for navigation drawer interactions, resource access, glossary terms, LMS connection errors, and language preferences
  • Created five new statement model classes: InteractedStatementModel, AccessedStatementModel, ReceivedStatementModel, PreferredStatementModel, and LanguageStatementModel
  • Added three new xAPI verbs: "interacted", "accessed", and "received"
  • Replaced all _.extend() calls with Object.assign() for ES6 compliance
  • Updated README and example.json with new configuration options (all default to false)

Testing

  1. Enable _navbar tracking in config.json and verify statements are sent when opening/closing navigation drawer
  2. Enable _resources tracking and verify statements are sent when accessing resources (requires adapt-contrib-resources plugin)
  3. Enable _glossary tracking and verify statements are sent when viewing glossary terms (requires adapt-contrib-glossary plugin)
  4. Enable _connectionErrors tracking and verify statements are sent for LMS connection errors (requires adapt-contrib-spoor plugin)
  5. Enable _languageOnCourseStart tracking and verify statement is sent on course initialization
  6. Test with each tracking option independently enabled/disabled
  7. Confirm backward compatibility - all new features are opt-in

Configuration

All new tracking options are disabled by default in config.json:

  • _navbar - requires adapt-contrib-pageLevelProgress
  • _resources - requires adapt-contrib-resources
  • _glossary - requires adapt-contrib-glossary
  • _connectionErrors - requires adapt-contrib-spoor

@joe-replin joe-replin self-assigned this Nov 7, 2025
@joe-replin joe-replin changed the title Updates: PR #2 Enhancements to Core Statements (fixes #45) Updates: PR#2 Enhancements to Core Statements (fixes #45) Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants