Skip to content

Commit

Permalink
Remove event calypso_signup_unified_design_picker_view (#98065)
Browse files Browse the repository at this point in the history
  • Loading branch information
taipeicoder authored Jan 8, 2025
1 parent c81fb35 commit 6192acb
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
} );
Expand Down

0 comments on commit 6192acb

Please sign in to comment.