feat: add web analytics to docs and web apps - #132
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds Plausible-based web analytics initialization to the docs and web Astro apps via the shared @init/analytics workspace package.
Changes:
- Add
@init/analyticsas a dependency forapps/docsandapps/web(and update lockfile). - Initialize analytics for
init.nowin the web app shared layout. - Override Starlight’s
Headin docs to initialize analytics fordocs.init.now.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| bun.lock | Records the new workspace dependency resolution for @init/analytics. |
| apps/web/src/shared/components/layout.astro | Initializes web analytics from the shared layout. |
| apps/web/package.json | Adds @init/analytics dependency for the web app. |
| apps/docs/src/shared/components/head.astro | Adds a custom Starlight Head wrapper to initialize analytics. |
| apps/docs/package.json | Adds @init/analytics dependency for the docs app. |
| apps/docs/astro.config.ts | Configures Starlight to use the custom Head component. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Adds web analytics tracking to both the docs and web apps using the
@init/analyticspackage.For the docs app, a custom
Headcomponent is introduced that extends Starlight's defaultHeadand initializes analytics fordocs.init.now. For the web app, analytics are initialized forinit.nowdirectly within the shared layout component.