You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/11/20 16:26:34 UTC
[GitHub] mikewalch closed pull request #128: Remove Google Analytics
mikewalch closed pull request #128: Remove Google Analytics
URL: https://github.com/apache/accumulo-website/pull/128
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/_includes/scripts.html b/_includes/scripts.html
index a11090cb..a560c7c5 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 ffab43e3..219ad6ad 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-1/accumulo-2.0.0-alpha-1-bin.tar.gz
-{: .download_external link-suffix="/accumulo/2.0.0-alpha-1/accumulo-2.0.0-alpha-1-bin.tar.gz" id="/downloads/accumulo-2.0.0-alpha-1-bin.tar.gz" }
+{: link-suffix="/accumulo/2.0.0-alpha-1/accumulo-2.0.0-alpha-1-bin.tar.gz" }
[SRC_20]: https://www.apache.org/dyn/closer.lua/accumulo/2.0.0-alpha-1/accumulo-2.0.0-alpha-1-src.tar.gz
-{: .download_external link-suffix="/accumulo/2.0.0-alpha-1/accumulo-2.0.0-alpha-1-src.tar.gz" id="/downloads/accumulo-2.0.0-alpha-1-src.tar.gz" }
+{: link-suffix="/accumulo/2.0.0-alpha-1/accumulo-2.0.0-alpha-1-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-1/README.md
-{: .download_external id="/2.0-alpha-1/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/" }
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services