Integrate plausible
This commit is contained in:
parent
eb807a63a6
commit
6b586f6e07
5 changed files with 17 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue