This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 9c9ee689 Remove Google Analytics #91 (asf-site branch) (#102)
9c9ee689 is described below
commit 9c9ee689552c7240f895a845ad8b78d8d35df811
Author: Niall Pemberton <[email protected]>
AuthorDate: Thu Apr 10 05:40:28 2025 +0100
Remove Google Analytics #91 (asf-site branch) (#102)
---
_includes/google-analytics.html | 8 --------
_includes/head.html | 3 ---
2 files changed, 11 deletions(-)
diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html
deleted file mode 100644
index 5098a8d7..00000000
--- a/_includes/google-analytics.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<script async src="https://www.googletagmanager.com/gtag/js?id={{
site.google_analytics }}"></script>
-<script>
- window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1"
|| navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" ||
navigator.msDoNotTrack === "1";
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', '{{ site.google_analytics }}');
-</script>
\ No newline at end of file
diff --git a/_includes/head.html b/_includes/head.html
index 46245264..7eee6286 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -6,7 +6,4 @@
<link rel="shortcut icon" href="{{ site.baseurl
}}/assets/images/favicon.ico">
<script
src="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>
{% seo %}
- {%- if site.google_analytics -%}
- {%- include google-analytics.html -%}
- {%- endif -%}
</head>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]