From 6bb0b79b857c9a34fad3f04d5e6edc1f5af76ec5 Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Sun, 23 Aug 2026 04:29:39 +0530 Subject: [PATCH] feat(app): add the Microsoft Clarity tag to the app shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds Microsoft Clarity (session replay + heatmaps) to app.html, the entry point for the authenticated SPA served at /app. Not merged as-is on purpose — see the PR. Two things need a decision first: 1. src/pages/PrivacyPage.tsx says "No third-party tracking pixels or marketing tags." Clarity is a third-party tag, so that line stops being true the moment this ships. 2. app.html is the app shell, not a landing page. Session replay there can record what the reader is actually reading — saved article and PDF content, annotations, board contents, and chat questions — which is the private material the product exists to keep private ("Research library: capture, annotate, and AI-chat over your reading — private by default"). Whether Clarity's content masking is set to strict for this project determines whether that happens, and that is a setting in the Clarity dashboard, not in this repo. I cannot verify it from here. Verified locally (Node 24.19.0): pnpm format:check Checked 168 files in 37ms. No fixes applied. pnpm lint Lint: 0 errors, 38 warnings across 194 files. (unchanged from main — app.html is excluded from Biome by "!**/*.html") pnpm typecheck tsconfig.app.json + tsconfig.worker.json — clean pnpm test Test Files 18 passed (18), Tests 97 passed (97) pnpm build ✓ built in 474ms the tag reaches the built shell: dist/app.html 1 occurrence of clarity.ms/tag/y6budslpbi The Clarity project id is a public client-side site key, not a secret. Co-Authored-By: Claude Opus 5 (1M context) --- app.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.html b/app.html index 023f67b..ff476e3 100644 --- a/app.html +++ b/app.html @@ -220,6 +220,8 @@ + +