Join the wishlist

PostHog

Bring your PostHog analytics numbers into your app on your own key.

Connecting

Create a personal API key with Query Read access under Settings, Personal API keys in PostHog.

Ask your analytics

  • project_id: Your PostHog project id, shown in project settings. Required.
  • query: The question as SQL, like SELECT count() FROM events WHERE event = 'signup'. Required.

Answers with: value, column.

Settings

  • Project: The PostHog project your app reads from.
  • Question: The number this app shows, as a SQL question.

What it stores

Metrics (query, value, column)

Where it speaks

This connection reaches https://{dc}.posthog.com and nowhere else. The hosts are fixed by declaration.

PostHog · Docs · Tentis