Integrate Umami analytics (privacy-friendly, cookieless)
CI / build-and-test (push) Has been cancelled

- Add the Umami tracking snippet to index.html (rides into prerendered pages too).
- Allow https://fickanalytics.phluit.net in the prod CSP script-src and connect-src
  so the script loads and can send events.
This commit is contained in:
Leon Serfaty
2026-07-21 02:50:26 -04:00
parent 1f249dc126
commit 4a1122a7c9
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -71,11 +71,11 @@ export async function buildServer() {
? {
directives: {
defaultSrc: ["'self'"],
scriptSrc: ["'self'", 'https://challenges.cloudflare.com'],
scriptSrc: ["'self'", 'https://challenges.cloudflare.com', 'https://fickanalytics.phluit.net'],
styleSrc: ["'self'", "'unsafe-inline'", 'https://fonts.googleapis.com'],
fontSrc: ["'self'", 'https://fonts.gstatic.com', 'data:'],
imgSrc: ["'self'", 'data:', 'blob:', 'https://*.digitaloceanspaces.com', 'https://*.cdn.digitaloceanspaces.com'],
connectSrc: ["'self'"],
connectSrc: ["'self'", 'https://fickanalytics.phluit.net'],
frameSrc: ['https://challenges.cloudflare.com'],
frameAncestors: ["'none'"],
formAction: ["'self'"],