From 6192acbe356ee607cd9c7dd0424e859ec392e595 Mon Sep 17 00:00:00 2001 From: Griffith Chen Date: Wed, 8 Jan 2025 15:13:04 +0800 Subject: [PATCH] Remove event calypso_signup_unified_design_picker_view (#98065) --- .../design-setup/unified-design-picker.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/design-setup/unified-design-picker.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/design-setup/unified-design-picker.tsx index a45b59aa40f8d..b4f0d567d0bf1 100644 --- a/client/landing/stepper/declarative-flow/internals/steps-repository/design-setup/unified-design-picker.tsx +++ b/client/landing/stepper/declarative-flow/internals/steps-repository/design-setup/unified-design-picker.tsx @@ -28,7 +28,7 @@ import { StepContainer, DESIGN_FIRST_FLOW, ONBOARDING_FLOW } from '@automattic/o import { useSelect, useDispatch } from '@wordpress/data'; import { addQueryArgs } from '@wordpress/url'; import { useTranslate } from 'i18n-calypso'; -import { useRef, useState, useEffect } from 'react'; +import { useState, useEffect } from 'react'; import AsyncLoad from 'calypso/components/async-load'; import QueryEligibility from 'calypso/components/data/query-atat-eligibility'; import { useQueryProductsList } from 'calypso/components/data/query-products-list'; @@ -231,14 +231,6 @@ const UnifiedDesignPickerStep: Step = ( { navigation, flow, stepName } ) => { ); const designs = allDesigns?.designs ?? EMPTY_ARRAY; - const hasTrackedView = useRef( false ); - useEffect( () => { - if ( ! hasTrackedView.current && designs.length > 0 ) { - hasTrackedView.current = true; - recordTracksEvent( 'calypso_signup_unified_design_picker_view' ); - } - }, [ hasTrackedView, designs ] ); - const categorizationOptions = getCategorizationOptions( goals, { isMultiSelection: isGoalCentricFeature, } );