Skill: analytics event naming

Define a consistent analytics event taxonomy so product data stays comparable over time.

Published 2026-11-09 · Translation: VI

What to do first

  • Follow object_action (or the team’s documented pattern) for every new event name.
  • No PII in properties: no email, phone, free-text that can identify a person, raw message bodies.
  • Reuse an existing catalog event before inventing a near-duplicate. Update the dictionary in the same change.

button_click_1, ClickButton, and btnClk for the same tap destroy funnels. This skill is the gate before instrumentation: name, required properties, trigger timing, and dictionary entry. Use it when adding tracking, cleaning taxonomy, or reviewing PRs that emit events.

Name against the taxonomy first

Taxonomy

Taxonomy

Pick the user-meaningful action, then force the pattern:

Bad Better (object_action)
clickSubmit checkout_started
BtnPrimaryClick project_created
success invite_accepted

Required on every proposal:

  • Event name matching taxonomy.
  • Required properties (ids that are not PII, enums, booleans).
  • When it fires (client vs server) and idempotency notes.
  • Owner and destination tools (Amplitude, BigQuery, …).

Dedupe against the catalog before inventing

Dedupe

Dedupe

Most sprawl is almost-duplicates. Steps:

  1. List actions you want to measure.
  2. Search the event dictionary for the same object or funnel step.
  3. Prefer extending properties on an existing event over a new name.
  4. Only then mint a new event and add a dictionary row.

Anti-patterns for analytics naming

Failure modes to catch early

Failure modes to catch early

  • New event per button color or A/B variant chrome.
  • Email, phone, or raw user text in properties.
  • Events that exist only in code, never in the dictionary.
  • Client and server both firing with no idempotency note.
  • Tracking every hover as if it were a conversion.

Save it as a skill file

# Skill: analytics-event-naming
## When
- Adding or changing product analytics events
## Anti-triggers
- Ad-hoc debug logs; full warehouse modeling
## Inputs
- Feature/PR, path to event dictionary, taxonomy doc
## Hard rules
1. Enforce team taxonomy (default object_action).
2. No PII in properties.
3. Reuse/extend before inventing near-duplicates.
4. Document owner, destination, trigger side.
## Steps
1. List user-meaningful actions.
2. Propose name + required props.
3. Dedupe against catalog.
4. Note trigger timing + idempotency.
5. Patch dictionary + validation plan.
## Done when
- Names match taxonomy; props PII-free; dictionary updated or patched.

Test cases

  1. Near-duplicate of project_created. Pass: skill reuses or extends props instead of project_create_v2.
  2. Property email. Pass: blocked; suggest opaque user id if needed.
  3. Clear new funnel step with dictionary entry. Pass: accepted.
  4. Tempt: event per button hex color. Pass: refused as non-meaningful.

You are done when the dictionary and the code tell the same story, and last quarter’s funnel still compares to this quarter’s.

Share

X Facebook LinkedIn