diff --git a/web/satellite/src/components/accessGrants/steps/CreatePassphraseStep.vue b/web/satellite/src/components/accessGrants/steps/CreatePassphraseStep.vue index 15869e184..c45a03f54 100644 --- a/web/satellite/src/components/accessGrants/steps/CreatePassphraseStep.vue +++ b/web/satellite/src/components/accessGrants/steps/CreatePassphraseStep.vue @@ -47,7 +47,7 @@ diff --git a/web/satellite/src/components/accessGrants/steps/ResultStep.vue b/web/satellite/src/components/accessGrants/steps/ResultStep.vue index 171904ea4..627375b6d 100644 --- a/web/satellite/src/components/accessGrants/steps/ResultStep.vue +++ b/web/satellite/src/components/accessGrants/steps/ResultStep.vue @@ -122,6 +122,7 @@ import HideIcon from '@/../static/images/common/BlackArrowHide.svg'; import { RouteConfig } from '@/router'; import { ACCESS_GRANTS_ACTIONS } from '@/store/modules/accessGrants'; import { GatewayCredentials } from '@/types/accessGrants'; +import { SegmentEvent } from '@/utils/constants/analyticsEventNames'; import { MetaUtils } from '@/utils/meta'; @Component({ @@ -274,6 +275,14 @@ export default class ResultStep extends Vue { await this.$notify.success('Gateway credentials were generated successfully'); this.areKeysVisible = true; + + const satelliteName: string = MetaUtils.getMetaContent('satellite-name'); + + this.$segment.track(SegmentEvent.GENERATE_GATEWAY_CREDENTIALS_CLICKED, { + satelliteName: satelliteName, + email: this.$store.getters.user.email, + }); + this.isLoading = false; } catch (error) { await this.$notify.error(error.message); diff --git a/web/satellite/src/utils/constants/analyticsEventNames.ts b/web/satellite/src/utils/constants/analyticsEventNames.ts index 7b2af7ea2..b586e8a76 100644 --- a/web/satellite/src/utils/constants/analyticsEventNames.ts +++ b/web/satellite/src/utils/constants/analyticsEventNames.ts @@ -19,4 +19,5 @@ export enum SegmentEvent { TEAM_MEMBER_INVITED = 'Team Member Invited', TEAM_VIEWED = 'Team Viewed', CLI_DOCS_VIEWED = 'Uplink CLI Docs Viewed', + GENERATE_GATEWAY_CREDENTIALS_CLICKED = 'Generate Gateway Credentials Clicked', }