Skip to content

Commit

Permalink
feat: add mobile metrics and add new events for v2 and v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-deriv committed Apr 4, 2024
1 parent b3f8674 commit f66d0c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deriv-com/analytics",
"version": "1.4.13",
"version": "1.4.14",
"description": "The analytics package contains all the utility functions used for tracking user events and sending them to the respective platform such as Rudderstack.",
"keywords": [
"rudderstack",
Expand Down
7 changes: 5 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ type TradersHubOnboardingFormAction = {
type UpgradeMT5BannerAction = {
action: 'open' | 'push_cta_upgrade'
}
type PerformanceMetricsAction = {
type TradersHubPerformanceMetricsAction = {
action:
| 'create_mt5_account_time'
| 'create_dxtrade_account_time'
Expand All @@ -358,6 +358,7 @@ type PerformanceMetricsAction = {
| 'switch_from_demo_to_real_time'
| 'switch_from_real_to_demo_time'
value: number
device: 'desktop' | 'mobile' | 'tablet'
}

export type TEvents = {
Expand All @@ -382,5 +383,7 @@ export type TEvents = {
ce_reports_form: ReportsFormAction
ce_tradershub_onboarding_form: TradersHubOnboardingFormAction
ce_upgrade_mt5_banner: UpgradeMT5BannerAction
ce_performance_metrics: PerformanceMetricsAction
ce_traders_hub_performance_metrics: TradersHubPerformanceMetricsAction
ce_traders_hub_v2_performance_metrics: TradersHubPerformanceMetricsAction
ce_traders_hub_v3_performance_metrics: TradersHubPerformanceMetricsAction
}

0 comments on commit f66d0c3

Please sign in to comment.