Permalink
Browse files

Fixed analytics code, again.

  • Loading branch information...
Licenser committed May 20, 2010
1 parent 0e3a548 commit 1f729853bb0e452772692b6619447e2136fa3b43
Showing with 13 additions and 13 deletions.
  1. +13 −13 src/tryclojure/core.clj
View
@@ -79,6 +79,18 @@
"/resources/public/javascript/tryclojure.js")
[:title "TryClojure"]]
[:body
[:script {:type "text/javascript"}
"
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-552543-3']);
_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);
})();
"]
[:div {:style "text-align: center;"} [:h1 "Try Clojure"]]
[:div#container [:div#console.console]
[:table.bottom {:border "0"}
@@ -91,19 +103,7 @@
[:td [:div#changer [:p.bottom
"Welcome to TryClojure. Above, you have a Clojure REPL. You can type expressions and see "
"their results right here in your browser. We also have a brief tutorial to give you a "
"taste of Clojure. Try it out!"]]]]]]
[:script {:type "text/javascript"}
"
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-552543-3']);
_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);
})();
"]))
"taste of Clojure. Try it out!"]]]]]]))
(defn handler [{session :session}]
{:status 200

0 comments on commit 1f72985

Please sign in to comment.