accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1594400 - /accumulo/site/trunk/content/downloads/index.mdtext
Date Tue, 13 May 2014 22:03:24 GMT
Author: vines
Date: Tue May 13 22:03:23 2014
New Revision: 1594400

URL: http://svn.apache.org/r1594400
Log:
Fully integrated analytics download hooks. They even work when opening in new tabs

Modified:
    accumulo/site/trunk/content/downloads/index.mdtext

Modified: accumulo/site/trunk/content/downloads/index.mdtext
URL: http://svn.apache.org/viewvc/accumulo/site/trunk/content/downloads/index.mdtext?rev=1594400&r1=1594399&r2=1594400&view=diff
==============================================================================
--- accumulo/site/trunk/content/downloads/index.mdtext (original)
+++ accumulo/site/trunk/content/downloads/index.mdtext Tue May 13 22:03:23 2014
@@ -18,18 +18,36 @@ Notice:    Licensed to the Apache Softwa
            under the License.
 
 <script>
+  (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');
+
+  ga('create', 'UA-50934829-1', 'apache.org');
+  ga('send', 'pageview');
+
+</script>
+
+<script>
 /**
 * Function that tracks a click on an outbound link in Google Analytics.
 * This function takes a valid URL string as an argument, and uses that URL string
 * as the event label.
 */
 var trackOutboundLink = function(url) {
-   ga('send', 'event', 'outbound', 'click', url, {'hitCallback':
-     function () {
-     document.location = getAttribute('href');
-     }
-   });
-}
+  var hrefUrl = event.target.getAttribute('href')
+  if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
+    var newWin = true;}
+
+  if (newWin) {
+    ga('send', 'event', 'outbound', 'click', url, {'nonInteraction': 1});
+    return true;
+  } else {
+    ga('send', 'event', 'outbound', 'click', url, {'hitCallback': 
+    function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
+    return false;
+  }
+};
 </script>
 
 Be sure to verify your downloads by these [procedures][VERIFY_PROCEDURES] using these [KEYS][GPG_KEYS].
@@ -45,22 +63,22 @@ For convenience, [MD5][MD5SUM_160] and [
 <table class="table">
 <tr>
 <th>Generic Binaries</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz"
onClick="trackOutboundLink(‘/downloads/accumulo-1.6.0-bin.tar.gz’); return false;">accumulo-1.6.0-bin.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.6.0-bin.tar.gz');">accumulo-1.6.0-bin.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz.asc">ASC</a></td>
 </tr>
 <tr>
 <th>Source</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz"
onClick="trackOutboundLink(‘/downloads/accumulo-1.6.0-src.tar.gz’); return false;">accumulo-1.6.0-src.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.6.0-src.tar.gz');">accumulo-1.6.0-src.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz.asc">ASC</a></td>
 </tr>
 </table>
 
 #### 1.6 Documentation
-* <a href="https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob_plain;f=README;hb=06162580e885f11863d1a6d22f952bce35b78b68"
onClick="trackOutboundLink('/1.6/README'); return false;">README</a>
-* <a href="http://search.maven.org/remotecontent?filepath=org/apache/accumulo/accumulo-docs/1.6.0/accumulo-docs-1.6.0-user-manual.pdf"
onClick="trackOutboundLink('/1.6/accumulo_user_manual.pdf'); return false;">PDF manual</a>
+* <a href="https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob_plain;f=README;hb=06162580e885f11863d1a6d22f952bce35b78b68"
onClick="return trackOutboundLink('/1.6/README');">README</a>
+* <a href="http://search.maven.org/remotecontent?filepath=org/apache/accumulo/accumulo-docs/1.6.0/accumulo-docs-1.6.0-user-manual.pdf"
onClick="return trackOutboundLink('/1.6/accumulo_user_manual.pdf');">PDF manual</a>
 * [html manual][MANUAL_HTML_16]
 * [examples][EXAMPLES_16]
-* <a href="/1.6/apidocs" onClick="trackOutboundLink('/1.6/apidocs'); return false">Javadoc</a>
+* <a href="/1.6/apidocs" onClick="return trackOutboundLink('/1.6/apidocs');">Javadoc</a>
 
 ### 1.5.1
 
@@ -71,47 +89,47 @@ For convenience, [MD5][MD5SUM_151] and [
 <table class="table">
 <tr>
 <th>Generic Binaries</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-bin.tar.gz'); return false;">accumulo-1.5.1-bin.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.tar.gz');">accumulo-1.5.1-bin.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz.asc">ASC</a></td>
 </tr>
 <tr>
 <th rowspan="6">Platform Binaries</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.rpm"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-bin.rpm'); return false;">accumulo-1.5.1-bin.rpm</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.rpm"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.rpm');">accumulo-1.5.1-bin.rpm</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-bin.rpm.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.rpm"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-native.rpm'); return false;">accumulo-1.5.1-native.rpm</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.rpm"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-native.rpm');">accumulo-1.5.1-native.rpm</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-native.rpm.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.rpm"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-test.rpm'); return false;">accumulo-1.5.1-test.rpm</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.rpm"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-test.rpm');">accumulo-1.5.1-test.rpm</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-test.rpm.asc"asc>ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.deb"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-bin.deb'); return false;">accumulo-1.5.1-bin.deb</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.deb"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.deb');">accumulo-1.5.1-bin.deb</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-bin.deb.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.deb"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-native.deb'); return false;">accumulo-1.5.1-native.deb</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.deb"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-native.deb');">accumulo-1.5.1-native.deb</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-native.deb.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.deb"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-test.deb'); return false;">accumulo-1.5.1-test.deb</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.deb"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-test.deb');">accumulo-1.5.1-test.deb</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-test.deb.asc">ASC</a></td>
 </tr>
 <tr>
 <th>Source</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz"
onClick="trackOutboundLink('/downloads/accumulo-1.5.1-src.tar.gz'); return false;">accumulo-1.5.1-src.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-src.tar.gz');">accumulo-1.5.1-src.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz.asc">ASC</a></td>
 </tr>
 </table>
 
 #### 1.5 Documentation
-* <a href="https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob_plain;f=README;hb=3478f71ae888f8d73aaa93837319a6dbb4ba0c8a"
onClick="trackOutboundLink('/1.5/README'); return false;">README</a>
-* <a href="/1.5/accumulo_user_manual.pdf" onClick="trackOutboundLink(/1.5/accumulo_user_manual.pdf');
return false;">PDF manual</a>
+* <a href="https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob_plain;f=README;hb=3478f71ae888f8d73aaa93837319a6dbb4ba0c8a"
onClick="return trackOutboundLink('/1.5/README');">README</a>
+* <a href="/1.5/accumulo_user_manual.pdf" onClick="return trackOutboundLink('/1.5/accumulo_user_manual.pdf');">PDF
manual</a>
 * [html manual][MANUAL_HTML_15]
 * [examples][EXAMPLES_15]
-* <a href="/1.5/apidocs" onClick="trackOutboundLink('/1.5/apidocs'); return false;">Javadoc</a>
+* <a href="/1.5/apidocs" onClick="return trackOutboundLink('/1.5/apidocs');">Javadoc</a>
 
 ## Older releases
 



Mime
View raw message