From 36158191bc01567b1c887faee730ed401b1aa8d2 Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Wed, 1 Oct 2014 16:13:32 +0200 Subject: [PATCH] google analytics removed --- resources/public/js/google-analytics.js | 9 --------- src/notehub/views.clj | 4 +--- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 resources/public/js/google-analytics.js diff --git a/resources/public/js/google-analytics.js b/resources/public/js/google-analytics.js deleted file mode 100644 index b074c85..0000000 --- a/resources/public/js/google-analytics.js +++ /dev/null @@ -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); -})(); diff --git a/src/notehub/views.clj b/src/notehub/views.clj index ef343dc..abd1055 100644 --- a/src/notehub/views.clj +++ b/src/notehub/views.clj @@ -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