Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added analytics.

  • Loading branch information...
commit e99706fd92764a1467a6e6446459b16d0a79d094 1 parent 4952dc3
@Raynes authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/tryclojure/core.clj
View
12 src/tryclojure/core.clj
@@ -81,7 +81,17 @@
[:p.bottom
"Built with "
(link-to "http://webnoir.org" "Noir")
- "."]]]]]))
+ "."]]
+ (javascript-tag
+ "var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-27340918-1']);
+ _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);
+ })();")]]]))
(defpage "/" []
(root-html))
Please sign in to comment.
Something went wrong with that request. Please try again.