You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2015/07/06 20:06:36 UTC
svn commit: r1689472 - /accumulo/site/trunk/content/downloads/index.mdtext
Author: ctubbsii
Date: Mon Jul 6 18:06:36 2015
New Revision: 1689472
URL: http://svn.apache.org/r1689472
Log:
ACCUMULO-3932 Avoid decorating entirely
* Avoid decorating download_external links at all, when google-analytics are not available.
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=1689472&r1=1689471&r2=1689472&view=diff
==============================================================================
--- accumulo/site/trunk/content/downloads/index.mdtext (original)
+++ accumulo/site/trunk/content/downloads/index.mdtext Mon Jul 6 18:06:36 2015
@@ -29,21 +29,19 @@ var gaCallback = function(event) {
// $(this) != this
var url = "http://accumulo.apache.org" + $(this).attr("id")
if (newWin) {
- if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
- ga('send', 'event', 'outbound', 'click', url, {'nonInteraction': 1});
- }
+ ga('send', 'event', 'outbound', 'click', url, {'nonInteraction': 1});
return true;
} else {
- if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
- ga('send', 'event', 'outbound', 'click', url, {'hitCallback':
- function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
- }
+ ga('send', 'event', 'outbound', 'click', url, {'hitCallback':
+ function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
return false;
}
};
$( document ).ready(function() {
- $('.download_external').click(gaCallback);
+ if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
+ $('.download_external').click(gaCallback);
+ }
});
var createSection = function(name, items, divider) {