summaryrefslogtreecommitdiffstats
path: root/pages/tutorial.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2012-04-25 23:19:52 -0700
committerraylu <raylu@mixpanel.com>2012-04-25 23:19:52 -0700
commitdf71da70062b9f70d9906fa7df7350d47be79acc (patch)
treec6deaaa183640703fefb5068e02c7a2aa96aec68 /pages/tutorial.php
parentc8783d4dc257913ba527d469c88d7b97770be3de (diff)
downloadpathery-df71da70062b9f70d9906fa7df7350d47be79acc.tar.xz
add tutorial and map difficulty tracking
Diffstat (limited to 'pages/tutorial.php')
-rw-r--r--pages/tutorial.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/tutorial.php b/pages/tutorial.php
index ed4aa9e..7830ef4 100644
--- a/pages/tutorial.php
+++ b/pages/tutorial.php
@@ -202,6 +202,7 @@ function TutorialView(low, high) {
this.nextbtn = document.getElementById('nextbtn');
this.prevbtn = document.getElementById('prevbtn');
this.interval1 = this.interval2 = null;
+ mixpanel.track('tutorial', {'step': this.cur});
}
TutorialView.prototype.showTutorial = function(num) {
for (var i = this.low; i <= this.high; i++) {
@@ -232,6 +233,7 @@ TutorialView.prototype.next = function() {
//this.nextbtn.className += ' disabled';
}
this.prevbtn.className = this.prevbtn.className.replace(' hidden', '');
+ mixpanel.track('tutorial', {'step': this.cur});
}
TutorialView.prototype.prev = function() {
this.showTutorial(--this.cur);
@@ -257,7 +259,6 @@ TutorialView.prototype.unlock = function(n) {
}, 600);
}
}
-
}
</script>