--- a/src/newseasons/templates/main.clj Wed Oct 05 22:47:16 2011 -0400
+++ b/src/newseasons/templates/main.clj Wed Oct 05 22:53:06 2011 -0400
@@ -6,6 +6,21 @@
hiccup.form-helpers))
+(def ga "<script type=\"text/javascript\">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-15328874-7']);
+ _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>")
+
+
; Utils -----------------------------------------------------------------------
(defn include-less [href]
[:link {:rel "stylesheet/less" :type "text/css" :href href}])
@@ -44,7 +59,8 @@
(link-to "http://stevelosh.com/" "Steve Losh")
" with "
(link-to "http://webnoir.org/" "Noir")
- "."]]]]))
+ "."]]]
+ ga]))
(defpartial inner [title body-class & content]
(base body-class