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
0cc0a454
Commit
0cc0a454
authored
Apr 22, 2016
by
Ahsan Ulhaq
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12213 from edx/ahsan/ECOM-4101-Call-analytics-track-on-receipt-page
Call analytics.track on receipt page
parents
9f95c358
3bfaf603
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lms/static/js/commerce/views/receipt_view.js
+10
-0
No files found.
lms/static/js/commerce/views/receipt_view.js
View file @
0cc0a454
...
...
@@ -47,6 +47,8 @@ var edx = edx || {};
this
.
trackLinks
();
this
.
trackPurchase
(
data
);
this
.
renderCourseNamePlaceholder
(
this
.
courseKey
);
providerId
=
this
.
getCreditProviderId
(
data
);
...
...
@@ -77,6 +79,14 @@ var edx = edx || {};
$
(
'#error-container'
).
removeClass
(
'hidden'
);
},
trackPurchase
:
function
(
order
)
{
window
.
analytics
.
track
(
"Completed Order"
,
{
orderId
:
order
.
number
,
total
:
order
.
total_excl_tax
,
currency
:
order
.
currency
});
},
render
:
function
()
{
var
self
=
this
,
orderId
=
this
.
ecommerceOrderNumber
||
this
.
ecommerceBasketId
||
$
.
url
(
'?payment-order-num'
);
...
...
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