archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk...@apache.org
Subject [2/2] archiva-site git commit: analytics.js as external script to avoid clash with mirror.cgi
Date Fri, 24 Jul 2015 00:11:41 GMT
analytics.js as external script to avoid clash with mirror.cgi

Project: http://git-wip-us.apache.org/repos/asf/archiva-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva-site/commit/c740abd4
Tree: http://git-wip-us.apache.org/repos/asf/archiva-site/tree/c740abd4
Diff: http://git-wip-us.apache.org/repos/asf/archiva-site/diff/c740abd4

Branch: refs/heads/master
Commit: c740abd4da3cd3e0d6910269942b0ae0a6aaf42c
Parents: 1b59e2e
Author: Eric <Eric@192.168.1.15>
Authored: Fri Jul 24 01:54:28 2015 +0200
Committer: Eric <Eric@192.168.1.15>
Committed: Fri Jul 24 01:54:28 2015 +0200

----------------------------------------------------------------------
 src/site/site.xml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva-site/blob/c740abd4/src/site/site.xml
----------------------------------------------------------------------
diff --git a/src/site/site.xml b/src/site/site.xml
index 4a375b6..51d62ba 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -26,8 +26,8 @@
     <version>1.4</version>
   </skin>
 
-
-
+<!-- do not use fluido ga pattern use analytics.js instead-->
+  <googleAnalyticsAccountId></googleAnalyticsAccountId>
   <custom>
     <fluidoSkin>
       <topBarEnabled>true</topBarEnabled>
@@ -57,17 +57,15 @@
   </custom>
   <body>
       <head>
-        <!--<script type="text/javascript">
-          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+        <!-- Google Analytics -->
+        <script src='//www.google-analytics.com/analytics.js'></script>
+        <script>
+          window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
 
           ga('create', 'UA-140879-5', 'auto');
           ga('send', 'pageview');
 
         </script>
-        -->
     </head>
     <menu name="Introduction">
       <item name="About"                href="/index.html" />


Mime
View raw message