Add the wccore_subscriptions_empty_state_get_started_error tracking event.

This commit is contained in:
Chris Aprea 2022-05-11 09:05:35 +10:00
parent e071bf1d4b
commit 4336b3a390
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ const GetStartedButton: React.FC< GetStartedButtonProps > = ( {
window.location.href = newSubscriptionProductUrl;
} )
.catch( () => {
recordEvent(
'wccore_subscriptions_empty_state_get_started_error'
);
setIsGettingStarted( false );
setHasError( true );
} );