Add the wccore_subscriptions_empty_state_view tracking event.
This commit is contained in:
parent
c421733dec
commit
fc55f14fdd
|
@ -2,7 +2,11 @@
|
|||
* External dependencies
|
||||
*/
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { createInterpolateElement, useState } from '@wordpress/element';
|
||||
import {
|
||||
createInterpolateElement,
|
||||
useEffect,
|
||||
useState,
|
||||
} from '@wordpress/element';
|
||||
import { Button, Card, CardBody, Notice } from '@wordpress/components';
|
||||
import { PLUGINS_STORE_NAME, OPTIONS_STORE_NAME } from '@woocommerce/data';
|
||||
import { useDispatch } from '@wordpress/data';
|
||||
|
@ -263,6 +267,10 @@ const OnboardingSteps = () => (
|
|||
const SubscriptionsPage = () => {
|
||||
const [ hasError, setHasError ] = useState( false );
|
||||
|
||||
useEffect( () => {
|
||||
recordEvent( 'wccore_subscriptions_empty_state_view' );
|
||||
}, [] );
|
||||
|
||||
return (
|
||||
<>
|
||||
{ hasError && <ErrorNotice /> }
|
||||
|
|
Loading…
Reference in New Issue