PostHog Integration

PostHog product analytics automation

102 operations availableAnalytics & BI

PostHog Operations

Triggers15

Ingestion5

Query1

Events1

Feature Flags7

Persons6

Cohorts7

Annotations4

Insights5

Dashboards5

Actions3

Surveys7

Session Replay3

Experiments5

Definitions2

Groups3

Notebooks3

Early Access2

Batch Exports2

Destinations9

Advanced2

Organization5

Templates using PostHog

PostHog Exception Triage Agent

+1

Files one Linear issue per exception with the events the user triggered just before it, a session recording link when PostHog captured one, and a queried count of how many people hit it. An exception with a minified stack and nothing around it is a puzzle; the same exception with the four things the user clicked before it is a bug report. This agent reads the person's event trail, runs one query to find out whether this hit one person or nine hundred, attaches a session recording where PostHog captured one, and files a single Linear issue with all of it in a fixed order. Impact is a number that came back from a query, so nobody argues about it from the shape of the error message. ## What people use it for - **Reproduction steps for free** - The events leading into the exception are the steps, in the order a real person did them, including the flags that were on for them. Engineers skip the part where they guess how anyone reached that screen. - **One person or nine hundred** - A query counts distinct persons and occurrences over your window, so severity is a figure written into the issue rather than an impression formed from the wording of the error. - **Watch the bug happen** - Where a recording covers that person at that moment, its link goes into the issue. Thirty seconds of replay settles arguments a stack trace leaves open all week. - **Extension noise stays noise** - Exceptions whose frames all belong to a browser extension or a third party script are reported with their counts and no theory attached, and your triage rules decide whether they are worth an issue at all. ## Before you fork **We already have an error monitor. Why triage exceptions in PostHog?** Because the context lives here. PostHog knows the pages, the clicks and the flags around the exception, and often has a replay of it, which is the difference between a stack trace and a bug somebody can reproduce. If you run both tools, point this at the exceptions where nobody can work out what the user did. **Will customer data end up in Linear?** People are identified by their PostHog id, and the instructions keep emails, names and other personal fields out of the issue body. The event trail is pages and actions rather than form contents. If your events carry sensitive properties, name them in the triage rules and they stay out too. **How much extra PostHog querying does this add?** One person lookup, one short event list, one aggregate query and one recording check per exception the trigger sends, which is small next to normal ingestion. You decide how many exceptions reach the trigger in the first place. Rehearsing on the staged exceptions first shows you what a day of this looks like before you point it at everything.

14505 nodes

Use PostHog as an AI agent tool

Wire PostHog into a coding agent and let it use these operations as tools.

Ready to build with PostHog?

Start building workflows in minutes with our visual builder. No code required.

Book Demo
Browse all integrations