From 3cdbb5b36aaf81b0459823db9a2c9ca40f9d7b7a Mon Sep 17 00:00:00 2001 From: Zainab Amir Date: Thu, 18 Mar 2021 13:02:12 +0500 Subject: [PATCH] Track total time it takes users to register (#27020) Added a new property in edx.bi.user.account.registered event to track total time it took the user to register. VAN-413 --- openedx/core/djangoapps/user_authn/views/register.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx/core/djangoapps/user_authn/views/register.py b/openedx/core/djangoapps/user_authn/views/register.py index 0ae77188a5..c2920fd1ca 100644 --- a/openedx/core/djangoapps/user_authn/views/register.py +++ b/openedx/core/djangoapps/user_authn/views/register.py @@ -351,6 +351,7 @@ def _track_user_registration(user, profile, params, third_party_provider): 'is_year_of_birth_selected': bool(profile.year_of_birth), 'is_education_selected': bool(profile.level_of_education_display), 'is_goal_set': bool(profile.goals), + 'total_registration_time': round(float(params.get('totalRegistrationTime', '0'))), } # DENG-803: For segment events forwarded along to Hubspot, duplicate the `properties` section of # the event payload into the `traits` section so that they can be received. This is a temporary