BI & Analytics
PostHog Integration (Alpha)
Integrate BuildBetter with PostHog for comprehensive product analytics
PostHog Integration
Connect your BuildBetter workspace with PostHog to gain deeper insights into user behavior, product usage, and analytics. This integration helps you understand how your team and customers interact with BuildBetter features.
Features
- Event Tracking: Track key BuildBetter events in PostHog
- User Identity Syncing: Map BuildBetter users to PostHog profiles
- Session Recording: View user sessions in PostHog for deeper analysis
- Feature Flag Access: Control BuildBetter features using PostHog feature flags
- Custom Dashboards: Create custom PostHog dashboards with BuildBetter data
Setup Instructions
Prerequisites
- An active BuildBetter account
- A PostHog account (cloud or self-hosted)
- Admin access to both platforms
Connecting PostHog
- Navigate to Settings → Integrations in your BuildBetter dashboard
- Find and select PostHog from the analytics integrations section
- Enter your PostHog API key and project ID
- For self-hosted PostHog instances, enter your PostHog host URL
- Click Connect to establish the integration
Configuring Event Tracking
After connecting:
- Go to the Event Configuration tab
- Select which BuildBetter events you want to track in PostHog:
- Call recordings
- Summaries generated
- Document creation
- Chat interactions
- User logins/logouts
- Save your configuration
Usage
Viewing BuildBetter Data in PostHog
Once connected, your BuildBetter data will appear in PostHog under the following events:
buildbetter_call_recorded
buildbetter_summary_generated
buildbetter_document_created
buildbetter_chat_started
buildbetter_feature_used
Creating Insights
In PostHog, you can create custom insights:
- Go to Insights in your PostHog dashboard
- Create a new insight
- Filter for BuildBetter events
- Build visualizations based on your specific needs
Using Feature Flags
To control BuildBetter features with PostHog feature flags:
- Create feature flags in PostHog
- In BuildBetter, go to Settings → Integrations → PostHog → Feature Flags
- Map PostHog feature flags to BuildBetter features
- Test and deploy your configuration
Troubleshooting
Events Not Appearing
- Verify your API key is correct
- Check that the events are enabled in the configuration
- Ensure there’s no network blocking between BuildBetter and PostHog
User Identity Issues
- Make sure user identification is properly configured in both systems
- Check for any ID conflicts in your PostHog setup
Data Privacy Considerations
When using this integration, consider:
- What user data is being shared with PostHog
- Data retention policies in PostHog
- Compliance with privacy regulations like GDPR or CCPA