accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [accumulo-website] branch master updated: Remove Google Analytics (#128)
Date Thu, 31 Jan 2019 18:41:05 GMT
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bbec55  Remove Google Analytics (#128)
6bbec55 is described below

commit 6bbec553a0351f572fdb7a340d86ed06d9bc74a4
Author: Mike Walch <mwalch@apache.org>
AuthorDate: Thu Jan 31 13:40:59 2019 -0500

    Remove Google Analytics (#128)
---
 _includes/scripts.html | 10 ----------
 pages/downloads.md     | 46 ++++------------------------------------------
 2 files changed, 4 insertions(+), 52 deletions(-)

diff --git a/_includes/scripts.html b/_includes/scripts.html
index a11090c..a560c7c 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -26,13 +26,3 @@
     $affixElement.width($affixElement.parent().width());
   });
 </script>
-
-<!-- Global Site Tag (gtag.js) - Google Analytics -->
-<script async src="https://www.googletagmanager.com/gtag/js?id=UA-50934829-1"></script>
-<script>
-  window.dataLayer = window.dataLayer || [];
-  function gtag(){dataLayer.push(arguments)};
-  gtag('js', new Date());
-
-  gtag('config', 'UA-50934829-1');
-</script>
diff --git a/pages/downloads.md b/pages/downloads.md
index 7334b73..ddce141 100644
--- a/pages/downloads.md
+++ b/pages/downloads.md
@@ -4,42 +4,6 @@ permalink: /downloads/
 ---
 
 <script type="text/javascript">
-/**
-* 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 gtagCallback = function(event) {
-  var hrefUrl = event.target.getAttribute('href')
-  if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
-    var newWin = true;}
-
-  // $(this) != this
-  var url = window.location.protocol + "//accumulo.apache.org" + $(this).attr("id")
-  if (newWin) {
-    gtag('event', 'click', {
-      'event_category': 'outbound',
-      'event_label': url,
-      'transport_type': 'beacon'
-    });
-    return true;
-  } else {
-    gtag('event', 'click', {
-      'event_category': 'outbound',
-      'event_label': url,
-      'transport_type': 'beacon',
-      'event_callback': function(){ window.location.href = hrefUrl; }
-    });
-    return false;
-  }
-};
-
-$( document ).ready(function() {
-  // check if gtag is loaded
-  if (typeof gtag === 'function') {
-    $('.download_external').click(gtagCallback);
-  }
-});
 
 var updateLinks = function(mirror) {
   $('a[link-suffix]').each(function(i, obj) {
@@ -142,18 +106,16 @@ downloaded from the [download archive][ARCHIVE_DOWN].
 [SHA_SRC_19]: https://www.apache.org/dist/accumulo/1.9.2/accumulo-1.9.2-src.tar.gz.sha512
 
 [BIN_20]: https://www.apache.org/dyn/closer.lua/accumulo/2.0.0-alpha-2/accumulo-2.0.0-alpha-2-bin.tar.gz
-{: .download_external link-suffix="/accumulo/2.0.0-alpha-2/accumulo-2.0.0-alpha-2-bin.tar.gz"
id="/downloads/accumulo-2.0.0-alpha-2-bin.tar.gz" }
+{: link-suffix="/accumulo/2.0.0-alpha-2/accumulo-2.0.0-alpha-2-bin.tar.gz" }
 [SRC_20]: https://www.apache.org/dyn/closer.lua/accumulo/2.0.0-alpha-2/accumulo-2.0.0-alpha-2-src.tar.gz
-{: .download_external link-suffix="/accumulo/2.0.0-alpha-2/accumulo-2.0.0-alpha-2-src.tar.gz"
id="/downloads/accumulo-2.0.0-alpha-2-src.tar.gz" }
+{: link-suffix="/accumulo/2.0.0-alpha-2/accumulo-2.0.0-alpha-2-src.tar.gz" }
 [BIN_19]: https://www.apache.org/dyn/closer.lua/accumulo/1.9.2/accumulo-1.9.2-bin.tar.gz
-{: .download_external link-suffix="/accumulo/1.9.2/accumulo-1.9.2-bin.tar.gz" id="/downloads/accumulo-1.9.2-bin.tar.gz"
}
+{: link-suffix="/accumulo/1.9.2/accumulo-1.9.2-bin.tar.gz" }
 [SRC_19]: https://www.apache.org/dyn/closer.lua/accumulo/1.9.2/accumulo-1.9.2-src.tar.gz
-{: .download_external link-suffix="/accumulo/1.9.2/accumulo-1.9.2-src.tar.gz" id="/downloads/accumulo-1.9.2-src.tar.gz"
}
+{: link-suffix="/accumulo/1.9.2/accumulo-1.9.2-src.tar.gz" }
 
 [README_20]: https://github.com/apache/accumulo/blob/rel/2.0.0-alpha-2/README.md
-{: .download_external id="/2.0-alpha-2/README" }
 [README_19]: https://github.com/apache/accumulo/blob/rel/1.9.2/README.md
-{: .download_external id="/1.9/README" }
 
 [JAVADOC_20]: {{ site.baseurl }}/docs/2.x/apidocs/
 {: .download_external id="/docs/2.x/apidocs/" }


Mime
View raw message