92e18c1d720a
Fucking GA.
| author | Steve Losh <steve@stevelosh.com> | 
|---|---|
| date | Wed, 05 Oct 2011 22:53:06 -0400 | 
| parents | 44f771233137 | 
| children | 3a1067a55f0f | 
| branches/tags | (none) | 
| files | src/newseasons/templates/main.clj | 
Changes
--- 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