Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: track click on onboarding guide tutorial link #1510

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
6 changes: 3 additions & 3 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-support": "0.4.58",
"@prismicio/editor-ui": "0.4.58",
"@prismicio/editor-fields": "0.4.59",
"@prismicio/editor-support": "0.4.59",
"@prismicio/editor-ui": "0.4.59",
"@prismicio/mock": "0.3.3",
"@prismicio/mocks": "2.5.0",
"@prismicio/simulator": "0.1.4",
Expand Down
Loading
Loading