Skip to main content

Overview

Use PostHog as a data source for Chartcastr. Connect your PostHog project with a Personal API Key and Chartcastr will pull active user metrics, growth accounting data, and event analytics to generate charts delivered automatically to Slack or email. Chartcastr connects with read-only access to your PostHog project — it only needs the query:read API key scope.

Setup

1

Create a PostHog Personal API Key

In PostHog, go to Settings → Personal API Keys (direct link) and create a new key. Grant it the query:read scope. Copy the key — you’ll need it in the next step.
Use a Personal API Key (starts with phx_), not the Project API Key. The Project API Key only works for event capture, not for reading analytics data.
2

Find your Project ID

In PostHog, go to Settings → Project and copy your Project ID (a numeric value). You can also find it in the URL: https://us.posthog.com/project/<PROJECT_ID>/.
3

Connect in Chartcastr

In Chartcastr, go to New Connection and select PostHog as a source. Enter your Personal API Key, Project ID, and host URL. Click Validate to test the connection.
Host URL: Use https://us.posthog.com for US Cloud or https://eu.posthog.com for EU Cloud. Self-hosted users should enter their own PostHog instance URL.
4

Select a metric

Choose which metric type you want to track. Each metric becomes its own source. You can add multiple sources to send different charts on different schedules.
5

Create a connection

Pick or add a destination (Slack channel or email), set the delivery frequency, and optionally enable AI summaries.

Available Metrics

Active Users

MetricDescription
DAU (Daily Active Users)Unique users per day based on pageview events
WAU (Weekly Active Users)Rolling 7-day unique users
MAU (Monthly Active Users)Rolling 30-day unique users
DAU / WAU / MAUCombined chart showing all three metrics together

Growth Accounting

MetricDescription
New UsersUsers who performed the event and were created during the interval
Returning UsersUsers active in both the previous and current interval
Resurrected UsersUsers inactive in the previous interval but active again
Dormant UsersUsers active in the previous interval but inactive in the current one
Growth AccountingCombined stacked chart showing all four lifecycle stages

Events

MetricDescription
Total EventsTotal count of all events per day
Unique UsersUnique users across all events per day

Pageviews

MetricDescription
Total PageviewsTotal pageview count per day
Unique Pageview UsersUnique users with pageviews per day

API Key Scopes

Chartcastr only requires the query:read scope. This grants read-only access to PostHog’s Query API for fetching analytics data. No write access is needed. You can optionally restrict the API key to a specific project for additional security.

Rate Limits

PostHog’s Query API has rate limits of 120–2,400 requests/hour depending on your PostHog plan, with a maximum of 3 concurrent queries per project. Chartcastr respects these limits and batches queries efficiently.

Next Steps