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 2017/12/06 22:55:39 UTC

[accumulo-website] branch master updated: Update to latest Google Analytics snippet

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 <ct...@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" <co...@accumulo.apache.org>'].