Skip to content

Commit

Permalink
feat: track click on onboarding guide tutorial link
Browse files Browse the repository at this point in the history
  • Loading branch information
BohdanOne committed Dec 17, 2024
1 parent 5d6f55c commit ac72c52
Show file tree
Hide file tree
Showing 3 changed files with 1,135 additions and 14 deletions.
9 changes: 8 additions & 1 deletion packages/manager/src/managers/telemetry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const SegmentEventType = {
sharedOnboarding_step_opened: "shared-onboarding:step-opened",
sharedOnboarding_step_completed: "shared-onboarding:step-completed",
sharedOnboarding_completed: "shared-onboarding:completed",
sharedOnboarding_tutorial: "shared-onboarding:follow-tutorial",
} as const;
type SegmentEventTypes =
(typeof SegmentEventType)[keyof typeof SegmentEventType];
Expand Down Expand Up @@ -107,6 +108,8 @@ export const HumanSegmentEventType = {
"Prismic Onboarding Guide Step Open",
[SegmentEventType.sharedOnboarding_completed]:
"Prismic Onboarding Guide Completed",
[SegmentEventType.sharedOnboarding_tutorial]:
"Prismic Onboarding Guide Follow Tutorial",
} as const;

export type HumanSegmentEventTypes =
Expand Down Expand Up @@ -387,7 +390,10 @@ type SliceMachineSharedOnboardingCompleted = SegmentEvent<
typeof SegmentEventType.sharedOnboarding_completed,
SharedOnboardingProperties
>;

type SliceMachineSharedOnboardingTutorial = SegmentEvent<
typeof SegmentEventType.sharedOnboarding_tutorial,
SharedOnboardingProperties
>;
type SliceMachinePostPushEmptyStateCtaClicked = SegmentEvent<
typeof SegmentEventType.postPush_emptyStateCtaClicked
>;
Expand Down Expand Up @@ -441,6 +447,7 @@ export type SegmentEvents =
| SliceMachineSharedOnboardingStepOpened
| SliceMachineSharedOnboardingStepCompleted
| SliceMachineSharedOnboardingCompleted
| SliceMachineSharedOnboardingTutorial
| SliceMachinePostPushEmptyStateCtaClicked
| SliceMachinePostPushToastCtaClicked
| SliceMachineExperimentExposure;
4 changes: 2 additions & 2 deletions packages/slice-machine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"@emotion/react": "11.11.1",
"@extractus/oembed-extractor": "3.1.8",
"@prismicio/client": "7.11.0",
"@prismicio/editor-fields": "0.4.58",
"@prismicio/editor-fields": "0.4.59-alpha.feat-track-onboarding-tutorial.0",
"@prismicio/editor-support": "0.4.58",
"@prismicio/editor-ui": "0.4.58",
"@prismicio/editor-ui": "0.4.59-alpha.feat-track-onboarding-tutorial.0",
"@prismicio/mock": "0.3.3",
"@prismicio/mocks": "2.5.0",
"@prismicio/simulator": "0.1.4",
Expand Down
Loading

0 comments on commit ac72c52

Please sign in to comment.