From 5c4486f7261c0661cb5f9f16ac14cd129f3ab9c5 Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Wed, 22 Jan 2025 14:46:58 +0200 Subject: [PATCH] Add fetch-with-keepalive support to docs --- static/js/tracking.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/tracking.js b/static/js/tracking.js index 2bc1dedb..d88f73cd 100644 --- a/static/js/tracking.js +++ b/static/js/tracking.js @@ -2,7 +2,8 @@ const script = document.createElement('script') script.defer = true script.dataset.domain = 'plausible.io' +script.dataset.allowFetch = 'true' script.src = 'https://plausible.io/js/script.pageview-props.pageleave.js' script.setAttribute('event-browser_language', navigator.language || navigator.userLanguage) -document.getElementsByTagName('head')[0].appendChild(script) \ No newline at end of file +document.getElementsByTagName('head')[0].appendChild(script)