Permalink
Browse files

google analytics

  • Loading branch information...
1 parent 8a9ca01 commit 234d1b56621d2323419646ef001f8f6b3fbe0db5 @stevenwilkin committed Aug 27, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 views/layout.haml
View
@@ -25,3 +25,10 @@
#footer
© 2009
%a{:href => 'http://stevenwilkin.com'} Steven Wilkin
+
+ %script{:type => 'text/javascript'}
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ %script{:type => 'text/javascript'}
+ var pageTracker = _gat._getTracker("UA-2764682-9");
+ pageTracker._trackPageview();

0 comments on commit 234d1b5

Please sign in to comment.