diff --git a/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceHelper.js b/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceHelper.js index b2152be5b5..674a8d6406 100644 --- a/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceHelper.js +++ b/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceHelper.js @@ -4,7 +4,6 @@ const AnalyticsManager = require('./AnalyticsManager') function clearSource(session) { if (session) { - delete session.required_login_for delete session.required_login_from_product_medium delete session.required_login_from_product_source } @@ -105,14 +104,6 @@ function addUserProperties(userId, session) { ) } - if (session.required_login_for) { - AnalyticsManager.setUserPropertyForUser( - userId, - `registered-from-${session.required_login_for}`, - true - ) - } - if (session.inbound) { if (session.inbound.referrer && session.inbound.referrer.medium) { AnalyticsManager.setUserPropertyForUser( diff --git a/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceMiddleware.js b/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceMiddleware.js index 7c1b631cc4..b1c0571355 100644 --- a/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceMiddleware.js +++ b/services/web/app/src/Features/Analytics/AnalyticsRegistrationSourceMiddleware.js @@ -6,7 +6,6 @@ const SessionManager = require('../../Features/Authentication/SessionManager') function setSource(medium, source) { return function (req, res, next) { if (req.session) { - req.session.required_login_for = medium req.session.required_login_from_product_medium = medium if (source) { req.session.required_login_from_product_source = source