google analytics code added
This commit is contained in:
@@ -6,5 +6,4 @@ pom.xml
|
||||
/lib/
|
||||
/classes/
|
||||
.lein-*
|
||||
resources/public/js/*
|
||||
.crossover-cljs
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-32546723-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);
|
||||
})();
|
||||
@@ -3,6 +3,7 @@
|
||||
[NoteHub.settings :only [get-message]]
|
||||
[NoteHub.views.css-generator]
|
||||
[noir.core :only [defpartial]]
|
||||
[noir.options :only [dev-mode?]]
|
||||
[hiccup.page :only [include-js html5]]
|
||||
[hiccup.element :only [javascript-tag]]))
|
||||
|
||||
@@ -22,7 +23,8 @@
|
||||
"&subset=latin,cyrillic") " " "+")
|
||||
:rel "stylesheet"
|
||||
:type "text/css"}]
|
||||
[:style {:type "text/css"} (global-css params)]]
|
||||
[:style {:type "text/css"} (global-css params)]
|
||||
(if-not dev-mode? (include-js "/js/google-analytics.js"))]
|
||||
(if (params :js)
|
||||
[:body content
|
||||
(javascript-tag "var CLOSURE_NO_DEPS = true;")
|
||||
|
||||
Reference in New Issue
Block a user