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

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c2f5eea75 Remove Google Analytics
1c2f5eea75 is described below

commit 1c2f5eea75638a7db9048995c11847d99e5567b7
Author: Niall Pemberton <[email protected]>
AuthorDate: Fri Jan 31 10:17:31 2025 +0000

    Remove Google Analytics
---
 custom-theme/main.html     | 20 --------------------
 versions/v0_9_0/mkdocs.yml |  1 -
 versions/v1_0_0/mkdocs.yml |  1 -
 versions/v1_1_0/mkdocs.yml |  1 -
 versions/v1_2_0/mkdocs.yml |  1 -
 versions/v1_3_0/mkdocs.yml |  1 -
 6 files changed, 25 deletions(-)

diff --git a/custom-theme/main.html b/custom-theme/main.html
index 61eab0658c..8092a3cab9 100644
--- a/custom-theme/main.html
+++ b/custom-theme/main.html
@@ -30,26 +30,6 @@
             <script 
src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js";></script>
         <![endif]-->
 
-        {% if config.google_analytics %}
-            <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", "{{ config.google_analytics[0] }}", "{{ 
config.google_analytics[1] }}");
-ga("send", "pageview");
-</script>
-        {% endif %}
     </head>
 
 {% if page.title != None %}
diff --git a/versions/v0_9_0/mkdocs.yml b/versions/v0_9_0/mkdocs.yml
index 15d2fc57f4..a66704278a 100644
--- a/versions/v0_9_0/mkdocs.yml
+++ b/versions/v0_9_0/mkdocs.yml
@@ -409,4 +409,3 @@ extra:
 
 copyright: 'Apache Mynewt (incubating) is available under Apache License, 
version 2.0.' 
 
-google_analytics: ['UA-72162311-1', 'auto']
diff --git a/versions/v1_0_0/mkdocs.yml b/versions/v1_0_0/mkdocs.yml
index c79c57126a..a4cd4479b7 100644
--- a/versions/v1_0_0/mkdocs.yml
+++ b/versions/v1_0_0/mkdocs.yml
@@ -600,4 +600,3 @@ extra:
 
 copyright: 'Apache Mynewt (incubating) is available under Apache License, 
version 2.0.' 
 
-google_analytics: ['UA-72162311-1', 'auto']
diff --git a/versions/v1_1_0/mkdocs.yml b/versions/v1_1_0/mkdocs.yml
index 5d0d6ced57..412f067deb 100644
--- a/versions/v1_1_0/mkdocs.yml
+++ b/versions/v1_1_0/mkdocs.yml
@@ -650,4 +650,3 @@ extra:
 
 copyright: 'Apache Mynewt is available under Apache License, version 2.0.'
 
-google_analytics: ['UA-72162311-1', 'auto']
diff --git a/versions/v1_2_0/mkdocs.yml b/versions/v1_2_0/mkdocs.yml
index 0fdccf35ec..89dc1c0f3d 100644
--- a/versions/v1_2_0/mkdocs.yml
+++ b/versions/v1_2_0/mkdocs.yml
@@ -657,4 +657,3 @@ extra:
 
 copyright: 'Apache Mynewt is available under Apache License, version 2.0.'
 
-google_analytics: ['UA-72162311-1', 'auto']
diff --git a/versions/v1_3_0/mkdocs.yml b/versions/v1_3_0/mkdocs.yml
index a9a1ab3cd8..b27413262d 100644
--- a/versions/v1_3_0/mkdocs.yml
+++ b/versions/v1_3_0/mkdocs.yml
@@ -655,4 +655,3 @@ extra:
 
 copyright: 'Apache Mynewt is available under Apache License, version 2.0.'
 
-google_analytics: ['UA-72162311-1', 'auto']

Reply via email to