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.
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
- Choose one naming pattern and keep it, such as object and action in the past tense:
document_viewed,plan_upgraded. - Track meaningful actions, not clicks on elements. Name the event after what the user did, not the button.
- Give each event a short list of allowed properties, with types and allowed values.
- Reuse the same property names across events:
surfacemeans the same thing everywhere. - Keep personal data out of event properties unless you truly need it.
- 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)
Five of this site's events and their allowed properties
- 01
progress_changedCounts for the metricSkill statuses are savedsurfacemodechanged_countstorage - 02
map_usedA deliberate change of view or filtermodeactionview_levelfocus_areaprogress_filter - 03
search_results_viewedSearch results settlesurfacetriggerresult_countquery_length_bucket - 04
learning_link_openedA resource or tool link is openedentry_idkindsurfacecontext_id - 05
setup_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- 18 Nov 2026RelievApp, Part I: is it a meditation app?
Resources
2- articleStart here
Naming conventions: why you need them for clean data ↗
Twilio Segment · 2026 · 15 minExplains the object-action naming pattern and shows how messy event names break analysis later.
- articleStart here
Event tracking guidelines ↗
Nimble · 5 minA product studio's own short, opinionated rules for naming and documenting events. Good to copy as a starting point.
Tools
1- ToolFreemium