/

Plan your taxonomy

This article helps you:

  • Understand the basics of users, events, and properties

  • Learn techniques for planning your taxonomy

Using Amplitude effectively requires you to first identify the events and properties you want to track. Designing a solid, scalable taxonomy can help make your analyses easier, avoid data gaps, and prevent future data issues.

This playbook will review the strategy and considerations for creating your tracking plan.

Feature availability

This feature is available to users on all Amplitude plans.

What's a taxonomy?

A taxonomy is a set of hierarchical classifications and naming conventions for your data. It's a way to identify and categorize your event and user data so that Amplitude can generate relevant and valuable insights from it. The process of setting up a taxonomy in Amplitude will differ from organization to organization, but the heart of it is selecting the events you want to track, identifying event properties and user properties you want to track, and then naming them.

Users, events, and properties: An introduction

Amplitude's analyses use a combination of events and properties associated with your users.

Users

A user represents a unique individual taking an action or engaging in an activity related to your application. Amplitude uses multiple methods to identify and reconcile your users across various devices.

You can learn how Amplitude tracks unique users, including how to reconcile anonymous users before login.

Events

An event is a distinct action or activity taken by a user within your product. Events can be active when a user has interacted with your app (for example, starting a game or adding to their cart) or they can be inactive (the user receives a push notification). 

When naming events, Amplitude recommends establishing a consistent naming convention that uses:

  • Consistent capitalization: Amplitude captures Song Played and song played as two separate events, so this naming convention helps to prevent messy data, especially when multiple teams send the same event.
  • A consistent syntax: Song Played and Played Song are also considered separate events. For example, a standard of [Noun] + [Past-Tense Verb] ensures all your events are consistent.
  • A consistent actor: Does Message Sent mean that the user sent a message or that you sent a message to the user? If all your events are named in a way that reflects the user's perspective, the meaning is clear immediately.

Default events are Title Cased from the user's perspective, with a [Noun] + [Past Tense Verb]. You can also follow establish your own convention as long as you remain consistent.

Properties

Properties are attributes that help define details around your events and users. At a high level:

  • Event properties are attributes that describe details specific to the particular instance of an event. For example, if you had a Purchase Completed event, you could specify what the user purchased, the total value of the order, and the payment method used.
  • User properties are traits describing the user and apply across all their future events until the properties are modified. Amplitude's SDK captures several user properties by default, and you can also set up your own properties to track.

Learn more about the differences between how events and user properties behave in this article. Also, as with events, you should establish a naming convention with a consistent casing.

Step 1: Define your business objectives

Starting with your goals and metrics helps to ensure you've prioritized the most important ones for your implementation. For example:

  • What are you and your team working towards?
  • What metric are you trying to optimize for?
  • What questions are you hoping to answer with data?

Some typical goals Amplitude customers pursue include:

  • Improving acquisition ROI
  • Finding the "aha" moment in the product
  • Optimizing conversion
  • Increasing user retention and LTV

Once you've identified your organization's overarching goals, it's easier to break them down into individual metrics and ensure your tracking plan measures your desired outcome.

For example, you have an e-commerce app and are looking to increase purchases. You could do this by:

  • Increasing the conversion rate of users through your purchase flow
  • Increase the number of users who make multiple purchases
  • Increasing the number of users coming to your app

Each of these could be your input metrics to achieve your goal. Prioritize these input metrics so you can answer the most important question first. Consider adopting an iterative approach, in which you plan and instrument your most important metrics and iterate later to add more.

Step 2: Break down your key metrics

Now that you know your ultimate goal and have some hypotheses about how to accomplish that goal, you can break down those input metrics even further. What critical paths do your users take, and how do they involve each of those metrics? What actions are essential to each of those paths?

Let's say you're starting with increasing the conversion rate of users through your purchase flow. What are users' critical interactions with your application through the purchase flow? They could be:

  • Search completed: The user has searched for an item to purchase
  • Product details viewed: The user has viewed the details of an item
  • Product added: The user has added an item to their order to purchase
  • Order reviewed: The user has viewed the items in their order prior to purchase
  • Order completed: The user has made a purchase and completed their order

For each of these, think about the various factors involved in each step. For example:

  • When using search, what term did the user search for?
  • When they viewed an item, what was the Product ID for the item purchased?

One helpful technique is to think about the objects involved with each of these actions and make sure to have attributes of those actions in each event. For example, an item in your system likely has an ID, a category, and a price—all properties you can add to events related to your items.

Step 3: Optimize your events and properties

It's time for some final optimizations on your plan. Ask yourself these questions:

Do you have multiple events for similar actions?

Suppose you have two user actions you could capture as two separate events, or as a single event with a property distinguishing the two distinct cases.

For example, perhaps you believe payment method is a critical factor. Should you instrument:

  • Order Completed as a single event with a Payment Method property that captures Credit Card or Apple Pay, or
  • Separate events for Credit Card Order Completed and Apple Pay Order Completed ?

There are a few things to consider:

  • Start with your key metrics. In this case, while the purchase method is important, the key metric is the purchase flow conversion. A single Order Completed event would be easier to include in a funnel to see the overall purchase flow conversion.
  • Is the event scalable? In this example, what happens when you introduce PayPal as a new payment method? Any chart measuring overall conversion would have to be updated. You'd also be using three events for an interaction where you could use one.
  • Do you want to identify these separately in Journeys? If so, a single Order Completed event is probably fine. However, if you made all your events Page Clicked instead, a series of these generic events is unlikely to be very helpful when looking at a user flow.

Are your property definitions consistent across your events?

Even though event properties are specific to each event, you should ensure you've defined them consistently across your taxonomy. For example, instead of having a property called Type that could represent a type of an item in one event and a type of payment in another, consider having separate properties: Item Type and Payment Type.

Are your properties captured across all applicable events?

One typical use case for event properties is tracking values that must be held constant to count toward funnel conversion. For example, perhaps you want to know how often users add to cart after viewing details:

  • Step 1: Product Details Viewed
  • Step 2: Product Added

Here, users should count as having converted through the funnel only if they triggered the event on the same product. To ensure this, instrument the event property Product ID and require the funnel to hold this value constant. Every event in the funnel must have that property for the holding constant feature to work.

  • Step 1: Product Details Viewed
    • Product ID = 3345
  • Step 2: Product Added
    • Product ID = 3345
    • quantity = 1

In this example, you can see how often a user adds to their cart after viewing an item. Without the Product ID, you'd be analyzing how often a user adds any item to their cart after viewing any item.

Next steps

Refer to the steps in this playbook as you add new features or iterate on your product analytics. Amplitude Data provides ways to create and iterate on your plan directly in the product, or by importing a CSV file.

To see more specific examples, check out our industry-specific best practices guides to see sample use cases and business questions, a recommended taxonomy, and complementary dashboards you can use for your implementation, each one tailored to meet the specific needs of the following sectors:

Was this page helpful?

Thanks for your feedback!

August 14th, 2024

Need help? Contact Support

Visit Amplitude.com

Have a look at the Amplitude Blog

Learn more at Amplitude Academy

© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.