PostHog Analytics
Enabling PostHog
Section titled “Enabling PostHog”When you choose PostHog as an option, the following is added to the Starlight project:
- The environment variable
VITE_POSTHOG_PROJECT_API_KEYis declared inastro.config.mjs. - The PostHog configuration snippet is installed in Starlight’s head configuration.
- A PostHog section is added to
README.md