Skip to content

Commit

Permalink
add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonmwest committed Apr 2, 2012
1 parent ec1b966 commit cf63f37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions public/js/google-analytics.js
Original file line number Diff line number Diff line change
@@ -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);
})();
2 changes: 1 addition & 1 deletion views/layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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 cf63f37

Please sign in to comment.