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
698c9b59
Commit
698c9b59
authored
Sep 12, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5184 from edx/renzo/upsell-tracking
Add tracking on expand of upsell message
parents
8b92bd15
22f58be4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
+6
-15
lms/templates/dashboard.html
+6
-10
lms/templates/dashboard/_dashboard_course_listing.html
+0
-5
No files found.
lms/templates/dashboard.html
View file @
698c9b59
...
...
@@ -5,7 +5,6 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
import
waffle
%
>
<
%
...
...
@@ -31,6 +30,12 @@
(
e
).
preventDefault
();
$
(
this
).
closest
(
'.message.is-expandable'
).
toggleClass
(
'is-expanded'
);
course
=
$
(
"#upgrade-to-verified"
).
data
(
"course-id"
);
analytics
.
track
(
'edx.bi.dashboard.upsell_copy.clicked'
,
{
category
:
'user-engagement'
,
label
:
course
});
}
$
(
"#failed-verification-button-dismiss"
).
click
(
function
(
event
)
{
...
...
@@ -45,15 +50,6 @@
user
=
$
(
event
.
target
).
data
(
"user"
);
course
=
$
(
event
.
target
).
data
(
"course-id"
);
Logger
.
log
(
'edx.course.enrollment.upgrade.clicked'
,
[
user
,
course
],
null
);
%
if
waffle
.
flag_is_active
(
request
,
'alternate_upsell_copy'
):
analytics
.
track
(
"Clicked on Alternate Upsell Copy"
,
{
course
:
course
});
%
else
:
analytics
.
track
(
"Clicked on Regular Upsell Copy"
,
{
course
:
course
});
%
endif
});
$
(
".email-settings"
).
click
(
function
(
event
)
{
...
...
lms/templates/dashboard/_dashboard_course_listing.html
View file @
698c9b59
...
...
@@ -4,7 +4,6 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
courseware
.
courses
import
course_image_url
,
get_course_about_section
import
waffle
%
>
<
%
...
...
@@ -107,11 +106,7 @@
<div
class=
"wrapper-tip"
>
<h4
class=
"message-title"
>
<i
class=
"icon-caret-down ui-toggle-expansion"
></i>
% if waffle.flag_is_active(request, 'alternate_upsell_copy'):
<span
class=
"value"
>
${_("Document your accomplishment!")}
</span>
% else:
<span
class=
"value"
>
${_("Challenge Yourself!")}
</span>
% endif
</h4>
<p
class=
"message-copy"
>
${_("Take this course as an ID-verified student.")}
</p>
</div>
...
...
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