Integrate plausible

This commit is contained in:
Andras Schmelczer 2026-06-06 20:34:34 +01:00
parent eb807a63a6
commit 6b586f6e07
5 changed files with 17 additions and 6 deletions

View file

@ -1,11 +1,5 @@
const API_BASE = window.location.origin;
window.plausible =
window.plausible ||
function () {
(window.plausible.q = window.plausible.q || []).push(arguments);
};
// Escape user-supplied text before interpolating it into HTML, to prevent XSS.
function escapeHtml(value) {
return String(value).replace(