From 5526030c50065a0544295c53a2046ff20d4bad69 Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Wed, 13 May 2026 18:12:20 -0400 Subject: [PATCH] feat(docs): add Plausible analytics to the docs site Uses a deferred script tag so it doesn't affect initial page load or rendering performance. Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/astro.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 540d5b667..21ebe70e9 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -197,6 +197,15 @@ export default defineConfig({ href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap", }, }, + // Plausible analytics — defer keeps it off the critical path + { + tag: "script", + attrs: { + defer: true, + "data-domain": "cli.sentry.dev", + src: "https://plausible.io/js/script.js", + }, + }, // Open Graph images for social sharing { tag: "meta",