Skip to main content

Dashboard

Create and manage analytics dashboards for data visualization
1 min read

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 name
  • description (string): Dashboard description
  • pinned (boolean): Pin to top of dashboard list

Attributes#

  • dashboardId: Dashboard ID
  • name: Dashboard name
  • description: Dashboard description
  • pinned: 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 dashboardIds property
  • Use the dashboard's numeric ID (from PostHog) when creating insights
  • Ensure the insight and dashboard are in the same project

Additional Resources#