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

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ff558ceaa6 Remove Google & Baidu Analytics from Dubbo Website - fixes 
#3087 (#3088)
0ff558ceaa6 is described below

commit 0ff558ceaa602b267a96742adfb4464edc90f230
Author: Niall Pemberton <[email protected]>
AuthorDate: Tue Jan 28 14:34:00 2025 +0000

    Remove Google & Baidu Analytics from Dubbo Website - fixes #3087 (#3088)
    
    * Remove Google Analytics from Dubbo Website - fixes #3087
    
    * Remove Google Analytics from Dubbo Website - fixes #3087
    
    ---------
    
    Co-authored-by: Niall Pemberton <[email protected]>
---
 cn_config.toml             |  2 +-
 config.toml                |  2 +-
 layouts/partials/head.html | 12 ------------
 3 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/cn_config.toml b/cn_config.toml
index 5be25493fa1..e4caa2543a1 100644
--- a/cn_config.toml
+++ b/cn_config.toml
@@ -42,7 +42,7 @@ anchor = "smart"
 [services]
 [services.googleAnalytics]
 # Comment out the next line to disable GA tracking. Also disables the feature 
described in [params.ui.feedback].
-id = "G-NM6FFMT51J"
+##id = "G-NM6FFMT51J"
 
 staticDir = ["static"]
 
diff --git a/config.toml b/config.toml
index 9d4c1906582..e0629f05748 100644
--- a/config.toml
+++ b/config.toml
@@ -42,7 +42,7 @@ anchor = "smart"
 [services]
 [services.googleAnalytics]
 # Comment out the next line to disable GA tracking. Also disables the feature 
described in [params.ui.feedback].
-id = "G-1TFHM5YBH0"
+## id = "G-1TFHM5YBH0"
 
 staticDir = ["static"]
 
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 7acd55ad231..c7a38ddeeea 100755
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,18 +14,6 @@
 <link rel="canonical" href="{{ .Params.canonicalUrl }}">
 {{ else }}
 <link rel="canonical" href="{{ .Permalink }}">
-{{ end }}
-{{ if $.Site.Params.cn_site }}
-<script>
-    var _hmt = _hmt || [];
-    (function() {
-        var hm = document.createElement("script");
-        hm.src = "https://hm.baidu.com/hm.js?3b78f49ba47181e4d998a66b689446e9";;
-        var s = document.getElementsByTagName("script")[0];
-        s.parentNode.insertBefore(hm, s);
-    })();
-</script>
-
 {{ end }}
 
 <!-- Docsy head.html begins here -->

Reply via email to