fluo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [fluo-website] branch gh-pages updated: Updated Google Analytics tracking code to latest (#111)
Date Wed, 06 Dec 2017 22:44:42 GMT
This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/fluo-website.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new b8b293c  Updated Google Analytics tracking code to latest (#111)
b8b293c is described below

commit b8b293c5b470b9965c3ab1b1a922e5c915ca7de1
Author: Mike Walch <mwalch@apache.org>
AuthorDate: Wed Dec 6 17:44:40 2017 -0500

    Updated Google Analytics tracking code to latest (#111)
---
 _includes/scripts.html | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/_includes/scripts.html b/_includes/scripts.html
index 29fc24d..dea6a4e 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -1,15 +1,13 @@
 <!-- Place your <script> tags here. -->
 
-<!-- Google Analytics -->
+<!-- Global site tag (gtag.js) - Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=UA-55360307-1"></script>
 <script>
-  (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','https://www.google-analytics.com/analytics.js','ga');
-
-  ga('create', 'UA-55360307-1', 'auto');
-  ga('send', 'pageview');
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
 
+  gtag('config', 'UA-55360307-1');
 </script>
 
 <script>window.twttr = (function(d, s, id) {

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

Mime
View raw message