Guide

Well-known events: why standard event names matter

Naming your analytics events is deceptively important. Standard, “well-known” event names (with typed properties) keep your data clean, portable, and useful. Here’s what they are, how to name them, and the mistakes to avoid.

Every analytics setup eventually runs into the same problem: the data is messy because the events were named inconsistently. One developer sends signup, another sign_up, a third Signed Up. Now they’re three different events, and every funnel and retention report is wrong. Well-known events fix this by standardizing the names (and often the properties) of the events products commonly track.

What makes an event “well-known”

A well-known event is a predefined event name with an agreed meaning and, ideally, a typed set of properties. Instead of inventing a name, you pick the standard one (add_to_cart, purchase, login) and fill in its expected properties. Free-form custom events still have their place for things unique to your product; well-known events cover the common ground everyone needs.

Why they help

  • Consistency. One canonical name per concept means no signup/sign_up drift fragmenting your reports.
  • Typed properties + validation. A purchase that requires a product ID, amount, and currency catches malformed data at the source, before it pollutes a dashboard.
  • Faster setup. A shared vocabulary means less to invent and fewer decisions; new teammates already know what the events mean.
  • Portability. Standard names map cleanly between analytics tools, so migrating or running two tools in parallel doesn’t mean re-instrumenting everything.
  • Funnels without mapping. When web, mobile and server all send checkout_started and purchase, a funnel between them needs no per-platform event mapping.

A naming convention that scales

The single most valuable thing you can do is pick a naming convention and apply it to every event without exception. The widely used pattern is object_action, in snake_case, past tense (the thing, then what happened to it):

order_completed
subscription_started
video_played
invite_sent

The rules that matter: lowercase always (Signup and signup are two events in most tools), one consistent separator (underscores), past tense for actions, and a noun-first object so related events sort together (cart_viewed, cart_updated, cart_cleared). The specific convention matters less than never deviating from it. Property names deserve the same discipline: pick camelCase or snake_case for properties and keep it uniform, because productId and product_id won’t merge either.

Properties: the data that makes events useful

An event name tells you what happened; properties carry the details you’ll slice by. A bare purchase event can answer “how many purchases?”, but with amount, currency, and productId it can answer “what’s revenue by product this month?”. The art is attaching enough to be useful without dumping everything:

  • Required vs optional. Some properties are the point of the event: a search without a query is useless. Typed schemas mark these required so they’re never missing.
  • Consistent units and types. Always send amounts as numbers in a known currency, timestamps in one format, IDs as strings. Mixed types are the quiet killer of clean analysis.
  • Identifiers, not labels. Prefer a stable productId over a display name that changes; you can always join names back in later.

The events most products should track

A practical taxonomy, grouped by what they describe, using the names in Pug’s catalog:

  • Navigation: page_view
  • Interaction: click, scroll, form_start, form_submit, rage_click, dead_click
  • Commerce: add_to_cart, checkout_started, purchase, order_refunded
  • Authentication: signup, signin, signout
  • Engagement: search, video_play, video_pause, share, notification_received, notification_clicked
  • Errors: error_occurred

A worked example: an e-commerce checkout

Standard names pay off most when several events describe one journey. A checkout flow maps onto three well-known events. All three take productId and an ISO 4217 currency; add_to_cart takes the item’s price, and the other two the order’s amount:

track('add_to_cart',
  { productId: 'sku_42', price: 29, currency: 'USD' })
track('checkout_started',
  { productId: 'sku_42', amount: 29, currency: 'USD' })
track('purchase',
  { productId: 'sku_42', amount: 29, currency: 'USD', orderId: 'ord_981' })

Because the names are standard and the properties are consistent, a funnel from add_to_cart to purchase works immediately. You can see the drop-off at each step, and break it down by product or source without renaming anything. Use the same names on web and server (a server-confirmed purchase is more trustworthy than a client one), and the events line up on one timeline per person.

Common event-tracking mistakes

  • Naming drift. The same action under several names. A linter that enforces one convention prevents it.
  • Inconsistent casing. Purchase, purchase, and PURCHASE counted separately. Lowercase everything.
  • Over-tracking. An event for every micro-interaction creates noise you’ll never analyze. Autocapture handles the long tail; reserve named events for moments that matter.
  • PII in properties. Putting emails, names, or full addresses into event properties is a privacy and compliance risk. Keep identifiers on the profile instead of scattering them through events.
  • Free-form everything. No standard names, no typed properties. Every report becomes archaeology. Start from a known vocabulary instead.

Typed, validated events in Pug

Pug’s well-known events are protobuf messages in one catalog, proto/common/events/v1 in the Pug repository, with the commerce events in commerce_events.proto. Every SDK reads the same messages, so purchase means the same thing on web, mobile and server. What each SDK does with a schema differs:

  • Web. The types are compile-time only: TypeScript rejects a known property of the wrong type, and the browser sends what it is given. The Web SDK’s event list shows every name and property.
  • Node, Go and Ruby. Properties are checked against the schema before the event is queued, and a purchase with currency: 'usd' is dropped and logged. The Ruby SDK post shows the log line, which names the field and the rule.
  • Android, iOS and Flutter. Each well-known event has a typed method on Pug.track, so a required property is a required argument. Ranges and patterns are not checked on the device.

In every SDK, extra properties are still allowed and sent alongside. For autocaptured interactions like clicks and rage clicks, see autocapture; for the browser side, the Web SDK deep-dive.

Plan and lint your events

Good event hygiene starts before you write tracking code. Three free tools help: the event tracking-plan generator gives you 127 well-known event kinds with typed properties and PII flags to start from, the event naming linter checks your names against a consistent snake_case object_action convention, and the PII & GDPR event auditor flags properties that may carry personal data. Decide the vocabulary once, and every report downstream gets cleaner for it.

What are well-known events?

Well-known events are standardized, predefined event names (like page_view, add_to_cart, purchase, signup, or login) that analytics tools recognize and that often come with typed properties. They’re the opposite of free-form custom event names invented per project.

Why use standard event names instead of custom ones?

Standard names prevent naming drift (signup vs sign_up vs Signed Up), make data portable between tools, and let analytics features recognize the event without setup. You still add custom events for things unique to your product. The two work together.

What is a good event naming convention?

A consistent one. The most common pattern is object_action in snake_case and past tense (order_completed, subscription_started, video_played) applied to every event without exception. The exact convention matters less than picking one and never deviating.

What properties should an event have?

Enough to answer questions, named consistently. A purchase needs a product identifier, amount, and currency; a search needs the query. A typed schema for each well-known event states this once, and Pug’s Node, Go and Ruby SDKs drop an event that breaks it and log why.

How many well-known events are there?

There’s no universal standard, but common taxonomies cover navigation, interaction, commerce, authentication, engagement, and errors. Pug’s tracking-plan generator includes 127 well-known event kinds you can start from.

Start with a clean tracking plan.

Pug ships typed well-known events and free tools to plan and lint them. Open source, self-hostable, and free in the cloud up to 100k events a month.

Questions? Email hello@pug.sh