Skip to content

: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.

1020 B
Raw Blame
import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'

import { getDocusaurusInstallSteps } from '../product-analytics/docusaurus'
import { StepDefinition } from '../steps'

export const getDocusaurusSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {
    const { Markdown, snippets } = ctx
    const WebFinalSteps = snippets?.WebFinalSteps

    return [
        ...getDocusaurusInstallSteps(ctx),
        {
            title: 'Send events',
            badge: 'recommended' as const,
            content: (
                <>
                    <Markdown>
                        Start your Docusaurus site and visit a few pages. PostHog will automatically capture pageviews
                        and other events.
                    </Markdown>
                    {WebFinalSteps && <WebFinalSteps />}
                </>
            ),
        },
    ]
}

export const DocusaurusInstallation = createInstallation(getDocusaurusSteps)