How surveys work
Surveys appear as popovers while users are in your product:- Define survey questions and appearance
- Target specific users or pages
- Survey appears as an overlay in your app
- Responses are collected in PostHog
- Analyze results and identify themes
Surveys use the same PostHog snippet as analytics. No additional installation required.
Survey types
Choose the right survey type for your use case:- Popover (default)
- Widget
- API
Small overlay that appears on your page:
- Most common for in-app surveys
- Minimal disruption to user experience
- Dismissible by users
- Can position in corner or center
Question types
Open-ended
Free-form text input for qualitative feedback:Use for: Understanding motivations, collecting feature requests, bug reports
Single choice
Select one option from a list:Use for: Satisfaction levels, yes/no questions, categorical feedback
Multiple choice
Select multiple options:Use for: Feature prioritization, use case discovery, preference mapping
Creating a survey
Choose a template or start blank
PostHog provides templates for common surveys:
- NPS: Net Promoter Score (0-10 scale)
- CSAT: Customer Satisfaction (1-5 scale)
- PMF: Product-Market Fit (“How would you feel if you could no longer use…”)
- Feedback: Open-ended feedback request
Set targeting
Control who sees the survey and when:
- URL targeting: Show on specific pages
- User properties: Target by plan, signup date, etc.
- Feature flags: Link to a feature flag
- Wait period: Don’t re-survey users too quickly
Targeting options
Show surveys to the right users at the right time:URL targeting
URL targeting
Show surveys on specific pages:
User property targeting
User property targeting
Target by user attributes:Then target survey to users where:
plan = 'pro'signup_date < 30 days agohas_team = true
Wait periods
Wait periods
Avoid survey fatigue:
- Seen any survey: Wait 30 days after user sees any survey
- Completed this survey: Don’t re-ask the same survey
- Session frequency: Only show once per session
Feature flag targeting
Feature flag targeting
Link to a feature flag:Survey appears only to users who see the feature flag.
Common survey patterns
NPS survey
Question 1: “How likely are you to recommend us?” (0-10 rating)Question 2: “What’s the main reason for your score?” (open text, optional)Targeting: All users 30+ days after signup
CSAT survey
Question 1: “How satisfied are you with [feature]?” (1-5 rating or emoji)Targeting: Users on specific page, 10 seconds after page load
PMF survey
Question: “How would you feel if you could no longer use [product]?”Options:
- Very disappointed
- Somewhat disappointed
- Not disappointed
Feature feedback
Question 1: “Did this feature solve your problem?” (Yes/No)Question 2: “What would make it better?” (open text)Targeting: Users who used the feature, via feature flag
Analyzing responses
View and analyze survey results:- Response overview
- Individual responses
- Export data
See aggregate results:
- Total responses and response rate
- Average rating (for rating questions)
- Response distribution (for choice questions)
- Responses over time chart
NPS scoring
PostHog automatically calculates NPS:- Promoters (9-10): Loyal enthusiasts
- Passives (7-8): Satisfied but unenthusiastic
- Detractors (0-6): Unhappy customers
Good NPS varies by industry. SaaS typically sees 30-40. Above 50 is excellent.
Survey best practices
Keep surveys short (1-3 questions max)
Keep surveys short (1-3 questions max)
Users are trying to use your product, not take a survey. One focused question gets better completion than five scattered questions.
Make follow-ups optional
Make follow-ups optional
First question required, rest optional. You’ll get more responses and those who answer follow-ups are more engaged.
Time surveys appropriately
Time surveys appropriately
- After activation: Wait until users experience core value
- After feature use: Ask about specific features right after use
- Before churn: Survey users showing churn signals
Combine with session replay
Combine with session replay
Watch replays of users who gave negative feedback. See what frustrated them before they answered.
Close the loop
Close the loop
Respond to user feedback, especially detractors. Show users you’re listening and taking action.
Test survey appearance
Test survey appearance
Preview surveys before launching. Check mobile responsiveness, color contrast, and positioning.
Integration with analytics
Connect surveys to product data:- Filter insights by survey response (e.g., behavior of promoters vs detractors)
- Create cohorts from survey responses
- Track survey completion rate as a metric
- Correlate NPS scores with feature usage
Advanced: Programmatic surveys
Show surveys programmatically:Survey templates
PostHog provides pre-built templates:- NPS: Net Promoter Score with follow-up
- PMF: Product-Market Fit assessment
- CSAT: Customer Satisfaction rating
- Feature feedback: Gather thoughts on specific features
- Churn prevention: Understand why users might leave
- Onboarding: Check if setup was smooth