Permalink
Browse files

added GA tracking code

  • Loading branch information...
1 parent 68d959c commit 2975a8debde7e80b53a35c07e01bf9f9d94d5003 @chrismatthieu committed Oct 12, 2010
Showing with 28 additions and 0 deletions.
  1. +14 −0 app/views/facebook/phono.html.erb
  2. +14 −0 app/views/layouts/application.html.erb
@@ -60,6 +60,20 @@
}
</script>
+ <script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-119008-17']);
+  _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);
+  })();
+
+ </script>
+
</head>
<body>
<center>
@@ -27,6 +27,20 @@
<%= yield(:head) %>
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-119008-17']);
+  _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);
+  })();
+
+</script>
+
</head>
<body>

0 comments on commit 2975a8d

Please sign in to comment.