Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Google Analytics code

  • Loading branch information...
commit 818931e90bd72d4186357e260e6cf6e693d3352e 1 parent 46a4459
Yehuda Katz authored May 14, 2010

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. 12  src/layouts/application.haml
12  src/layouts/application.haml
@@ -41,4 +41,14 @@
41 41
     #credits
42 42
       %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>
43 43
     %a#github{ :href => "http://github.com/carlhuda/bundler/" }
44  
-      %img{:src => "http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png", :alt => "Fork me on GitHub"}
  44
+      %img{:src => "http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png", :alt => "Fork me on GitHub"}
  45
+
  46
+    :javascript
  47
+      var _gaq = _gaq || [];
  48
+      _gaq.push(['_setAccount', 'UA-557621-9']);
  49
+      _gaq.push(['_trackPageview']);
  50
+      (function() {
  51
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  52
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  53
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  54
+      })();

0 notes on commit 818931e

Please sign in to comment.
Something went wrong with that request. Please try again.