Skip to content

feat(docs): add Plausible analytics#964

Draft
sergical wants to merge 1 commit into
mainfrom
add-plausible-analytics
Draft

feat(docs): add Plausible analytics#964
sergical wants to merge 1 commit into
mainfrom
add-plausible-analytics

Conversation

@sergical
Copy link
Copy Markdown
Member

Summary

  • Adds Plausible analytics script to the docs site (cli.sentry.dev)
  • Uses defer attribute so the script is fetched in parallel but executed after HTML parsing — zero impact on initial page load, LCP, or FCP
  • No new dependencies; just a <script> tag in the Starlight head config

Test plan

  • Verify the script tag appears in the rendered HTML <head>
  • Confirm page load performance is unaffected (Lighthouse or DevTools Network tab)
  • Check Plausible dashboard receives pageviews after deploy

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-964/

Built to branch gh-pages at 2026-05-13 22:13 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

Codecov Results 📊

6959 passed | Total: 6959 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 14275 uncovered lines.
❌ Project coverage is 76.86%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    77.00%    76.86%    -0.14%
==========================================
  Files          320       320         —
  Lines        61574     61687      +113
  Branches         0         0         —
==========================================
+ Hits         47411     47412        +1
- Misses       14163     14275      +112
- Partials         0         0         —

Generated by Codecov Action

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