aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/docs.js
diff options
context:
space:
mode:
authorVojta Jina2011-05-25 14:00:12 +0200
committerIgor Minar2011-06-06 22:52:02 -0700
commit350ee3110748eed64565bdfe8afd5dc6cbe3641d (patch)
tree045da814b64bd8ade8145a25322ba8874fe55dfa /docs/src/templates/docs.js
parent2da07127e45312ce22d894aa771b8797e9a301a1 (diff)
downloadangular.js-350ee3110748eed64565bdfe8afd5dc6cbe3641d.tar.bz2
Google Analytics - basic page tracking for docs
Diffstat (limited to 'docs/src/templates/docs.js')
-rw-r--r--docs/src/templates/docs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js
index 47d294c3..244ccce1 100644
--- a/docs/src/templates/docs.js
+++ b/docs/src/templates/docs.js
@@ -47,7 +47,8 @@ function DocsController($location, $browser, $window) {
this.afterPartialLoaded = function() {
SyntaxHighlighter.highlight();
- window.scrollTo(0,0);
+ $window.scrollTo(0,0);
+ $window._gaq.push(['_trackPageview', $location.hashPath.replace('!', '/')]);
};
this.getFeedbackUrl = function() {