Marketplace

Product Analytics

by Pump Up

Automated PostHog product usage digests, proactive friction alerts, and root-cause analytics investigations for product and growth teams.

  • analytics
  • growth
  • onboarding
  • research

Instructions

Product Analytics

Automated product usage reporting, proactive user-friction monitoring, and root-cause analytics investigations built on PostHog. Designed for product, growth, and engineering teams who want daily visibility into signed-up user activity, onboarding health, and blocking errors without manual dashboard checks.

Connections and secrets

NameTypeUsed for
posthogConnectionQuerying PostHog trends, funnels, schemas, dashboards, error tracking, and links (posthog_exec) across all agents

No secrets are required.

App setup and shared rules

Every agent in this app reads product usage data from PostHog and surfaces insights through Pump Up member notifications (notifyMembers).

App metadata keys

Configure these values on the app before running:

KeyDescriptionExample / default
POSTHOG_PROJECT_IDYour team's PostHog project ID<your-posthog-project-id>
POSTHOG_PROJECT_NAMEDisplay name of your PostHog projectProduction
POSTHOG_TIMEZONETimezone for daily reporting windowsUTC
GROUP_TYPE_NAMEB2B account group type name in PostHogcompany
GROWTH_DASHBOARD_IDPostHog dashboard ID for core growth metrics (optional)<your-dashboard-id>

Shared PostHog query rules

  • Target project: Query POSTHOG_PROJECT_ID (POSTHOG_PROJECT_NAME) in POSTHOG_TIMEZONE unless a run input explicitly requests another project.
  • Test account filter: Apply your PostHog project's test account filter on every query so internal team accounts are excluded.
  • Signed-up account separation: Count DAU, WAU, MAU, and active users only across signed-up accounts (where person.properties.email is set). Keep anonymous marketing website visitors ($pageview on your organization's marketing domain) as a separate metric.
  • Tenant name resolution: Aggregate B2B account activity using the GROUP_TYPE_NAME group type (index = 0) and always resolve groups.properties.name so reports show tenant names rather than raw IDs.
  • Schema verification: Verify unfamiliar event or property names with PostHog schema inspection before querying them.

Shared reporting rules

  • Accuracy: Report only figures, trends, and event names directly observed in PostHog query results; never guess or extrapolate missing data.
  • Tables: Present metric comparisons, funnel steps, feature breakdowns, and affected accounts or users in Markdown tables with single-line cells.
  • Links: Include clickable PostHog links to insights, persons, or errors in every report.
  • Notifications: Deliver digests and alerts via notifyMembers. Do not open human approval or input requests (read-only analytics team).

Agents

1. Daily Usage Analyst

Produces a daily product analytics digest for the completed previous day in POSTHOG_TIMEZONE, comparing metrics against the prior 7-day daily average and the same day 7 days earlier.

  • How it starts: Scheduled daily at 08:00 UTC (0 8 * * *), or started manually with optional target_date (YYYY-MM-DD, defaults to yesterday in POSTHOG_TIMEZONE).
  • Agent metadata: ONBOARDING_STALL_HOURS (default 24).
  • Agent rules: Trigger a background run of Analytics Investigator only when signed-up DAU or core activity stalls, or when users hit repeated errors or stall mid-onboarding—never for normal usage growth or marketing traffic spikes.
  • Approvals: None.

Steps

StepOwnerGroupExits toPurpose
Collect core metricsAgentReadyAnalyze product usage, Digest failedQuery signed-up DAU, WAU, MAU, and active GROUP_TYPE_NAME counts for yesterday and the prior 7 days; query anonymous marketing website visitors separately; read GROWTH_DASHBOARD_ID if configured; retry once on transient errors
Analyze product usageAgentIn ProgressSend daily digest, Digest failedMeasure the 14-day onboarding activation funnel (sign-up through workspace/project setup to first core action), rank top product and AI/tool events (such as $ai_trace, $mcp_tool_call, and key feature events), check for chat/connection/limit errors, $rageclick, and sign-ups older than ONBOARDING_STALL_HOURS that stalled mid-onboarding; start a non-blocking Analytics Investigator run if friction or stalling appears
Send daily digestAgentIn ProgressDigest sent, Digest failedSend a notifyMembers digest with four Markdown tables (Core Metrics with Website Visitors separate, Product Usage, Onboarding Funnel, User Health & Stuck Accounts with PostHog links); retry once on delivery failure
Digest sentAgentComplete—Terminal state confirming digest delivery
Digest failedAgentFailed—Terminal failure state recording PostHog or delivery errors

2. Friction & Anomaly Scout

Runs periodic health checks in PostHog to catch stuck users, stalled onboarding accounts, and blocking product errors without spamming the team on healthy days.

  • How it starts: Scheduled every 6 hours (0 */6 * * * in UTC), started manually with optional lookback_hours (defaults to LOOKBACK_HOURS), or triggered by a PostHog webhook (webhook_event).
  • Agent metadata: LOOKBACK_HOURS (default 7), ONBOARDING_STALL_HOURS (default 48), MIN_ERROR_EVENTS_FOR_ALERT (default 2).
  • Agent rules: Stay silent when healthy; only alert when users or tenants are stuck, stalled in onboarding, or hitting blocking errors. Do not repeat alerts for the exact same user or incident if no new occurrences happened since the previous 6-hour slot.
  • Approvals: None.

Steps

StepOwnerGroupExits toPurpose
Scan friction and errorsAgentReadyEvaluate health check, Scan failedInspect the last LOOKBACK_HOURS (or input lookback_hours) for blocking product errors, quota/limit refusals, failed integrations/connections, $rageclick, $exception, billing/credit alerts, and new sign-ups in the last ONBOARDING_STALL_HOURS that stalled before their first core run/action; retry once on query error
Evaluate health checkAgentIn ProgressInvestigate top issue, No issues found, Scan failedGate: route to Investigate top issue if any blocking error, failed connection, credit-out event, or stalled onboarding occurred, or if $rageclick/$exception reached MIN_ERROR_EVENTS_FOR_ALERT; route to No issues found if healthy (never alert on traffic increases)
Investigate top issueAgentIn ProgressSend anomaly alert, Scan failedCall Analytics Investigator and wait for root-cause context on the highest-severity issue; if it fails or times out, proceed to Send anomaly alert with raw scan findings
Send anomaly alertAgentIn ProgressAlert sent, Scan failedSend a concise notifyMembers alert with Markdown tables (tenant name, user email, event, cause or drop-off step, count), root-cause summary, and direct PostHog links; retry once on failure
No issues foundAgentComplete—Terminal quiet-completion state when no issues are detected
Alert sentAgentComplete—Terminal state confirming alert delivery
Scan failedAgentFailed—Terminal failure state recording query or delivery errors

3. Analytics Investigator

Performs on-demand or agent-triggered root-cause investigations to explain why a metric shifted or where users are getting stuck.

  • How it starts: Started manually by a team member, or invoked by Daily Usage Analyst or Friction & Anomaly Scout.
  • Case inputs: question (string, required), metric_or_event (string, optional), time_window (string, optional, defaults to DEFAULT_LOOKBACK_DAYS), company_id (string, optional GROUP_TYPE_NAME ID for drill-down).
  • Agent metadata: DEFAULT_LOOKBACK_DAYS (default 14).
  • Agent rules: Send findings via notifyMembers only when run standalone (no parent agent run); when called by another agent, return findings in the run output to avoid duplicate notifications.
  • Approvals: None.

Steps

StepOwnerGroupExits toPurpose
Scope investigationAgentReadyAnalyze segments and funnels, Investigation failedResolve the lookback window (time_window or DEFAULT_LOOKBACK_DAYS), verify target events/properties via schema inspection, and check baseline trends; fail if required input is missing or PostHog is unreachable after one retry
Analyze segments and funnelsAgentIn ProgressPublish findings, Investigation failedBreak down trends/SQL by GROUP_TYPE_NAME name, URL/path, error type, or tool/server; run funnel analysis for drop-offs; inspect recent events or error tracking; determine whether impact is broad or single-tenant; retry once on query error
Publish findingsAgentIn ProgressInvestigation complete, Investigation failedCompile verified root causes, exact counts, affected tenant names, stuck users, recommended checks, Markdown tables, and PostHog links; send via notifyMembers only if standalone; retry once on notification failure
Investigation completeAgentComplete—Terminal state confirming investigation findings are published
Investigation failedAgentFailed—Terminal failure state if context is missing or PostHog queries fail

Forms

None. Agents are triggered by schedules, webhooks, inter-agent calls, or direct runs.


Adapting events to your product

The daily digest and friction scout reference example lifecycle and error events (such as user sign-up, workspace/app creation, core execution, chat/connection failures, and billing credit alerts) alongside standard PostHog events ($pageview, $rageclick, $exception, $ai_trace, $mcp_tool_call). After creating your app from this template, update your agent instructions or PostHog schema mapping to match your product's exact event names.

Details

Version
1
Updated
Nov 17, 2026