Permalink
Browse files

metrics

  • Loading branch information...
aehlke committed Feb 16, 2012
1 parent 63149e8 commit c255bd150a656eb788656efdbf3defaa3a931787
Showing with 3 additions and 1 deletion.
  1. +2 −1 apps/flashcards/templates/flashcards/reviews.html
  2. +1 −0 static/js/reviews/reviews_ui.js
@@ -79,6 +79,7 @@
Show Answer
</div>
<script type="dojo/connect" event="onClick" args="evt">
+ _kmq.push(['record', 'Clicked "Show Answer"']);
reviews_ui.showCardBack(reviews_ui.session.currentCard);
</script>
</button>
@@ -150,7 +151,7 @@
<div style="clear:both"></div>
</div>
<div style="margin-top:1em;text-align:center;">
- <img src="{{ STATIC_URL }}css/dojo_themes/tundra/images/icons/information.png" style="position:relative;top:3px"> <span class="fakeLink" id="reviews_gradesHelpLink" style="font-size:12px;color:#0174DF" onclick="dijit.byId('reviews_gradesHelpDialog').show()">How do I know which button to press?</span>
+ <img src="{{ STATIC_URL }}css/dojo_themes/tundra/images/icons/information.png" style="position:relative;top:3px"> <span class="fakeLink" id="reviews_gradesHelpLink" style="font-size:12px;color:#0174DF" onclick="_kmq.push(['record', 'Clicked grades help link']); dijit.byId('reviews_gradesHelpDialog').show()">How do I know which button to press?</span>
</div>
<div id="reviews_gradesHelpDialog" dojoType="dijit.Dialog">
<div style="width:40em">
@@ -161,6 +161,7 @@ reviews_ui.showCardBack = function(card) {
reviews_ui.reviewCard = function(grade) {
reviews_ui.session.reviewCurrentCard(grade).then(function(data) {
// Enable the Undo button (maybe should do this before the def?)
+ _kmq.push(['record', 'Reviewed a card', {grade: grade}]);
reviews_undoReviewButton.set('disabled', false);
//FIXME anything go here?
});

0 comments on commit c255bd1

Please sign in to comment.