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: Update to latest Google Analytics snippet
Date Wed, 06 Dec 2017 22:55:39 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 fddd238  Update to latest Google Analytics snippet
fddd238 is described below

commit fddd23843e69592d3d3ec47a8e4389f00d7160c3
Author: Christopher Tubbs <ctubbsii@apache.org>
AuthorDate: Wed Dec 6 17:54:12 2017 -0500

    Update to latest Google Analytics snippet
---
 _includes/scripts.html | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/_includes/scripts.html b/_includes/scripts.html
index 2ade974..a11090c 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -25,15 +25,14 @@
     var $affixElement = $('div[data-spy="affix"]');
     $affixElement.width($affixElement.parent().width());
   });
+</script>
 
-  // configure Google Analytics
-  (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');
+<!-- 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());
 
-  if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
-    ga('create', 'UA-50934829-1', 'apache.org');
-    ga('send', 'pageview');
-  }
+  gtag('config', 'UA-50934829-1');
 </script>

-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" <commits@accumulo.apache.org>'].

Mime
View raw message