Permalink
Browse files

Adding google analytics

  • Loading branch information...
1 parent f6119a2 commit 139163916de516ad25e4fdd1c378b177638f57f3 @donnfelker donnfelker committed Sep 11, 2012
Showing with 11 additions and 0 deletions.
  1. +10 −0 public/javascripts/ga.js
  2. +1 −0 views/inc/scripts.jade
View
@@ -0,0 +1,10 @@
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-34748100-1']);
+_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,3 +2,4 @@ script(type='text/javascript', src='/javascripts/bootstrap.min.js')
script(type='text/javascript', src='/javascripts/jquery-1.8.1.min.js')
script(type='text/javascript', src='/javascripts/plus.js')
script(type='text/javascript', src='/javascripts/tweet.js')
+script(type='text/javascript', src='/javascripts/ga.js')

0 comments on commit 1391639

Please sign in to comment.