aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-05-22 22:09:54 +0300
committerGravatar Vitaly Takmazov2017-05-22 22:09:54 +0300
commit76a70dc91e4b277d9946d0e6563db8964275adac (patch)
treefd439a97f1bef889ddf97f65915a32ab5031f07e /juick-www/src/main/java
parentc8197edc0019d92508ff65c8507e5696644f237b (diff)
juick-www: Google Analytics is served by Cloudflare now
Diffstat (limited to 'juick-www/src/main/java')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/PageTemplates.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/PageTemplates.java b/juick-www/src/main/java/com/juick/www/controllers/PageTemplates.java
index 261efff3..9c6251b0 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/PageTemplates.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/PageTemplates.java
@@ -179,24 +179,15 @@ public class PageTemplates {
out.println("</div>");
out.println("</div>");
- out.println("<script>");
- out.println("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){");
- out.println("(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),");
- out.println("m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)");
- out.println("})(window,document,'script','//www.google-analytics.com/analytics.js','ga');");
- out.println("ga('create','UA-385578-4','juick.com');");
- out.println("ga('require','displayfeatures');");
- out.println("ga('send','pageview');");
-
if (sapeon) {
+ out.println("<script>");
out.println("var _acic={dataProvider:10};");
out.println("(function(){");
out.println("var e=document.createElement('script');e.type='text/javascript';e.async=true;e.src='//www2.aci'+'nt.net/aci.js';");
out.println("var t=document.getElementsByTagName('script')[0];t.parentNode.insertBefore(e,t);");
out.println("})();");
+ out.println("</script>");
}
-
- out.println("</script>");
}
public void pageEnd(PrintWriter out) {