You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2025/01/21 10:56:47 UTC

(shardingsphere) branch master updated: Remove Google & Baidu Analytics from the ShardingSphere Website - fixes #34415 (#34416)

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

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ebcd03c1e6 Remove Google & Baidu Analytics from the ShardingSphere Website - fixes #34415 (#34416)
7ebcd03c1e6 is described below

commit 7ebcd03c1e66a080d6bc73ded50f4c16378349db
Author: Niall Pemberton <ni...@gmail.com>
AuthorDate: Tue Jan 21 10:56:41 2025 +0000

    Remove Google & Baidu Analytics from the ShardingSphere Website - fixes #34415 (#34416)
    
    Co-authored-by: Niall Pemberton <ni...@apache.org>
---
 .../hugo-theme-learn/layouts/partials/header.html     | 19 -------------------
 .../hugo-theme-learn/layouts/partials/header.html     | 19 -------------------
 2 files changed, 38 deletions(-)

diff --git a/docs/community/themes/hugo-theme-learn/layouts/partials/header.html b/docs/community/themes/hugo-theme-learn/layouts/partials/header.html
index 806f715c0f1..dcfb20c7e92 100644
--- a/docs/community/themes/hugo-theme-learn/layouts/partials/header.html
+++ b/docs/community/themes/hugo-theme-learn/layouts/partials/header.html
@@ -22,25 +22,6 @@
     {{end}}
 
     <script src="{{"js/jquery-2.x.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
-    <!-- baidu Analytics -->
-    <script>
-      var _hmt = _hmt || [];
-      (function() {
-        var hm = document.createElement("script");
-        hm.src = "https://hm.baidu.com/hm.js?d5a1dc8dcf63a64ee55b80de01c7fb1a";
-        var s = document.getElementsByTagName("script")[0]; 
-        s.parentNode.insertBefore(hm, s);
-      })();   
-    </script>
-    <!-- Global site tag (gtag.js) - Google Analytics -->
-    <script async src="https://www.googletagmanager.com/gtag/js?id=G-HPVGEN405S"></script>
-    <script>
-      window.dataLayer = window.dataLayer || [];
-      function gtag(){window.dataLayer.push(arguments);}
-      gtag('js', new Date());
-
-      gtag('config', 'G-HPVGEN405S');
-    </script>
 
     <style type="text/css">
       :root #header + #content > #left > #rlblock_left{ 
diff --git a/docs/document/themes/hugo-theme-learn/layouts/partials/header.html b/docs/document/themes/hugo-theme-learn/layouts/partials/header.html
index e9c241bc7d6..f6b1df530f3 100644
--- a/docs/document/themes/hugo-theme-learn/layouts/partials/header.html
+++ b/docs/document/themes/hugo-theme-learn/layouts/partials/header.html
@@ -27,25 +27,6 @@
     {{- end }}
 
     <script src="{{"js/jquery-3.3.1.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
-    <!-- baidu Analytics -->
-    <script>
-      var _hmt = _hmt || [];
-      (function() {
-        var hm = document.createElement("script");
-        hm.src = "https://hm.baidu.com/hm.js?d5a1dc8dcf63a64ee55b80de01c7fb1a";
-        var s = document.getElementsByTagName("script")[0]; 
-        s.parentNode.insertBefore(hm, s);
-      })();   
-    </script>
-    <!-- Global site tag (gtag.js) - Google Analytics -->
-    <script async src="https://www.googletagmanager.com/gtag/js?id=G-HETCF66YL0"></script>
-    <script>
-      window.dataLayer = window.dataLayer || [];
-      function gtag(){window.dataLayer.push(arguments);}
-      gtag('js', new Date());
-
-      gtag('config', 'G-HETCF66YL0');
-    </script>
 
     <style>
       :root #header + #content > #left > #rlblock_left{