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

brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-website.git

commit 69e87c9219dd5a0edb6b65979e6c4e5570f686db
Author: Brandon Williams <brandonwilli...@apache.org>
AuthorDate: Tue Mar 25 12:30:30 2025 -0500

    Use local plausible.js
---
 site-ui/src/js/plausible.js           | 1 +
 site-ui/src/partials/head-scripts.hbs | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/site-ui/src/js/plausible.js b/site-ui/src/js/plausible.js
new file mode 100644
index 000000000..9142a783d
--- /dev/null
+++ b/site-ui/src/js/plausible.js
@@ -0,0 +1 @@
+!function(r,i){"use strict";var 
e,o=r.location,s=r.document,t=s.querySelector('[src*="'+i+'"]'),l=t&&t.getAttribute("data-domain"),p=r.localStorage.plausible_ignore;function
 c(e){console.warn("Ignoring Event: "+e)}function 
a(e,t){if(/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*\:)*?:?0*1$/.test(o.hostname)||"file:"===o.protocol)return
 
c("localhost");if(!(r.phantom||r._phantom||r.__nightmare||r.navigator.webdriver)){if("true"==p)return
 c("localStorage flag");var a={};a.n=e,a.u=o.href [...]
\ No newline at end of file
diff --git a/site-ui/src/partials/head-scripts.hbs 
b/site-ui/src/partials/head-scripts.hbs
index b87ff902b..5fe0ff9be 100644
--- a/site-ui/src/partials/head-scripts.hbs
+++ b/site-ui/src/partials/head-scripts.hbs
@@ -2,9 +2,9 @@
   const script = document.createElement("script");
   const domain = window.location.hostname;
   script.type = "text/javascript";
-  script.src = "https://plausible.cassandra.apache.org/js/plausible.js";;
+  script.src = "https://cassandra.apache.org/js/plausible.js";;
   script.setAttribute("data-domain",domain);
   script.setAttribute("defer",'true');
   script.setAttribute("async",'true');
   document.getElementsByTagName("head")[0].appendChild(script);
-</script>
\ No newline at end of file
+</script>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to