Fix event tracking for pathway buttons.
Switches to tracking pathway_uuid to match the original event proposal. LEARNER-6087
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -95,14 +95,14 @@ class ProgramDetailsSidebarView extends Backbone.View {
|
||||
}
|
||||
|
||||
trackPathwayClicked(event) {
|
||||
var button = event.currentTarget;
|
||||
const button = event.currentTarget;
|
||||
|
||||
window.analytics.track('edx.bi.dashboard.program.pathway.clicked', {
|
||||
category: 'pathways',
|
||||
// Credentials uses the uuid without dashes so we are converting here for consistency
|
||||
program_uuid: this.programModel.attributes.uuid.replace(/-/g, ''),
|
||||
program_name: this.programModel.attributes.title,
|
||||
pathway_link_id: $(button).data('pathwayId'),
|
||||
pathway_link_uuid: $(button).data('pathwayUuid').replace(/-/g, ''),
|
||||
pathway_name: $(button).data('pathwayName'),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<% if (pathway.destination_url) { %>
|
||||
<div class="sidebar-button-wrapper">
|
||||
<a href="<%- pathway.destination_url %>" class="pathway-link">
|
||||
<button class="btn pathway-button sidebar-button" data-pathway-id="<%- pathway.id %>" data-pathway-name="<%- pathway.name %>"><%- gettext('Learn More') %></button>
|
||||
<button class="btn pathway-button sidebar-button" data-pathway-uuid="<%- pathway.uuid %>" data-pathway-name="<%- pathway.name %>"><%- gettext('Learn More') %></button>
|
||||
</a>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -63,7 +63,7 @@
|
||||
<% if (pathway.destination_url) { %>
|
||||
<div class="sidebar-button-wrapper">
|
||||
<a href="<%- pathway.destination_url %>" class="pathway-link">
|
||||
<button class="btn pathway-button sidebar-button" data-pathway-id="<%- pathway.id %>" data-pathway-name="<%- pathway.name %>"><%- gettext('Learn More') %></button>
|
||||
<button class="btn pathway-button sidebar-button" data-pathway-uuid="<%- pathway.uuid %>" data-pathway-name="<%- pathway.name %>"><%- gettext('Learn More') %></button>
|
||||
</a>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user