diff options
author | Ugnich Anton | 2014-07-02 15:03:57 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-07-02 15:03:57 +0700 |
commit | 548fc0a24bb4e7e2a72aa5130e47932f80c0ef97 (patch) | |
tree | 5eb033f6472b6c4a3a6fd4cb7da674cc94e60745 /src/java/com/juick/http/www/PageTemplates.java | |
parent | 643dec38dfd9ab30f3ca978475c244915a026818 (diff) |
SAPE counter
Diffstat (limited to 'src/java/com/juick/http/www/PageTemplates.java')
-rw-r--r-- | src/java/com/juick/http/www/PageTemplates.java | 9 |
1 files changed, 9 insertions, 0 deletions
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>"); } |