Permalink
Browse files

Added GA

  • Loading branch information...
1 parent 2a446c9 commit 7c2deb8630662c0bbf1d8daba78a8a621dac4829 @robertmilner committed Mar 28, 2012
View
BIN app/assets/images/furly_twitter_bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN app/assets/images/furly_twitter_bio_bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
9 app/assets/javascripts/ga.js
@@ -0,0 +1,9 @@
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-28250202-2']);
+_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
3 app/views/layouts/pages.html.haml
@@ -9,4 +9,5 @@
%body
= render 'pages/header'
= yield
- = render 'pages/footer'
+ = render 'pages/footer'
+ = javascript_include_tag "ga"

0 comments on commit 7c2deb8

Please sign in to comment.