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) <noreply@anthropic.com>
This commit is contained in:
@@ -40,10 +40,14 @@ export const Route = createRootRoute({
|
|||||||
{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" },
|
{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" },
|
||||||
],
|
],
|
||||||
scripts: [
|
scripts: [
|
||||||
|
// Privacy-friendly analytics by Plausible
|
||||||
{
|
{
|
||||||
defer: true,
|
async: true,
|
||||||
"data-domain": "unom.io",
|
src: "https://analytics.unom.io/js/pa-uggaN2_4A7M2qevKgcnE0.js",
|
||||||
src: "https://analytics.unom.io/js/plausible.js",
|
},
|
||||||
|
{
|
||||||
|
children:
|
||||||
|
"window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user