From 548fc0a24bb4e7e2a72aa5130e47932f80c0ef97 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Wed, 2 Jul 2014 15:03:57 +0700 Subject: SAPE counter --- src/java/com/juick/http/www/PM.java | 4 ++-- src/java/com/juick/http/www/PageTemplates.java | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/java') diff --git a/src/java/com/juick/http/www/PM.java b/src/java/com/juick/http/www/PM.java index c587e5b1..d0d2f514 100644 --- a/src/java/com/juick/http/www/PM.java +++ b/src/java/com/juick/http/www/PM.java @@ -94,7 +94,7 @@ public class PM { out.println(""); - PageTemplates.pageFooter(request, out, visitor, true); + PageTemplates.pageFooter(request, out, visitor, false); PageTemplates.pageEnd(out); } finally { out.close(); @@ -166,7 +166,7 @@ public class PM { out.println(""); - PageTemplates.pageFooter(request, out, visitor, true); + PageTemplates.pageFooter(request, out, visitor, false); PageTemplates.pageEnd(out); } finally { out.close(); diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 37b17abf..d168875c 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -234,6 +234,15 @@ public class PageTemplates { out.println("})(window,document,'script','//www.google-analytics.com/analytics.js','ga');"); out.println("ga('create','UA-385578-4','juick.com');"); out.println("ga('send','pageview');"); + + if (sapeon) { + 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='//www.aci'+'nt.net/aci.js';"); + out.println("var t=document.getElementsByTagName('script')[0];t.parentNode.insertBefore(e,t);"); + out.println("})();"); + } + out.println(""); } -- cgit v1.2.3