This guide sets up PostHog via the official AI wizard. The wizard automatically configures your app with all necessary settings.
Step 1: Run the PostHog Wizard
1
Launch the wizard
In your project root directory, run the following command:
2
Set up your account
During the wizard setup:
- Choose Sign up if you don’t have a PostHog account yet
- If you already have an account, choose Log in
3
Select your data region
Choose where your analytics data will be stored:
- EU: Frankfurt, Germany (GDPR-compliant, faster for European users)
- US: Virginia, USA (faster for North American users)
The wizard will install dependencies and update the relevant files, configuring PostHog analytics in your codebase.
Step 2: Test the Implementation
1
Implementation
Follow the implementation instructions in the
integrations/posthog/README.md
file included in your boilerplate codebase. This file contains all necessary steps for testing PostHog in your application, including the test button component.2
Test the integration
Once you’ve followed the README instructions:
- Restart your app
- Use the test button component as described in the README
- Log in to your PostHog dashboard
- Go to Live Events section
- Confirm that your test events appear in the dashboard