accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject svn commit: r1631778 - /accumulo/site/trunk/content/downloads/index.mdtext
Date Tue, 14 Oct 2014 15:01:42 GMT
Author: elserj
Date: Tue Oct 14 15:01:42 2014
New Revision: 1631778

URL: http://svn.apache.org/r1631778
Log:
Try to get outbound link tracking working again

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=1631778&r1=1631777&r2=1631778&view=diff
==============================================================================
--- accumulo/site/trunk/content/downloads/index.mdtext (original)
+++ accumulo/site/trunk/content/downloads/index.mdtext Tue Oct 14 15:01:42 2014
@@ -23,6 +23,7 @@ Notice:    Licensed to the Apache Softwa
 * This function takes a valid URL string as an argument, and uses that URL string
 * as the event label.
 */
+/* the event variable doesn't exist -- not sure how this worked before
 var trackOutboundLink = function(url) {
   var hrefUrl = event.target.getAttribute('href')
   if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
@@ -36,7 +37,14 @@ var trackOutboundLink = function(url) {
     function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
     return false;
   }
-};
+};*/
+var trackOutboundLink = function(url) {
+   ga('send', 'event', 'outbound', 'click', url, {'hitCallback':
+     function () {
+     document.location = url;
+     }
+   });
+}
 
 var createSection = function(name, items, divider) {
   var section = '';



Mime
View raw message