Browse Source

google analytics removed

master
Christian Mueller 11 years ago
parent
commit
36158191bc
  1. 9
      resources/public/js/google-analytics.js
  2. 4
      src/notehub/views.clj

9
resources/public/js/google-analytics.js

@ -1,9 +0,0 @@ @@ -1,9 +0,0 @@
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);
})();

4
src/notehub/views.clj

@ -35,9 +35,7 @@ @@ -35,9 +35,7 @@
(html
(include-js "/js/md5.js")
(include-js "/js/marked.js")
(include-js "/js/main.js")))
; google analytics code should appear in prod mode only
(if-not (get-setting :dev-mode) (include-js "/js/google-analytics.js"))]
(include-js "/js/main.js")))]
[:body {:onload "onLoad()"} content]))
(defn- sanitize

Loading…
Cancel
Save