Remove Cloudflare Web Analytics, keep only Umami for analytics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 16:07:19 +01:00
parent 9092fb80d5
commit 6dac6c9c2b
2 changed files with 0 additions and 21 deletions

View File

@@ -16,13 +16,6 @@ ticket.e-cosplay.fr {
}
}
handle_path /cdn-cgi/* {
rewrite * {uri}
reverse_proxy https://static.cloudflareinsights.com {
header_up Host static.cloudflareinsights.com
}
}
@maintenance file /var/www/e-ticket/public/.update
handle @maintenance {
root * /var/www/e-ticket/public

View File

@@ -25,20 +25,6 @@ function loadAnalytics() {
script.dataset.hostUrl = '/stats'
script.dataset.analytics = '1'
document.head.appendChild(script)
loadCloudflareTunnel()
}
function loadCloudflareTunnel() {
if (document.querySelector('script[data-cf-beacon]')) {
return
}
const script = document.createElement('script')
script.defer = true
script.src = '/cdn-cgi/beacon.min.js'
script.dataset.cfBeacon = '{"token":"5f2f3b8e1f824be6984a348fe31d2f04","spa":true}'
document.head.appendChild(script)
}
export function initCookieConsent() {