Skip to content
Browse files

merge from heroku

  • Loading branch information...
2 parents 9a5c858 + 07f6a17 commit bd58894c17806243b0ceeaff2812c2621c5c8088 @brandonmwest committed Mar 25, 2013
Showing with 10 additions and 1 deletion.
  1. +9 −0 public/js/google-analytics.js
  2. +1 −1 views/layout.haml
View
9 public/js/google-analytics.js
@@ -0,0 +1,9 @@
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-12162342-6']);
+ _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);
+ })();
View
2 views/layout.haml
@@ -85,4 +85,4 @@
%script{:src => "/js/bootstrap.min.js"}
%script{:src => "/js/default.js"}
%script{:src => "/js/form2js.js"}
-%script{:src => "/js/jquery.jeditable.min.js"}
+%script{:src => "/js/google-analytics.js"}

0 comments on commit bd58894

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