From 12dd97af618a4d3e71f6974331a69cbfc69e6496 Mon Sep 17 00:00:00 2001 From: Attiya Ishaque Date: Thu, 13 Apr 2023 12:54:29 +0500 Subject: [PATCH] fix: [VAN-1367] Remove Optimizely web from Authn (#843) --- public/index.html | 9 --------- src/login/LoginPage.jsx | 7 ------- src/register/RegistrationPage.jsx | 7 ------- 3 files changed, 23 deletions(-) diff --git a/public/index.html b/public/index.html index 6e8dd17e..b5eed270 100644 --- a/public/index.html +++ b/public/index.html @@ -4,15 +4,6 @@ Authn | <%= process.env.SITE_NAME %> - <% if (process.env.OPTIMIZELY_URL) { %> - - <% } else if (process.env.OPTIMIZELY_PROJECT_ID) { %> - - <% } %>
diff --git a/src/login/LoginPage.jsx b/src/login/LoginPage.jsx index b522f217..e1d37305 100644 --- a/src/login/LoginPage.jsx +++ b/src/login/LoginPage.jsx @@ -232,13 +232,6 @@ class LoginPage extends React.Component { } if (this.props.loginResult.success) { setSurveyCookie('login'); - - // Fire optimizely events - window.optimizely = window.optimizely || []; - window.optimizely.push({ - type: 'event', - eventName: 'authn-login-coversion', - }); } return ( diff --git a/src/register/RegistrationPage.jsx b/src/register/RegistrationPage.jsx index 878b6419..4f93bad2 100644 --- a/src/register/RegistrationPage.jsx +++ b/src/register/RegistrationPage.jsx @@ -227,13 +227,6 @@ const RegistrationPage = (props) => { setCookie(getConfig().REGISTER_CONVERSION_COOKIE_NAME, true); setCookie('authn-returning-user'); - // Fire optimizely events - window.optimizely = window.optimizely || []; - window.optimizely.push({ - type: 'event', - eventName: 'authn-register-conversion', - }); - // Fire GTM event used for integration with impact.com window.dataLayer = window.dataLayer || []; window.dataLayer.push({