:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'
import { StepDefinition } from '../steps'
export const getRudderstackSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {
const { CodeBlock, Markdown, CalloutBox, dedent } = ctx
return [
{
title: 'Add PostHog destination',
badge: 'required',
content: (
<Markdown>
RudderStack is an open-source customer data platform that can route your analytics data to PostHog
and other destinations. In your RudderStack dashboard, go to **Destinations** > **Add
Destination** and search for **PostHog**.
</Markdown>
),
},
{
title: 'Enter your credentials',
badge: 'required',
content: (
<>
<Markdown>Enter your PostHog project token:</Markdown>
<CodeBlock
blocks={[
{
language: 'text',
file: 'API Key',
code: dedent`
<ph_project_token>
`,
},
]}
/>
<Markdown>Enter your PostHog host:</Markdown>
<CodeBlock
blocks={[
{
language: 'text',
file: 'Host',
code: dedent`
<ph_client_api_host>
`,
},
]}
/>
</>
),
},
{
title: 'Verify the connection',
badge: 'recommended',
content: (
<>
<Markdown>
Connect your source to the PostHog destination. RudderStack will now forward `track`,
`identify`, `page`, and `group` calls to PostHog.
</Markdown>
<CalloutBox type="fyi" title="Learn more">
<Markdown>
See the [RudderStack integration docs](https://posthog.com/docs/libraries/rudderstack) for
more details.
</Markdown>
</CalloutBox>
</>
),
},
]
}
export const RudderstackInstallation = createInstallation(getRudderstackSteps)