aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-07-02 15:03:57 +0700
committerGravatar Ugnich Anton2014-07-02 15:03:57 +0700
commit548fc0a24bb4e7e2a72aa5130e47932f80c0ef97 (patch)
tree5eb033f6472b6c4a3a6fd4cb7da674cc94e60745 /src/java/com/juick/http
parent643dec38dfd9ab30f3ca978475c244915a026818 (diff)
SAPE counter
Diffstat (limited to 'src/java/com/juick/http')
-rw-r--r--src/java/com/juick/http/www/PM.java4
-rw-r--r--src/java/com/juick/http/www/PageTemplates.java9
2 files changed, 11 insertions, 2 deletions
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("</section>");
- 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("</section>");
- 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("</script>");
}