Step 1: Sign up for PostHog Cloud
Create a free PostHog Cloud account:PostHog Cloud US
Sign up for US Cloud
PostHog Cloud EU
Sign up for EU Cloud
Your first 1 million events, 5,000 recordings, 1 million flag requests, and 100,000 exceptions are free every month.
Step 2: Install PostHog
After signing up, you’ll be prompted to install PostHog. Choose your preferred method:- JavaScript snippet
- npm
- Python
The quickest way to get started. Add this snippet to your HTML:Replace
<ph_project_api_key> with your project API key from the PostHog dashboard.Step 3: Capture your first event
Once installed, PostHog automatically captures pageviews and other events. You can also capture custom events:Step 4: View your data
After capturing events, view them in PostHog:- Go to Activity in your PostHog dashboard to see live events
- Create your first Insight to analyze trends
- Set up a Dashboard to monitor key metrics
Next steps
Identify users
Link events to specific users
Create feature flags
Roll out features safely
Set up session replay
Watch user sessions
Explore insights
Analyze user behavior