From f086a165e2e5490e870cf7b8b7c479f534fab0bf Mon Sep 17 00:00:00 2001 From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:01:26 +0500 Subject: [PATCH] fix: removed duplicate registration events (#1333) --- src/register/RegistrationPage.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/register/RegistrationPage.jsx b/src/register/RegistrationPage.jsx index b77d758d..16d0e0b1 100644 --- a/src/register/RegistrationPage.jsx +++ b/src/register/RegistrationPage.jsx @@ -43,7 +43,6 @@ import { ELEMENT_NAME, ELEMENT_TEXT, ELEMENT_TYPES, PAGE_TYPES, } from '../cohesion/constants'; import { setCohesionEventStates } from '../cohesion/data/actions'; -import trackCohesionEvent from '../cohesion/trackers'; import { getThirdPartyAuthContext as getRegistrationDataFromBackend } from '../common-components/data/actions'; import EnterpriseSSO from '../common-components/EnterpriseSSO'; import ThirdPartyAuth from '../common-components/ThirdPartyAuth'; @@ -94,7 +93,6 @@ const RegistrationPage = (props) => { const providers = useSelector(state => state.commonComponents.thirdPartyAuthContext.providers); const secondaryProviders = useSelector(state => state.commonComponents.thirdPartyAuthContext.secondaryProviders); const pipelineUserDetails = useSelector(state => state.commonComponents.thirdPartyAuthContext.pipelineUserDetails); - const cohesionEventData = useSelector(state => state.cohesion.eventData); const backendValidations = useSelector(getBackendValidations); const queryParams = useMemo(() => getAllPossibleQueryParams(), []); @@ -191,9 +189,6 @@ const RegistrationPage = (props) => { // This event is used by GTM trackRegistrationSuccess(); - // This event is used by cohestion upon successful registration - trackCohesionEvent(cohesionEventData); - // This is used by the "User Retention Rate Event" on GTM setCookie(getConfig().USER_RETENTION_COOKIE_NAME, true); @@ -202,7 +197,7 @@ const RegistrationPage = (props) => { // Remove this cookie that was set to capture marketingEmailsOptIn for the onboarding component removeCookie('ssoPipelineRedirectionDone'); } - }, [registrationResult, cohesionEventData]); + }, [registrationResult]); const handleOnChange = (event) => { const { name } = event.target;