diff --git a/web/satellite/src/components/onboardingTour/steps/OverviewStep.vue b/web/satellite/src/components/onboardingTour/steps/OverviewStep.vue index 55a84498a..699df8354 100644 --- a/web/satellite/src/components/onboardingTour/steps/OverviewStep.vue +++ b/web/satellite/src/components/onboardingTour/steps/OverviewStep.vue @@ -39,6 +39,7 @@ import { useAppStore } from '@/store/modules/appStore'; import { useConfigStore } from '@/store/modules/configStore'; import { PartneredSatellite } from '@/types/config'; import { useAnalyticsStore } from '@/store/modules/analyticsStore'; +import { OnboardingOption } from '@/types/common'; import OverviewContainer from '@/components/onboardingTour/steps/common/OverviewContainer.vue'; @@ -60,6 +61,7 @@ async function onSkip(): Promise { endOnboarding(); await router.push(projectDashboardPath); appStore.updateActiveModal(MODALS.createProjectPassphrase); + analyticsStore.linkEventTriggered(AnalyticsEvent.PATH_SELECTED, OnboardingOption.Skip); } /** @@ -68,7 +70,7 @@ async function onSkip(): Promise { */ function onUplinkCLIClick(): void { router.push(RouteConfig.OnboardingTour.with(RouteConfig.OnbCLIStep).with(RouteConfig.AGName).path); - analyticsStore.linkEventTriggered(AnalyticsEvent.PATH_SELECTED, 'CLI'); + analyticsStore.linkEventTriggered(AnalyticsEvent.PATH_SELECTED, OnboardingOption.CLI); analyticsStore.pageVisit(RouteConfig.OnboardingTour.with(RouteConfig.OnbCLIStep).with(RouteConfig.AGName).path); } @@ -78,6 +80,7 @@ function onUplinkCLIClick(): void { async function onUploadInBrowserClick(): Promise { endOnboarding(); appStore.updateActiveModal(MODALS.createProjectPassphrase); + analyticsStore.linkEventTriggered(AnalyticsEvent.PATH_SELECTED, OnboardingOption.Browser); } async function endOnboarding(): Promise { diff --git a/web/satellite/src/types/common.ts b/web/satellite/src/types/common.ts index 1f6a1cd79..7527c5156 100644 --- a/web/satellite/src/types/common.ts +++ b/web/satellite/src/types/common.ts @@ -14,6 +14,12 @@ export enum OnboardingOS { LINUX = 'linux', } +export enum OnboardingOption { + Browser = 'Continue in Browser', + CLI = 'CLI', + Skip = 'Skip', +} + export class PricingPlanInfo { constructor( public type: PricingPlanType = PricingPlanType.FREE,