Permalink
Browse files

Added google analytics

  • Loading branch information...
1 parent 3df2ffc commit 2106662b85620d131d226840ecd3f4dfcf27410e @excid3 committed Sep 30, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 app/views/layouts/application.html.erb
@@ -52,5 +52,18 @@
<%= yield :scripts %>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-8399719-12']);
+ _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);
+ })();
+
+ </script>
</body>
</html>

0 comments on commit 2106662

Please sign in to comment.