Merge pull request #5859 from edx/renzo/track-form-expansions
Track logistration form toggles and password reset form views
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
var edx = edx || {};
|
||||
|
||||
(function($, _, Backbone, gettext) {
|
||||
(function($, _, Backbone, gettext, analytics) {
|
||||
'use strict';
|
||||
|
||||
edx.student = edx.student || {};
|
||||
@@ -125,6 +125,10 @@ var edx = edx || {};
|
||||
},
|
||||
|
||||
resetPassword: function() {
|
||||
analytics.track('edx.bi.password_reset_form.viewed', {
|
||||
category: 'user-engagement'
|
||||
});
|
||||
|
||||
this.element.hide( this.$header );
|
||||
this.element.hide( $(this.el).find('.form-type') );
|
||||
this.loadForm('reset');
|
||||
@@ -135,6 +139,10 @@ var edx = edx || {};
|
||||
$form = $('#' + type + '-form'),
|
||||
$anchor = $('#' + type + '-anchor');
|
||||
|
||||
analytics.track('edx.bi.' + type + '_form.toggled', {
|
||||
category: 'user-engagement'
|
||||
});
|
||||
|
||||
if ( !this.form.isLoaded( $form ) ) {
|
||||
this.loadForm( type );
|
||||
}
|
||||
@@ -170,4 +178,4 @@ var edx = edx || {};
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery, _, Backbone, gettext);
|
||||
})(jQuery, _, Backbone, gettext, analytics);
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
<![endif]-->
|
||||
|
||||
<%include file="widgets/optimizely.html" />
|
||||
<%include file="widgets/segment-io.html" />
|
||||
|
||||
<meta name="path_prefix" content="${EDX_ROOT_URL}">
|
||||
<meta name="google-site-verification" content="_mipQ4AtZQDNmbtOkwehQDOgCxUUV2fb_C0b6wbiRHY" />
|
||||
@@ -151,8 +152,6 @@
|
||||
% endif
|
||||
|
||||
<%block name="js_extra"/>
|
||||
|
||||
<%include file="widgets/segment-io.html" />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user