Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
aeeb45cf
Commit
aeeb45cf
authored
Dec 19, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update virtual pageview event categories, general polish
parent
3d717a89
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
33 additions
and
14 deletions
+33
-14
lms/static/js/verify_student/views/enrollment_confirmation_step_view.js
+6
-1
lms/static/js/verify_student/views/face_photo_step_view.js
+3
-0
lms/static/js/verify_student/views/id_photo_step_view.js
+3
-0
lms/static/js/verify_student/views/intro_step_view.js
+3
-0
lms/static/js/verify_student/views/make_payment_step_view.js
+4
-1
lms/static/js/verify_student/views/payment_confirmation_step_view.js
+10
-8
lms/static/js/verify_student/views/review_photos_step_view.js
+4
-1
lms/static/js/verify_student/views/step_view.js
+0
-3
No files found.
lms/static/js/verify_student/views/enrollment_confirmation_step_view.js
View file @
aeeb45cf
...
@@ -11,6 +11,11 @@ var edx = edx || {};
...
@@ -11,6 +11,11 @@ var edx = edx || {};
// Currently, this step does not need to install any event handlers,
// Currently, this step does not need to install any event handlers,
// since the displayed information is static.
// since the displayed information is static.
edx
.
verify_student
.
EnrollmentConfirmationStepView
=
edx
.
verify_student
.
StepView
.
extend
({});
edx
.
verify_student
.
EnrollmentConfirmationStepView
=
edx
.
verify_student
.
StepView
.
extend
({
postRender
:
function
()
{
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'verification'
,
this
.
templateName
);
}
});
})(
jQuery
);
})(
jQuery
);
lms/static/js/verify_student/views/face_photo_step_view.js
View file @
aeeb45cf
...
@@ -19,6 +19,9 @@ var edx = edx || {};
...
@@ -19,6 +19,9 @@ var edx = edx || {};
errorModel
:
this
.
errorModel
errorModel
:
this
.
errorModel
}).
render
();
}).
render
();
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'verification'
,
this
.
templateName
);
this
.
listenTo
(
webcam
,
'imageCaptured'
,
function
()
{
this
.
listenTo
(
webcam
,
'imageCaptured'
,
function
()
{
// Track the user's successful image capture
// Track the user's successful image capture
window
.
analytics
.
track
(
'edx.bi.user.face_image.captured'
,
{
window
.
analytics
.
track
(
'edx.bi.user.face_image.captured'
,
{
...
...
lms/static/js/verify_student/views/id_photo_step_view.js
View file @
aeeb45cf
...
@@ -19,6 +19,9 @@ var edx = edx || {};
...
@@ -19,6 +19,9 @@ var edx = edx || {};
errorModel
:
this
.
errorModel
errorModel
:
this
.
errorModel
}).
render
();
}).
render
();
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'verification'
,
this
.
templateName
);
this
.
listenTo
(
webcam
,
'imageCaptured'
,
function
()
{
this
.
listenTo
(
webcam
,
'imageCaptured'
,
function
()
{
// Track the user's successful image capture
// Track the user's successful image capture
window
.
analytics
.
track
(
'edx.bi.user.identification_image.captured'
,
{
window
.
analytics
.
track
(
'edx.bi.user.identification_image.captured'
,
{
...
...
lms/static/js/verify_student/views/intro_step_view.js
View file @
aeeb45cf
...
@@ -21,6 +21,9 @@ var edx = edx || {};
...
@@ -21,6 +21,9 @@ var edx = edx || {};
el
:
$
(
'.requirements-container'
,
this
.
el
),
el
:
$
(
'.requirements-container'
,
this
.
el
),
requirements
:
this
.
stepData
.
requirements
requirements
:
this
.
stepData
.
requirements
}).
render
();
}).
render
();
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'verification'
,
this
.
templateName
);
}
}
});
});
...
...
lms/static/js/verify_student/views/make_payment_step_view.js
View file @
aeeb45cf
...
@@ -17,6 +17,9 @@ var edx = edx || {};
...
@@ -17,6 +17,9 @@ var edx = edx || {};
requirements
:
this
.
stepData
.
requirements
requirements
:
this
.
stepData
.
requirements
}).
render
();
}).
render
();
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'payment'
,
this
.
templateName
);
// Update the contribution amount with the amount the user
// Update the contribution amount with the amount the user
// selected in a previous screen.
// selected in a previous screen.
if
(
this
.
stepData
.
contributionAmount
)
{
if
(
this
.
stepData
.
contributionAmount
)
{
...
@@ -84,7 +87,7 @@ var edx = edx || {};
...
@@ -84,7 +87,7 @@ var edx = edx || {};
// Marketing needs a way to tell the difference between users
// Marketing needs a way to tell the difference between users
// leaving for the payment processor and users dropping off on
// leaving for the payment processor and users dropping off on
// this page. A virtual pageview can be used to do this.
// this page. A virtual pageview can be used to do this.
window
.
analytics
.
page
(
'
verification
'
,
'payment_processor_step'
);
window
.
analytics
.
page
(
'
payment
'
,
'payment_processor_step'
);
form
.
submit
();
form
.
submit
();
},
},
...
...
lms/static/js/verify_student/views/payment_confirmation_step_view.js
View file @
aeeb45cf
...
@@ -71,18 +71,20 @@ var edx = edx || {};
...
@@ -71,18 +71,20 @@ var edx = edx || {};
* those used to track business intelligence events.
* those used to track business intelligence events.
*/
*/
postRender
:
function
()
{
postRender
:
function
()
{
var
$verifyNowButton
=
$
(
'#verify_now_button'
),
$verifyLaterButton
=
$
(
'#verify_later_button'
);
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'payment'
,
this
.
templateName
);
// Track the user's decision to verify immediately
// Track the user's decision to verify immediately
$
(
'#verify_now_button'
).
on
(
'click'
,
function
()
{
window
.
analytics
.
trackLink
(
$verifyNowButton
,
'edx.bi.user.verification.immediate'
,
{
window
.
analytics
.
track
(
'edx.bi.user.verification.immediate'
,
{
category
:
'verification'
category
:
'verification'
});
});
});
// Track the user's decision to defer their verification
// Track the user's decision to defer their verification
$
(
'#verify_later_button'
).
on
(
'click'
,
function
()
{
window
.
analytics
.
trackLink
(
$verifyLaterButton
,
'edx.bi.user.verification.deferred'
,
{
window
.
analytics
.
track
(
'edx.bi.user.verification.deferred'
,
{
category
:
'verification'
category
:
'verification'
});
});
});
},
},
...
...
lms/static/js/verify_student/views/review_photos_step_view.js
View file @
aeeb45cf
...
@@ -30,6 +30,9 @@ var edx = edx || {};
...
@@ -30,6 +30,9 @@ var edx = edx || {};
// When moving to the next step, submit photos for verification
// When moving to the next step, submit photos for verification
$
(
'#next_step_button'
).
on
(
'click'
,
_
.
bind
(
this
.
submitPhotos
,
this
)
);
$
(
'#next_step_button'
).
on
(
'click'
,
_
.
bind
(
this
.
submitPhotos
,
this
)
);
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'verification'
,
this
.
templateName
);
},
},
toggleSubmitEnabled
:
function
()
{
toggleSubmitEnabled
:
function
()
{
...
@@ -38,7 +41,7 @@ var edx = edx || {};
...
@@ -38,7 +41,7 @@ var edx = edx || {};
retakePhotos
:
function
()
{
retakePhotos
:
function
()
{
// Track the user's intent to retake their photos
// Track the user's intent to retake their photos
window
.
analytics
.
track
(
'edx.bi.user.
verification_
images.retaken'
,
{
window
.
analytics
.
track
(
'edx.bi.user.images.retaken'
,
{
category
:
'verification'
category
:
'verification'
});
});
...
...
lms/static/js/verify_student/views/step_view.js
View file @
aeeb45cf
...
@@ -47,9 +47,6 @@
...
@@ -47,9 +47,6 @@
this
.
postRender
();
this
.
postRender
();
}
}
).
fail
(
_
.
bind
(
this
.
handleError
,
this
)
);
).
fail
(
_
.
bind
(
this
.
handleError
,
this
)
);
// Track a virtual pageview, for easy funnel reconstruction.
window
.
analytics
.
page
(
'verification'
,
this
.
templateName
);
},
},
handleResponse
:
function
(
data
)
{
handleResponse
:
function
(
data
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment