Skip to content

chore(docs): add optional posthog monitoring to website - #1387

Merged
cblanc merged 1 commit into
mainfrom
postghog
Jul 27, 2026
Merged

chore(docs): add optional posthog monitoring to website#1387
cblanc merged 1 commit into
mainfrom
postghog

Conversation

@cblanc

@cblanc cblanc commented Jul 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds optional frontend PostHog monitoring to the Docusaurus website via the official posthog-docusaurus plugin (autocapture + pageviews)
  • Enabled at build time by POSTHOG_API_KEY (plus optional POSTHOG_HOST, defaulting to https://eu.i.posthog.com); when unset the plugin is not loaded and no posthog code appears in the built site
  • No server/API changes

Test plan

  • POSTHOG_API_KEY=phc_test pnpm docs:build then grep -r phc_test build/index.html - snippet present
  • pnpm docs:build without the key - grep -ri posthog build/index.html finds nothing

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Enabled at build time by POSTHOG_API_KEY (and optional POSTHOG_HOST,
defaulting to the EU instance). When unset the plugin is not loaded and
no posthog code is emitted. Uses the official posthog-docusaurus plugin.
@cblanc
cblanc merged commit 0e2a07b into main Jul 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant