From 619e2ccf0b5c9faa1dd4eb849543c1d2c3497fb1 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sun, 21 Jun 2026 02:07:46 +0200 Subject: [PATCH] chore(analytics): switch to new Plausible script snippet Replace the legacy plausible.js + data-domain tag with Plausible's new per-site script (pa-*.js) plus its inline init queue. The site identity is baked into the script hash, so data-domain is no longer needed. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/routes/__root.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 4d583fa..3c61812 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -40,10 +40,14 @@ export const Route = createRootRoute({ { rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }, ], scripts: [ + // Privacy-friendly analytics by Plausible { - defer: true, - "data-domain": "unom.io", - src: "https://analytics.unom.io/js/plausible.js", + async: true, + src: "https://analytics.unom.io/js/pa-uggaN2_4A7M2qevKgcnE0.js", + }, + { + children: + "window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()", }, ], }),