Skip to content

Commit

Permalink
Added GA
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmilner committed Mar 28, 2012
1 parent 2a446c9 commit 7c2deb8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Binary file added 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.
Binary file added 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.
9 changes: 9 additions & 0 deletions 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);
})();
3 changes: 2 additions & 1 deletion app/views/layouts/pages.html.haml
Expand Up @@ -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.