myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3287] trunk/app/views/layouts/_biovel.rhtml: Bio


From: noreply
Subject: [myexperiment-hackers] [3287] trunk/app/views/layouts/_biovel.rhtml: BioVeL analytics
Date: Mon, 7 Jan 2013 08:50:33 +0000 (UTC)

Revision
3287
Author
fbacall
Date
2013-01-07 08:50:33 +0000 (Mon, 07 Jan 2013)

Log Message

BioVeL analytics

Modified Paths

Diff

Modified: trunk/app/views/layouts/_biovel.rhtml (3286 => 3287)


--- trunk/app/views/layouts/_biovel.rhtml	2013-01-07 08:40:08 UTC (rev 3286)
+++ trunk/app/views/layouts/_biovel.rhtml	2013-01-07 08:50:33 UTC (rev 3287)
@@ -24,3 +24,19 @@
 <% end %>
 
 <%= render :partial => "layouts/myexperiment" %>
+
+<% if Rails.env == "production" %>
+<script type="text/_javascript_">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-36850736-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/_javascript_'; ga.async = true;
+    ga.src = "" == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+
+</script>
+<% end %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]