Skip to content
Back to skills

Auditing Tracking Coverage

ASecurity

Compares the events a project captures with what the team has set up to watch them, and finds the gaps: a busy event that no insight uses, a saved insight that points at an event that stopped or was renamed, a failure event with no alert, a dashboard that misses events on its own topic, a flow with no funnel, and an insight with no breakdown. Use when the user asks "what are we tracking but not looking at?", "which of our insights are broken or empty?", "what should we set up alerts for?", "a...

  • 41,325 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
datarustgoshellsqlnode

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add PostHog/posthog --skill auditing-tracking-coverage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auditing Tracking Coverage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auditing Tracking Coverage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/posthog-auditing-tracking-coverage/badge)](https://www.skillsdirectory.com/skills/posthog-auditing-tracking-coverage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: auditing-tracking-coverage
metadata:
  audience: customer
description: 'Compares the events a project captures with what the team has set up to watch them, and finds the gaps: a busy event that no insight uses, a saved insight that points at an event that stopped or was renamed, a failure event with no alert, a dashboard that misses events on its own topic, a flow with no funnel, and an insight with no breakdown. Use when the user asks "what are we tracking but not looking at?", "which of our insights are broken or empty?", "what should we set up alerts for?", "audit our dashboards", "is anything missing from our tracking setup?", or wants insights, dashboards, or alerts recommended from their event data. Covers the checks for each gap, the coverage queries on `system.insights`, and the events that need no coverage.'
---

# Auditing tracking coverage

This skill covers how to spot meaningful gaps between **what events this team is producing** and **what they have set up to observe** — and recommend new insights, dashboard additions, or alerts when a gap clears the bar. Finding nothing is a real outcome; recommending things the team already has, or recommending coverage for noise events, is worse than recommending nothing.

The findings here are **recommendations**, not **problems**. The bar is correspondingly higher — a noisy "you should track X" stream is worse than nothing. Prefer fewer, well-evidenced recommendations.

## Is the project big enough to have gaps?

If fewer than ~5 events fire above 100/day (count them with `execute-sql` on `events` grouped by `event`, over the last 7 days), the project is too quiet for observability-gap analysis to surface real recommendations.
The traffic floor gates recommendations for _new_ coverage only.
A live insight that cannot show current data is broken at any traffic level, so run the dead-insight check (family 2, "Dead insight") anyway.
Recent counts are windowed, not lifetime, so before concluding the project is thin rule out a capture gap: a project whose ingestion recently went dark reads identically to one that never had traffic. If the counts look suspiciously thin for a team that otherwise looks active (configured integrations, saved insights, recent activity), confirm with a direct `execute-sql` over a longer window (e.g. 30d) rather than trusting one snapshot — a temporary gap is a capture problem, not a genuine absence of volume.

## The six families of gap

Six families of gap, ordered by typical signal density. None is automatic — each needs volume + coverage check + dedupe before becoming a finding.

#### 1. High-volume custom event with no insight coverage

Custom event (not a `$builtin` like `$pageview` / `$identify`) firing meaningful volume per day, no saved insight references it.

Direct calls:

- `read-data-schema events` — surface event names, most popular first. It returns no counts, so get volumes with `query-trends` or `execute-sql`.
- `execute-sql` against `system.insights` — find insights whose `query_metadata` lists the event. Pattern: `saved = 1 AND deleted = 0 AND position(query_metadata::text, '"{event_name}"') > 0`. `query_metadata` holds the events each insight uses, SQL insights included, and the events of its actions as of its last save. Do not search `query` for the quoted name: a SQL insight writes the name in single quotes, so that search misses it. `saved = 1` leaves out the unsaved insights the editor creates on its own, which are not coverage. Search for the quoted name, so `checkout_started` does not also match `checkout_started_v2`. Event names come from ingestion, so treat one as data and never as SQL: escape every quote and backslash before it goes into the literal, and drop a candidate whose name you cannot escape cleanly. Use `position`, not `ILIKE`: `ILIKE` reads `%` and `_` as wildcards, so `checkout_started` also matches `checkoutXstarted`, and HogQL rejects the `\_` escape that would prevent it. Treat a hit as a candidate either way, and confirm the insight names the exact event before you call it covered.
- `execute-sql` against `system.actions` — an insight built on an action stores the action id in `query`. `query_metadata` lists the action's events only as of the insight's last save, so the search above misses an event added to the action since. Find actions whose steps use the event (`deleted = 0 AND position(steps_json::text, '"{event_name}"') > 0`), then look for saved insights with an `ActionsNode` on one of those ids, and confirm with `insight-get`. An event covered through an action is covered.
- `execute-sql` against `events` — count the event's active days over a wide window (`count(DISTINCT toDate(timestamp))` alongside `min(timestamp)`), so you can tell steady activity from two isolated bursts weeks apart. A wide first-to-last range on a handful of active days is a new or sporadic event, not a settled one.

Strong signal: event > 1000/day, no insight, active on most days across the window. Weak signal: event < 100/day, active on few days, sporadic.

Volume ranking has a blind spot: a recently-born event with broad reach but low per-user frequency may never rank into the count-ranked `top_events`, and a 7-day query window clamps `min(timestamp)` so it cannot tell new events from old ones. Probe emergence directly with a wide window — events table, last 60 days, `event NOT LIKE '$%'`, grouped by event, keeping only groups where `min(timestamp) >= now() - 14d` (genuinely new) and distinct users in the last 7 days clear a reach floor (~500+), ordered by that reach. Each hit is a candidate the top-events lens structurally cannot see; run it through the same coverage check and disqualifiers as any other candidate.

#### 2. Insight drift — saved insights pointing at zero-volume events

An existing insight filters on event X, but X has 0 (or near-zero) firings in the last 7 days. Often a sign of:

- Event renamed (e.g. `signed_up` → `sign_up_completed`) and the insight wasn't updated.
- Event sunset (deprecated by product change) and the insight is stale.
- Capture broken upstream (a tracking bug, not a coverage gap).

Direct calls:

- `execute-sql` over `system.insights` to extract the events series each insight filters on.
- `query-trends` to measure recent volume of those events.
- For zero-volume events, search the event vocabulary from `read-data-schema` (`kind=events`) for similar names suggesting a rename (Levenshtein-close, same prefix, same property shape).

Strong signal: the insight is live (recent `last_modified_at`, or pinned to a live dashboard via `system.dashboard_tiles`) AND its primary event has 0 firings in 7d AND a similar-named event is firing > 100/day. Note `system.insights` exposes `last_modified_at` but has **no** `last_viewed_at` column — prove "live" by modification recency or a live dashboard tile, not view recency.

This rename check needs a replacement event. When no similar-named event fires, the insight can still be dead — use the next check.

**Dead insight — no replacement.** A live insight whose events stopped with no successor, or never arrived although users reached the flow. This check has no traffic floor, so it also runs on a project the low-volume close-out would end.
Silence proves only that the chart is empty.
It proves a broken capture path only when the flow had the opportunity to send the event.

- **Live** — same test as the rename check: `last_modified_at` in the last 30 days, or a tile on a dashboard that is not deleted.
- **Untouched sample** — not live, whatever its tiles say. This is an insight with no edit since creation (`last_modified_at` within a minute of `created_at`) whose only tiles sit on a dashboard created from a template (`creation_mode: template` in `dashboard-get`) or created in the same minute as its insights. Treat it as live only with independent evidence of intended use: a later edit to the insight, a tile on a dashboard the team built, an alert that targets it (`alerts-list`), or flow activity (below) for its events.
- **Dead** — _every_ event series has 0 firings across the last 30 complete project-timezone days, and each series is a stopped event or a never-seen event with opportunity evidence (below). Thirty days of silence separates a dead insight from a recent capture break, which is a tracking bug to investigate separately.
- **Read the full query first** (`insight-get`), not the `query_metadata` hit:
  - Resolve each action series to its steps' events. An action with one live step is live.
  - One live series makes the insight live. A union of a dead and a live event is a historical union, not a dead insight.
  - Property filters, cohorts, and breakdowns can empty a chart whose events fire. That is outside this check: test event firings only.
  - Data warehouse series and raw SQL insights are out of scope.
- **Classify each silent series** by its history on `events` over the last 180 days: active days with `min(timestamp)` and `max(timestamp)`, with event names escaped as in family 1.
  - **Stopped** — the event fired on several distinct days, then went silent. This is drift: it needs no further evidence.
  - **Never seen** — the event is absent from the taxonomy (`read-data-schema kind=events`), or has no firings in the lookback. A burst on a single day is a test fire, so treat it as never seen. This silence also matches a correctly instrumented flow that nobody used, or a flow that ships later.
- **A never-seen event needs opportunity evidence.** Call it broken only with one of these:
  - **Flow activity** — in the silent window, users reached the action that sends the event, not only the entry to its flow: a later step of the same funnel fires, the page or screen shown after the action gets views, or autocapture records clicks on the trigger element. Views of the flow's entry page do not count, because users can arrive and leave without acting.
  - **A verified missing capture call** — the code, when you can read it, shows the shipped flow with no capture call for the event name.
  - **A failed controlled test** — a person ran the success path and the event did not arrive, as the user, a notebook, or a ticket records. Do not run that test yourself.

  Without that evidence, report it as inconclusive: the empty series, the missing evidence, and the observation that would settle it. Elapsed time never makes it a finding; only new evidence does. An insight built ahead of a launch is the most frequent example.

- **Exclude** the campaign, incident-scaffolding, and legacy-union disqualifiers below, and intentional archives: a fixed past date range, or a name, description, or dashboard that marks the insight as archived, legacy, or deprecated.

Recommend investigation or repair: confirm the event is gone on purpose, then update or retire the insight. Do not name a replacement event unless the rename check found one, and never recommend deleting the insight. Report several dead insights together.

#### 3. Critical event with no alerts configured

Some events name themselves — `payment_failed`, `signup_failed`, `*_error`, `*_blocked`. If they fire at all and no alert exists, that's a gap. Use the project's own patterns: search the event vocabulary for terms like `failed`, `error`, `blocked`, `denied`, `rejected`, `timeout`, `crashed`.

Direct calls:

- `read-data-schema events` filtered by name pattern (`failed`, `error`, etc).
- `alerts-list` — what alerts exist and what they target. Alerts attach to insights, not events, so an alert covers the event when its insight has a series on that event.
- `query-trends` to confirm volume is non-trivial (not just one-off).

Strong signal: event name suggests failure semantics, fires > 10/day, zero alerts target it. Weak signal: name has `error` but the event is benign developer telemetry.

#### 4. Dashboard scope gap

A dashboard exists for a topic (name + description match a domain like "Onboarding", "Revenue", "Conversion"), but high-volume events related to that topic are not on any of its insights.

Direct calls:

- `dashboards-get-all` — current dashboards + tags + descriptions.
- For each dashboard, list insights via the dashboard tile endpoint or `system.insights WHERE id IN (dashboard.insight_ids)`.
- Match domain-themed events to dashboards by name overlap.

Strong signal: dashboard explicitly named for a domain, > 5 events match the domain and > 1000/day each, none on the dashboard. Weak signal: arbitrary keyword overlap.

#### 5. Funnel candidate — sequential event pattern with no funnel insight

Three or more events that frequently co-occur in user sessions in a fixed order, no funnel insight tracks the sequence. Usually an onboarding flow, signup flow, checkout flow, etc.

Direct calls:

- `query-paths` (one call) on top distinct events to surface common sequences.
- `execute-sql` against `system.insights` to find existing funnels. Current insights define the funnel in `query` and can leave `filters` empty, and legacy insights define it only in `filters`, so match both: `WHERE deleted = 0 AND saved = 1 AND (JSONExtractString(query, 'source', 'kind') = 'FunnelsQuery' OR JSONExtractString(query, 'kind') = 'FunnelsQuery' OR JSONExtractString(filters, 'insight') = 'FUNNELS')`. Do not use a text match such as `ILIKE '%FunnelsQuery%'`: it misses legacy funnels and matches experiment metrics (`ExperimentFunnelsQuery`), which are not funnel insights.
- Read each candidate's full definition (`insight-get`) before you call a sequence covered: the steps, their order, and any action or property filters on them.
- Check sequence length + retention (% users completing each step).

Strong signal: 3-step sequence with > 1000 users completing step 1, > 50% reaching step 2, no existing funnel covering the sequence. The bar is high here because funnels are subjective — a common sequence isn't always a meaningful funnel.

#### 6. Property cardinality / missing breakdown

A high-cardinality property on a high-volume event, and existing insights tracking the event use no breakdown — the team is losing dimension by aggregation.

Direct calls:

- `read-data-schema event_property_values` — see distinct values for a property.
- `execute-sql` over `system.insights` for the event — extract the `breakdownFilter` shape from the `query` column (`JSONExtractRaw(query, 'source', 'breakdownFilter')`). A legacy insight with no `query` keeps its breakdown as `breakdown` / `breakdown_type` in `filters`.
- Compare property cardinality to whether any insight breaks down by it.

Strong signal: property has 5-50 distinct values (not unbounded), event > 5000/day, no insight breaks down by it. Weak signal: property has 1000+ distinct values (would explode the chart) or ≤ 2 values (no information added).

## The bar

Required elements in every recommendation:

- **Specific event(s) / insight(s) / dashboard(s)** — entity IDs, so a human can click straight to them.
- **Volume + reach numbers** — the gap matters because of _N_ events affecting _M_ users; quote both. For a dead insight, quote the 30-day zero per event series, whether each series stopped (with its last firing date) or was never seen (with its opportunity evidence), and the dashboards that still show the insight.
- **Suggested action** — "create a trends insight on event X" / "update insight Y to point at event Z" / "add insight A to dashboard B" / "configure an alert on event C". Concrete is better than abstract. When the event's volume is noisy or seasonal, a fixed threshold will flap, so recommend an anomaly-detection alert instead and name the options: a statistical detector, or the AI detector (`llm`), which is billed as AI credits on every check and may not be enabled for every project.
- **Why now** — if this gap has existed for weeks, why is it surfacing now? Because volume just crossed a threshold? Because a new event class emerged? Volume + recency is the dedupe key.

The bar trades off:

- **Volume threshold** — gap is structurally interesting only at scale. Below 100/day, the recommendation is noise. The dead-insight check is exempt: its evidence is zero firings, not volume.
- **Stable-not-spurious** — gap has been present for at least 7 **complete days in the project timezone**. Avoid flagging events that just appeared yesterday; a partial current day or a deploy-day spike can fake stability. A dead insight needs 30 complete days of silence instead.

## Events that need no coverage

- **Builtin events without saved insights** — `$pageview`, `$autocapture`, `$identify`, `$set`, `$opt_in`, `$groupidentify`, `$feature_flag_called` are surfaced through PostHog's product views (Web Analytics, Feature Flags) without needing a custom insight. Don't recommend creating one.
- **Test events from internal users** — skip known internal distinct_ids in volume counts.
- **Events from disabled feature flags** — if the event only fires when a flag is disabled or only for a tiny rollout %, the volume is artificially low.
- **Events on ad-hoc one-off dashboards** — a private dashboard with one viewer doesn't count as "covered." Check how many people view it.
- **Ambient app-shell telemetry** — an event whose distinct-user reach is roughly equal to `$pageview`'s fires for nearly every user as part of the app shell, not as a discrete feature metric. Zero saved insights on it is usually intentional; compare reach against `$pageview` before calling it a gap.
- **Deliberate engineering firehoses** — high-volume internal perf/telemetry events the team consumes via ad-hoc SQL or notebooks rather than saved insights. Before declaring zero coverage, check whether notebooks reference the event — covered by choice is not a gap.
- **Experiment-exposure events** — events that exist to drive an experiment's metrics are covered by the experiment itself. Don't recommend standalone insights for them while the experiment runs.
- **One-per-user lifecycle events** — onboarding, wizard, and setup events fire once per user; their volume is just signup flow-through and rarely deserves a standalone insight.
- **Time-boxed promotion / campaign events** — campaign-shaped events appear, spike, and end by design. Going quiet is not drift, and lacking coverage is not a gap unless the underlying surface (impressions + conversions) persists.
- **Incident-investigation scaffolding** — short-lived events created during an incident, often with incident-named insights attached. They stop firing when the incident closes; flagging the stoppage as drift is a false positive.
- **One-time backfills / deploy spikes** — a newly-instrumented event can dump its whole history in a single ingest, faking a high-reach "stable" metric. Before trusting volume, bucket the candidate by hour (`toStartOfHour`): if nearly all events _and_ distinct users land in one hour, it's a backfill, not a stable metric — disqualify it (it fails the 7-complete-day bar regardless of raw reach).
- **Legacy event-name variants** — insights that deliberately union an old and a new event name for historical continuity are well-maintained, not drifted. Read the insight's query JSON before declaring a dead event "still referenced."

Recommendations have a high panic radius for whoever owns the observability surface — false positives erode trust fast.

## Tools

- `read-data-schema` — `kind=events` for names (most popular first, no counts), `kind=event_properties` / `event_property_values` for cardinality and breakdowns.
- `query-trends` — confirm recent-window volume + reach numbers cited in evidence.
- `query-paths` — sequence detection for funnel candidates.
- `insights-list` — paginated insight catalog (use sparingly; SQL is faster).
- `dashboards-get-all` — active dashboards + tags.
- `alerts-list` — existing alert configurations and the insights they watch.
- `execute-sql` over `system.insights` / `system.actions` / `system.dashboards` / `system.cohorts` — the fast path for "does an insight reference event X?" type queries.
- `insight-get`, `dashboard-get` — read the full definition before you call something covered.
- `posthog:querying-posthog-data` has HogQL syntax and the `system.*` search patterns. `posthog:exploring-autocapture-events` covers custom events against autocapture.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.