fix: [VAN-1367] Remove Optimizely web from Authn (#843)

This commit is contained in:
Attiya Ishaque
2023-04-13 12:54:29 +05:00
committed by GitHub
parent 8e77197459
commit 12dd97af61
3 changed files with 0 additions and 23 deletions

View File

@@ -4,15 +4,6 @@
<title>Authn | <%= process.env.SITE_NAME %></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<% if (process.env.OPTIMIZELY_URL) { %>
<script
src="<%= process.env.OPTIMIZELY_URL %>"
></script>
<% } else if (process.env.OPTIMIZELY_PROJECT_ID) { %>
<script
src="<%= process.env.MARKETING_SITE_BASE_URL %>/optimizelyjs/<%= process.env.OPTIMIZELY_PROJECT_ID %>.js"
></script>
<% } %>
</head>
<body>
<div id="root"></div>

View File

@@ -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 (

View File

@@ -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({