Octri

PostHog

Send docs page views and product analytics to PostHog.

Turn it on

  1. Open Integrations

    Open Integrations in the project sidebar and find PostHog under Docs analytics.

  2. Paste your project API key

    Paste the value from your PostHog account. Octri checks its format before it saves, and refuses one that doesn't match.

  3. Save

    Every docs page loads it from the next page view. No publish is needed.

To turn it off, open the same card and press Turn off.

What to expect

Readers who accept cookies show up in PostHog's activity view as they browse, with a page view for each page they open and the clicks PostHog captures by default. Readers who decline aren't tracked.

Settings

Project API keystringrequired

Your project's public API key, from PostHog's project settings. It starts with phc_.

API hostURL

Where events go. Leave it empty for PostHog's US cloud, https://us.i.posthog.com. Use https://eu.i.posthog.com for the EU cloud, or your own reverse proxy's https:// address.

PostHog sets cookies, so it loads only after a reader agrees to analytics. Octri's own banner asks, unless you connect Cookiebot or Osano, which then decide instead. A reader who declines never loads it. See cookie consent.

Plan

Docs integrations come with custom code, on the Growth, Business and Enterprise plans. If a plan lapses, the docs stop loading PostHog until it's back. See plans and limits.