Skip to content
tezvyn:
Menu

Tracking Schema: Your Analytics Naming Convention

Source: amplitude.comMediumHow cards are made

A tracking schema is the shared dictionary for your analytics, defining how you name user actions (events) and their details (properties). It's crucial for ensuring one team tracks "Song Played" the same way as another.

Why it exists

Without a plan, different teams will track the same user action with different names, like SignUp, User Signed Up, and user_signup. This makes it impossible to get a single, accurate count of a key metric. A tracking schema solves this by creating a single source of truth for what to track and what to call it.

The mental model

Think of a tracking schema as the API contract for your analytics. It's a strict, shared dictionary that defines every event and property your application sends to an analytics service. Just like an API schema prevents bad data from entering your backend, a tracking schema prevents messy data from polluting your analytics.

How it works

A schema is built on users, events (actions), and properties (context). The process starts by defining business goals, like "increase user retention." From there, you identify key events that drive that goal, such as Project Created or Teammate Invited. For each event, you enforce a consistent naming convention. A common standard is [Noun] + [Past-Tense Verb] from the user's perspective, like Song Played, not Played Song. You also define properties for each event, like song_title or genre, with consistent casing.

When to use it

Use a tracking schema from the very beginning of any product analytics implementation. It's critical for any system where multiple teams, developers, or services send data. It is the foundation for building reliable dashboards, conversion funnels, and retention analysis.

When not to use it

There's rarely a good reason to skip a tracking schema. For a tiny, short-lived project with a single developer, an informal approach might suffice temporarily. However, this creates technical debt that becomes very expensive to fix as the product grows. The cost of cleaning up messy analytics data later far outweighs the upfront planning effort.

One canonical example

To track a user playing a song, a bad setup might have one client send song_played and another send Played-Song. A good tracking schema would mandate a single event: Song Played. It would also specify required event properties like song_id: "ab_123" and source: "playlist". It would also define user properties that apply to the user across all events, like subscription_tier: "premium". This structure ensures every "play" event is captured identically, allowing for precise analysis.

Interview question

What is the primary benefit of implementing a tracking schema in product analytics?

  • a.It ensures consistent naming and structure for all analytics events and properties across different teams.Correct
  • b.It directly generates visual dashboards and reports without requiring further data manipulation.
  • c.It reduces the overall volume of data collected, leading to lower storage costs.
  • d.It automates the process of identifying key user actions relevant to business goals.
Why?

The core purpose of a tracking schema is to establish a shared dictionary and consistent naming conventions for analytics data, ensuring all teams track events and properties uniformly. While a schema enables better reporting, it does not directly generate dashboards, nor is its primary function to reduce data volume or identify business goals.

Just read this? Test yourself on what you have been reading.

Read the original → amplitude.com

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on analytics — each one lists the topics its interview covers.

See open roles