Skip to content

Commit

Permalink
Merge pull request #9369 from google/bug/9368-standardize-rrm-notific…
Browse files Browse the repository at this point in the history
…ation-ga-events

Bug/9368 Standardize RRM notification GA events
  • Loading branch information
tofumatt authored Sep 18, 2024
2 parents 9f69bd3 + 1f38c73 commit 5d53e38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function RRMSetupSuccessSubtleNotification() {
const handleDismiss = () => {
if ( targetOnboardingStates.includes( publicationOnboardingState ) ) {
trackEvent(
`${ viewContext }_rrm-setup-success-notification`,
`${ viewContext }_setup-success-notification-rrm`,
'dismiss_notification',
publicationOnboardingState
);
Expand All @@ -130,7 +130,7 @@ function RRMSetupSuccessSubtleNotification() {

if ( targetOnboardingStates.includes( publicationOnboardingState ) ) {
trackEvent(
`${ viewContext }_rrm-setup-success-notification`,
`${ viewContext }_setup-success-notification-rrm`,
'confirm_notification',
publicationOnboardingState
);
Expand All @@ -153,7 +153,7 @@ function RRMSetupSuccessSubtleNotification() {
targetOnboardingStates.includes( publicationOnboardingState )
) {
trackEvent(
`${ viewContext }_rrm-setup-success-notification`,
`${ viewContext }_setup-success-notification-rrm`,
'view_notification',
publicationOnboardingState
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe( 'RRMSetupSuccessSubtleNotification', () => {

expect( mockTrackEvent ).toHaveBeenNthCalledWith(
1,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_rrm-setup-success-notification`,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_setup-success-notification-rrm`,
'view_notification',
onboardingState
);
Expand All @@ -177,7 +177,7 @@ describe( 'RRMSetupSuccessSubtleNotification', () => {

expect( mockTrackEvent ).toHaveBeenNthCalledWith(
2,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_rrm-setup-success-notification`,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_setup-success-notification-rrm`,
'confirm_notification',
onboardingState
);
Expand Down Expand Up @@ -210,7 +210,7 @@ describe( 'RRMSetupSuccessSubtleNotification', () => {

expect( mockTrackEvent ).toHaveBeenNthCalledWith(
1,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_rrm-setup-success-notification`,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_setup-success-notification-rrm`,
'view_notification',
onboardingState
);
Expand All @@ -221,7 +221,7 @@ describe( 'RRMSetupSuccessSubtleNotification', () => {

expect( mockTrackEvent ).toHaveBeenNthCalledWith(
2,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_rrm-setup-success-notification`,
`${ VIEW_CONTEXT_MAIN_DASHBOARD }_setup-success-notification-rrm`,
'dismiss_notification',
onboardingState
);
Expand Down

0 comments on commit 5d53e38

Please sign in to comment.