06.1.1 · Skill in Product instrumentation

Event schemas

Consistent names and properties for the events a product tracks.

An event schema defines what each tracked event is called and which properties it carries. Consistent naming, such as object and action, keeps data usable as it grows. Inconsistent events make every later analysis slower and less trustworthy.

Your status · Event schemas

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

Engineers write the tracking code, so they decide whether the data can be trusted. An event schema fixes what each event is called and which properties it carries. Consistent events make every later question quick to answer. Inconsistent ones, such as signup, SignedUp and user_registered for the same action, make every analysis slow and doubtful.

How to do it

  1. Choose one naming pattern and keep it, such as object and action in the past tense: document_viewed, plan_upgraded.
  2. Track meaningful actions, not clicks on elements. Name the event after what the user did, not the button.
  3. Give each event a short list of allowed properties, with types and allowed values.
  4. Reuse the same property names across events: surface means the same thing everywhere.
  5. Keep personal data out of event properties unless you truly need it.
  6. Write the schema down, review changes to it like code, and reject events that do not match.

Common mistakes

  • Several names for the same action.
  • Free-text properties that end up with hundreds of spellings.
  • Events named after the interface, which break when the design changes.
  • Search terms or email addresses sent as properties.
  • Changing an event’s meaning without changing its name.

Example

This site sends nine events, all named as an object and a past-tense action, each with a fixed list of allowed properties; anything else is dropped before sending. RelievApp uses one schema for all 21 sessions: the same check-in, start, completion, exit and rating events, so sessions can be compared. A rating counts only if the person touched it. (RelievApp in In practice)

Events

Five of this site's events and their allowed properties

  1. 01progress_changedCounts for the metricSkill statuses are savedsurfacemodechanged_countstorage
  2. 02map_usedA deliberate change of view or filtermodeactionview_levelfocus_areaprogress_filter
  3. 03search_results_viewedSearch results settlesurfacetriggerresult_countquery_length_bucket
  4. 04learning_link_openedA resource or tool link is openedentry_idkindsurfacecontext_id
  5. 05setup_command_copiedA setup command is copiedcommand_idsurfacemethod

One naming pattern, a short allowlist per event, and shared names such as surface. Search terms never leave the browser; only their length does.

Observedsrc/scripts/track.ts in this site's repository, 23 Nov 2026

Sources: Naming conventions: why you need them for clean data (Twilio Segment) ↗

In practice

Real products

Resources

2

Tools

1
  • ToolFreemium
    Avo

    Tracking plan tool that keeps event definitions, code and analytics in sync and catches bad events.