Skip to content

chore: remove Microsoft Clarity tracking script - #705

Merged
AbhishekDoshi26 merged 1 commit into
mainfrom
chore/remove-clarity
Sep 28, 2026
Merged

AbhishekDoshi26 merged 1 commit into
mainfrom
chore/remove-clarity

Conversation

@AbhishekDoshi26

Copy link
Copy Markdown
Member

Removes the Microsoft Clarity snippet that #672 added to astro.config.mjs. This replaces #704, which closed when its branch was renamed.

#672 added Clarity to get insight into AI citations. Plausible already loads on every docs page and records referrers, which is where visits sent by AI assistants show up. What Clarity adds on top is session recording and heatmaps, and that means one more third-party script on every page. If someone is actively using the Clarity dashboard, say so here and we can close this.

Plausible and the Unify tag in Head.astro are unchanged.

Testing

  • npm run build passes and npx prettier --check astro.config.mjs is clean
  • No file in dist/ references clarity.ms
  • Every built page except the redirect stubs still loads Plausible

Plausible already loads on every docs page and records referrers, so Clarity mainly adds session recording and heatmaps through another third-party script.

@AbhishekDoshi26 AbhishekDoshi26 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with fresh eyes, no findings.

  • One commit (b02dd9b) directly on top of current main: removes only the Clarity head entry from astro.config.mjs. The remaining head array is valid and Prettier-clean.
  • No tracked file on the branch mentions clarity or the project ID yj9jgcvl5y, and Clarity was never an npm dependency.
  • A fresh local build has no Clarity references in dist/. Every built page except the redirect stubs still loads Plausible, so no page ends up without analytics.
  • The live site loads Clarity only through this inline snippet (no Cloudflare Zaraz injection), so it stops loading once this deploys.
  • CI: build, spell-check, style-check and vale all pass.

@AbhishekDoshi26
AbhishekDoshi26 merged commit 069197f into main Sep 28, 2026
4 checks passed
@AbhishekDoshi26
AbhishekDoshi26 deleted the chore/remove-clarity branch September 28, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant