Permalink
Browse files

Add Google Analytics code

  • Loading branch information...
1 parent 46a4459 commit 818931e90bd72d4186357e260e6cf6e693d3352e @wycats wycats committed May 14, 2010
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/layouts/application.haml
@@ -41,4 +41,14 @@
#credits
%p Bundler icon and logo designed by <a href="http://twitter.com/johnneiner">John Neiner</a> and donated by <a href="http://pixelgraphics.us">Pixel Graphic Design Studio</a>
%a#github{ :href => "http://github.com/carlhuda/bundler/" }
- %img{:src => "http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png", :alt => "Fork me on GitHub"}
+ %img{:src => "http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png", :alt => "Fork me on GitHub"}
+
+ :javascript
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-557621-9']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();

0 comments on commit 818931e

Please sign in to comment.