The Dashboard resource allows you to create and manage custom dashboards for visualizing analytics data in PostHog.
Example Usage#
Basic Dashboard#
Pinned Dashboard#
Dashboard with Multiple Insights#
Team Dashboard#
Resource Properties#
Optional Arguments#
name(string): Dashboard namedescription(string): Dashboard descriptionpinned(boolean): Pin to top of dashboard list
Attributes#
dashboardId: Dashboard IDname: Dashboard namedescription: Dashboard descriptionpinned: Whether the dashboard is pinned
Best Practices#
1. Descriptive Names#
Use clear, descriptive names for dashboards:
2. Pin Important Dashboards#
Pin frequently accessed dashboards for quick access:
3. Organize by Theme#
Group related metrics in themed dashboards:
Common Use Cases#
Executive Dashboard#
High-level metrics for leadership:
Product Team Dashboard#
Metrics for product development:
Operations Dashboard#
Operational and technical metrics:
Troubleshooting#
Dashboard Not Visible#
Issue: Dashboard doesn't appear in PostHog UI
Solution:
- Check that the dashboard was created successfully
- Verify you're logged into the correct PostHog project
- Refresh the PostHog UI
Cannot Add Insights#
Issue: Insights don't appear on dashboard
Solution:
- Insights are added via the Insight resource's
dashboardIdsproperty - Use the dashboard's numeric ID (from PostHog) when creating insights
- Ensure the insight and dashboard are in the same project