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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8a160656 SCB-2896 Remove Google Analytics from the ServiceComb Website 
(#334)
8a160656 is described below

commit 8a160656e600b039ff62265d367fc51e77950ff4
Author: Niall Pemberton <[email protected]>
AuthorDate: Mon Jan 20 02:43:40 2025 +0000

    SCB-2896 Remove Google Analytics from the ServiceComb Website (#334)
    
    Co-authored-by: Niall Pemberton <[email protected]>
---
 _includes/analytics-providers/google-universal.html |  9 ---------
 _includes/analytics-providers/google.html           | 11 -----------
 _includes/analytics.html                            |  4 ----
 3 files changed, 24 deletions(-)

diff --git a/_includes/analytics-providers/google-universal.html 
b/_includes/analytics-providers/google-universal.html
deleted file mode 100644
index 10d65b2e..00000000
--- a/_includes/analytics-providers/google-universal.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<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', '{{ site.analytics.google.tracking_id }}', 'auto');
-  ga('send', 'pageview');
-</script>
diff --git a/_includes/analytics-providers/google.html 
b/_includes/analytics-providers/google.html
deleted file mode 100644
index b591b995..00000000
--- a/_includes/analytics-providers/google.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<script type="text/javascript">
-  var _gaq = _gaq || [];
-  _gaq.push(['_setAccount', '{{ site.analytics.google.tracking_id }}']);
-  _gaq.push(['_trackPageview']);
-
-  (function() {
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
-    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
-  })();
-</script>
\ No newline at end of file
diff --git a/_includes/analytics.html b/_includes/analytics.html
index 64a3359a..c9ba43f4 100644
--- a/_includes/analytics.html
+++ b/_includes/analytics.html
@@ -1,10 +1,6 @@
 {% if site.analytics.provider and page.analytics != false %}
 
 {% case site.analytics.provider %}
-{% when "google" %}
-  {% include /analytics-providers/google.html %}
-{% when "google-universal" %}
-  {% include /analytics-providers/google-universal.html %}
 {% when "custom" %}
   {% include /analytics-providers/custom.html %}
 {% endcase %}

Reply via email to