This is an automated email from the ASF dual-hosted git repository.
laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus-website.git
The following commit(s) were added to refs/heads/master by this push:
new 3acce3de Remove Google Analytics (#91)
3acce3de is described below
commit 3acce3de02a830c5f458b1715b197500d435097d
Author: Niall Pemberton <[email protected]>
AuthorDate: Wed Feb 5 15:21:42 2025 +0000
Remove Google Analytics (#91)
---
_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 fb5f0e76..4786eb0a 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -10,7 +10,4 @@
<script src="/assets/js/all.min.js"></script>
<script src="/assets/js/docsearch.v3.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]