Permalink
Browse files

Merge pull request #3652 from mozilla/measure-dashboard-pagination-us…

…age-1177264

bug 1177264 - measure dashboard pagination usage
  • Loading branch information...
stephaniehobson committed Nov 13, 2015
2 parents 8651bef + 546d149 commit 750653264273e888c3ae967c53b45df38ef5117c
Showing with 8 additions and 1 deletion.
  1. +8 −1 kuma/dashboards/templates/dashboards/revisions.html
@@ -153,7 +153,14 @@ <h1><a href="{{ url('dashboards.revisions') }}">{{ title }}</a></h1>
// AJAX loads for pagination
$revisionReplaceBlock.on('click', '.pagination a', function (e) {
e.preventDefault();
$pageInput.val(/page=([^&#]*)/.exec(this.href)[1]);
var pageNum = /page=([^&#]*)/.exec(this.href)[1];
var linkText = this.text.trim();
mdn.analytics.trackEvent({
category: 'Dashboard Pagination',
action: pageNum,
label: linkText
});
$pageInput.val(pageNum);
$filterForm.submit();
});

0 comments on commit 7506532

Please sign in to comment.