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

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 5115f24938 Remove Google Analytics from the TVM Website fixes #17597 
(#47)
5115f24938 is described below

commit 5115f24938e1d66a92e28d6b2c62f1e4799d2c00
Author: Niall Pemberton <[email protected]>
AuthorDate: Sat Jan 25 15:24:11 2025 +0000

    Remove Google Analytics from the TVM Website fixes #17597 (#47)
    
    Co-authored-by: Niall Pemberton <[email protected]>
---
 _includes/JB/analytics                            |  2 --
 _includes/JB/analytics-providers/google           | 13 -------------
 _includes/JB/analytics-providers/google-universal |  9 ---------
 _layouts/default.html                             |  1 -
 4 files changed, 25 deletions(-)

diff --git a/_includes/JB/analytics b/_includes/JB/analytics
index 2bb4c80281..c82c580bd3 100644
--- a/_includes/JB/analytics
+++ b/_includes/JB/analytics
@@ -5,8 +5,6 @@
 {% case site.JB.analytics.provider %}
 {% when "gauges" %}
   {% include JB/analytics-providers/gauges %}
-{% when "google" %}
-  {% include JB/analytics-providers/google %}
 {% when "getclicky" %}
   {% include JB/analytics-providers/getclicky %}
 {% when "mixpanel" %}
diff --git a/_includes/JB/analytics-providers/google 
b/_includes/JB/analytics-providers/google
deleted file mode 100644
index eca6d9cf49..0000000000
--- a/_includes/JB/analytics-providers/google
+++ /dev/null
@@ -1,13 +0,0 @@
-<script type="text/javascript">
-  var _gaq = _gaq || [];
-  _gaq.push(['_setAccount', '{{ site.JB.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>
-
-
diff --git a/_includes/JB/analytics-providers/google-universal 
b/_includes/JB/analytics-providers/google-universal
deleted file mode 100644
index 834f2eec65..0000000000
--- a/_includes/JB/analytics-providers/google-universal
+++ /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','//www.google-analytics.com/analytics.js','ga');
-
-  ga('create', {{ site.JB.analytics.googleUA.tracking_id }}', {% if 
site.JB.analytics.googleUA.property_name %}{{ 
site.JB.analytics.googleUA.property_name }}{% else %}'auto'{% endif %});
-  ga('send', 'pageview');
-</script>
\ No newline at end of file
diff --git a/_layouts/default.html b/_layouts/default.html
index 4b82709ddb..64f304a26f 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -22,7 +22,6 @@
   <script 
src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"; 
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
 crossorigin="anonymous"></script>
   <!-- <script src="./assets/js/slick.js"></script> -->
   <script src="/assets/js/custome.js"></script>
-  <script async 
src="https://www.googletagmanager.com/gtag/js?id=UA-75982049-2";></script>
   <script>
     window.dataLayer = window.dataLayer || [];
     function gtag(){dataLayer.push(arguments);}

Reply via email to