This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch document
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/document by this push:
     new 914cca6  Update google analytics
914cca6 is described below

commit 914cca6444bcc558ab546fc2179be7e6b0dc8c47
Author: shaofengshi <shaofeng...@apache.org>
AuthorDate: Wed Jun 13 20:32:30 2018 +0800

    Update google analytics
---
 website/_includes/head.cn.html | 20 ++++++--------------
 website/_includes/head.html    | 19 ++++++-------------
 2 files changed, 12 insertions(+), 27 deletions(-)

diff --git a/website/_includes/head.cn.html b/website/_includes/head.cn.html
index 765eb05..c7a7122 100644
--- a/website/_includes/head.cn.html
+++ b/website/_includes/head.cn.html
@@ -46,22 +46,14 @@
   <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" 
href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
 
 <!--[if lt IE 9]> <script src="assets/js/html5shiv.js"></script> <![endif]-->
+<!-- Global site tag (gtag.js) - Google Analytics -->
+<script async 
src="https://www.googletagmanager.com/gtag/js?id=UA-120788561-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','//www.google-analytics.com/analytics.js','ga');
-
-
-  //oringal tracker for kylin.io
-  ga('create', 'UA-55534813-1', 'auto');
-  //new tracker for kylin.apache.org
-  ga('create', 'UA-55534813-2', 'auto', {'name':'toplevel'});
-
-  ga('send', 'pageview');
-  ga('toplevel.send', 'pageview');
-
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
 
+  gtag('config', 'UA-120788561-1');
 </script>
 <script type="text/javascript" src="/assets/js/jquery-1.9.1.min.js"></script>
 <script type="text/javascript" src="/assets/js/nside.js"></script> </script>
diff --git a/website/_includes/head.html b/website/_includes/head.html
index c0dde01..fb8d2e0 100644
--- a/website/_includes/head.html
+++ b/website/_includes/head.html
@@ -47,21 +47,14 @@
   <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" 
href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
 
 <!--[if lt IE 9]> <script src="assets/js/html5shiv.js"></script> <![endif]-->
+<!-- Global site tag (gtag.js) - Google Analytics -->
+<script async 
src="https://www.googletagmanager.com/gtag/js?id=UA-120788561-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','//www.google-analytics.com/analytics.js','ga');
-
-  //oringal tracker for kylin.io
-  ga('create', 'UA-55534813-1', 'auto');
-  //new tracker for kylin.apache.org
-  ga('create', 'UA-55534813-2', 'auto', {'name':'toplevel'});
-
-  ga('send', 'pageview');
-  ga('toplevel.send', 'pageview');
-
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
 
+  gtag('config', 'UA-120788561-1');
 </script>
 <script type="text/javascript" src="/assets/js/jquery-1.9.1.min.js"></script>
 <script type="text/javascript" src="/assets/js/nside.js"></script> </script>

-- 
To stop receiving notification emails like this one, please contact
shaofeng...@apache.org.

Reply via email to