Peer Dependencies
- fast-equals@5.0.1
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700"
rel="stylesheet"
/>
<link rel="preconnect" href="https://learnosity.com" />
This document serves as a central repository for tracking all analytics events. Understanding what events are logged, how they are logged, and where they are tracked ensures better management and organization.
Platform-specific events should be added to designated files to maintain a structured approach.
- features/
- analytics-events/
- platform-event-student --> Contains student-related events
- platform-event-teacher --> Contains teacher-related events
- analytics-events/
⚠️ Note: After adding an event to these files, import it into the relevant platform where it needs to be tracked.
const PLATFORM_EVENT_STUDENT = {
// Define events here
YOU_HAVE_SEEN_THE_ANALYTICS_USAGE: 'you_have_seen_the_analytics_usage',
};
Simply whitelist the events that you have added above
const PLATFORM_WHITELIST_ANALYTICS_EVENT_STUDENT = {
// whitelist the events here
[PLATFORM_EVENT_STUDENT.YOU_HAVE_SEEN_THE_ANALYTICS_USAGE]: ['mixpanel', 'webengage'],
};
This will make sure that the event is also getting tracked on the specified plugin.
Feature-specific events should be added in the {{your-feature}}-analytics-events.ts which then needs to be imported in the following path:
- features/
- analytics-events/
- whitelist-events.ts
- analytics-events/
const FEATURE_ANALYTICS_EVENT = {
// Define events here
YOU_HAVE_SEEN_THE_FEATURE_ANALYTICS_USAGE: 'you_have_seen_the_feature_analytics_usage',
};
Simply whitelist the events that you have added above
const PLATFORM_WHITELIST_ANALYTICS_EVENT_STUDENT = {
// whitelist the events here
[FEATURE_ANALYTICS_EVENT.YOU_HAVE_SEEN_THE_FEATURE_ANALYTICS_USAGE]: ['mixpanel', 'webengage'],
};
This will make sure that the event is also getting tracked on the specified plugin.
Common troubleshooting steps while using storybook:
- If Google Places Search is not working, run on
local.cuemath.com:PORT
instead oflocalhost:PORT
- For worksheet story please run on
local-teacher.cuemath.com:PORT
instead oflocalhost:PORT
, also you may need to update the security object