Permalink
Browse files

metrics

  • Loading branch information...
1 parent c255bd1 commit fd634741bdc1252981d96391bcf8664c94d5007a @aehlke committed Feb 16, 2012
Showing with 7 additions and 1 deletion.
  1. +3 −1 apps/books/templates/books/book_detail.html
  2. +4 −0 apps/books/templates/books/book_list.html
@@ -30,7 +30,9 @@ <h1>Textbook Flashcards</h1>
{% endwith %}
</ul>
-
+<script type="text/javascript">
+ _kmq.push(['record', 'Viewed book detail', {book_id: '{{ book.id }}'}]);
+</script>
{% endblock %}
@@ -33,6 +33,10 @@ <h1>Textbook Flashcards</h1>
{% endfor %}
</ul>
+<script type="text/javascript">
+ _kmq.push(['record', 'Viewed book list']);
+</script>
+
{% endblock %}

0 comments on commit fd63474

Please sign in to comment.