AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
PostHog analytics
Connect your own PostHog project key in the dashboard to load analytics on every tenant docs page, with an optional EU host and no content wiring.
Blode.md does not ship a proprietary analytics tool. Instead, we inject the analytics you already trust: PostHog: into every page of your tenant docs. Paste your key into the dashboard, and the script loads on the next request. There is nothing to wire up in your content.
Add PostHog
- Open the dashboard, pick your project, and go to Settings → Analytics.
- Fill in:
- PostHog: paste your project API key (starts with
phc_). Find it in PostHog → Project settings. Personal API keys (phx_) are not supported. - PostHog host: optional. Defaults to
https://us.i.posthog.com. Usehttps://eu.i.posthog.comif your project lives in the EU cloud.
- PostHog: paste your project API key (starts with
- Save. The next request on your tenant domain loads the script.
Leave the project key empty to disable analytics.
How it works
When tenant analytics are configured, every request through the docs proxy carries a compact, tenant-scoped header that the root layout reads on the server. We inject a small PostHog provider that initializes posthog-js with capture_pageview: false and emits a $pageview event on every client-side navigation.
PostHog only loads when VERCEL_ENV === "production", so local dev previews and preview deployments never pollute your numbers.
PostHog project keys are public client-side tokens: they are designed to be shipped to the browser. Blode.md treats them as tenant configuration, not secrets, and surfaces them in the dashboard as-is.
Managing from the CLI
The same config is available through blodemd analytics:
blodemd analytics get --project my-docs
blodemd analytics set posthog phc_abc... --host https://eu.i.posthog.com --project my-docs
blodemd analytics unset posthog --project my-docsSee the CLI reference for all options.