commit | 6411b957db618d9bb7a070639ab9b899262f86cf | [log] [tgz] |
---|---|---|
author | Francesc Campoy <campoy@golang.org> | Tue Aug 26 19:51:00 2014 -0700 |
committer | Francesc Campoy <campoy@golang.org> | Tue Aug 26 19:51:00 2014 -0700 |
tree | 0a3e4e53476e597a7e18782d3c7e1912c860de6e | |
parent | 00bdf28918cb629548825c0442b319f529f15533 [diff] |
[release-branch.go1.2] go-tour: add analytics to old tour. LGTM=adg R=adg CC=golang-codereviews https://golang.org/cl/135840043
diff --git a/js/tour.js b/js/tour.js index e1f113d..1c1424a 100644 --- a/js/tour.js +++ b/js/tour.js
@@ -192,6 +192,9 @@ slide = slides[i]; var $s = $(slide).show(); + // notify the change of slides if analytics is available. + if (window.trackPageview) window.trackPageview(); + // load stored code, or hide code box if ($s.hasClass("nocode")) { $('#workspace').hide();