Notebooks
Combine PostHog tools into a single space for analysis
Notebooks enable you to combine the tools of PostHog into a single space for analysis. Rather than jumping between dashboards, insights, replays, experiment results, and more, your chain of analysis exists on a single page. It provides a flexible interface for organizing ad-hoc analysis, bug investigations, internal documentation, and feature releases.
Key capabilities
Notebook popover - access from anywhere
Critical to combining PostHog functionality is being able to access notebooks from anywhere, like a scratchpad for analysis which you can organize and clean up later. Click and drag any link in PostHog to open a notebook popover.
Rich content types
Notebooks support a wide variety of content types to help you tell the complete story:
- Text and markdown: Headings, lists, bold, italic, code blocks
- All insight types: Trends, funnels, retention, paths, stickiness, lifecycle, and SQL
- Events and persons: Event lists, person profiles, groups, and cohorts
- Session replays: Individual replays and filtered playlists with comments
- Feature flags: Flag status, release conditions, and implementation code
- Surveys: Survey responses with visualizations
- LaTeX: Mathematical formulas and equations
- Images and GIFs: Visual documentation
Multiple ways to add content
Add content to notebooks in the way that works best for you:
- Slash commands: Type
/
for a menu of options like/trend
for trend insights - Plus icon: Click the
+
on empty lines for the same menu - Drag and drop: Click and hold any link in PostHog to drag into the notebook popover
Insights with full customization
Every PostHog insight can be fully customized within notebooks just like in the insights interface. Click the three-line icon to edit filters, breakdowns, and visualizations.
Session replay integration
Add individual replays or filtered playlists. Within notebooks, you can see new replays, update filters, pin important sessions, and add timestamped comments for collaboration.
Canvas for quick exploration
Canvas notebooks persist entirely in the URL, making them perfect for quick explorations you want to share but don't need to save. The shareable link updates as you edit.
Use cases
Ad-hoc analysis chains
Follow your analysis from question to answer without switching between tools. Keep all related insights, replays, and data in one place.
Bug investigation reports
Document bug discoveries with session replays, event timelines, and affected cohorts. Share findings with engineering teams.
Feature launch documentation
Track feature rollouts with flag configurations, adoption metrics, and user feedback all in one notebook.
Team knowledge sharing
Create living documents that update automatically as your product evolves. Perfect for onboarding and team alignment.
Notebooks vs Dashboards
Dashboards are great for metrics you want to check repeatedly and understanding the status of your product.
Notebooks are great for doing analysis and piecing data together into a narrative that incorporates all of PostHog's tools.