Track Workflow deactivated

[MAILPOET-4756]
This commit is contained in:
David Remer
2022-11-07 08:34:10 +02:00
committed by Jan Jakeš
parent c6198cba4c
commit d76c5d32f2

View File

@@ -133,6 +133,10 @@ export function* deactivate(deactivateWorkflowRuns = true) {
type: 'snackbar',
},
);
MailPoet.trackEvent('Automations > Workflow deactivated', {
type: 'immediate',
});
}
if (
!deactivateWorkflowRuns &&
@@ -148,6 +152,9 @@ export function* deactivate(deactivateWorkflowRuns = true) {
type: 'snackbar',
},
);
MailPoet.trackEvent('Automations > Workflow deactivated', {
type: 'continuous',
});
}
return {