How To Decide Which Events to Track?
A framework that will help you decide which events to track, what data to gather, and which pitfalls to avoid.
To decide which events to track, you need to first list down all the questions youâd like to answer about your users and their product usage.
You will realize that thereâs so much you want to know once you begin listing your questions down. Questions beget more questions, and when that happens, you will probably want to get all the answers at once.
Due to how this process makes most people feel, letâs refer to these questions as burning questions.Â
If you donât feel that way, you are probably not keen to know much or have a strong conviction in your assumptions. However, donât let that hold you back from asking questions â you might be pleasantly surprised or utterly disappointed when you find out the answers.Â
It is much easier to ask questions of data once youâre able to visualize the data â but this can also be counter-productive if you keep building reports or visualizing data without first asking any burning questions.Â
Burning questionsÂ
Burning questions can be straightforward like âhow many users signed up in the last 7 days?â or complex like âhow many users from the SaaS industry signed up in the last 7 days and invited another user to their organization?âÂ
When thinking about burning questions, it helps to start listing down the following actions:Â
Actions a user must perform in order to reach the aha moment (activation event)
Actions that indicate that a user is ready to make a purchase or upgrade an account
Actions that fuel user engagement and keep a user retained
Actions that signal that a user is not deriving enough value from the product
Actions that potentially lead to a user getting churned
Itâs also a good time to start questioning the product experience and mull over your core offerings. The following questions are applicable to a majority of tech products:
What is the time to value or how long do users take to reach the aha moment?
What are the various paths that users take after signing up?
What are the points of friction in the user journey?
What are the features most used by active users?
What are the least-used features by paying users?
What features lead to the conversion of free users to paying users?
Events and event properties
Once you have a list of the burning questions (between 5 and 10 is a good number to start), you can move on to the most critical stepâdefining events and event properties.  Â
This is where you finally start creating a data tracking plan.
Besides the core events, you should also start thinking about the various pieces of data that you would like to gather when a particular event takes place. This guide contains examples of some common events and associated properties that will provide some context into how to think about this process.
There are a few more things covered below that you must know before you start creating a tracking plan.
Clicks, views, and processes
Itâs very important to be mindful of the differences between clicks, views, and processes that take place inside your product â every button that is clicked, page that is viewed, or process that is completed can be tracked as a unique event.Â
Also, in some cases, an event can be tracked as any one of the three â a page view, a button click, or a process completion. Â
Letâs take a closer look using a hypothetical sign up flow:
First, the user clicks the sign up button on the homepage to visit the sign up page.
Here, the event performed can either be tracked as a button click (sign up button on the home) or a page view (sign up page).Â
Next, the user fills up the registration form, clicks the submit button, and lands on the thank you page. If everything goes well, the submission reaches the database and a new row is created.Â
Here, the event performed can be tracked as a button click (submit button), a page view (thank you page), or a process completion (new row in the database).Â
Therefore, how you choose to track events completely depends on your use cases, and sometimes, it might even make sense to track a button click as well as a page view or process completion at the same time.
That said, if your objective is to understand user behavior, you should avoid event redundancy by making sure that a user action is not tracked multiple times (sign up button clicked and sign up page viewed).Â
Page viewed
To track page views, you may specify a unique event for each page such as Sign Up Viewed. However, that will make your event list ridiculously long when you want to track page views for every unique page.Â
Instead of defining a separate event for each page, you can specify a generic event called Page Viewed with event properties as follows:
Button clicked
Like page views, button clicks should also be tracked via a generic event such as Button Clicked with associated properties as below:Â
Process completed
Processes take place as a result of an interaction with a database where data is either written (in a specific table) or retrieved (from a table)âif the interaction fails, the process fails.
Hence, tracking the completion of a process is the most reliable way to track events that rely on the completion of an interaction with the database.Â
Hereâs a scenario that is far too common:
A user clicks the submit button after filling up the sign up form only to be presented with a validation error such as âthe password must contain a special character.â Here, the user performed the event Button Clicked but actually did not complete the sign up process.
Similarly, if the user clicks the submit button but a server-side error occurs, then the process fails and the user data does not make it to the database. So even though the user submitted the sign up form successfully, the sign up process was left incomplete.Â
Therefore, itâs crucial to think about the entire process (or the database interaction) that should be completed when an event takes place.
Additionally, you must also know if a user signs up for your product but doesnât verify their email addressâone way to do this is to check if users log in after signing up (which can only happen after the email is verified). But then there could be users who do verify the email but never log in.Â
Thus, a better approach could be tracking 2 separate eventsâSigned Up (sign up process completed) and Email Verified (email is verified).Â
This will also tell you how many people sign up but donât verify their email, enabling you to resend the verification email after a day or two.
Client-side vs. server-side events
Events such as clicks and views that donât rely on database interactions (or backend processes) are essentially client-side events.Â
Client-side events take place exclusively on the client (or the userâs device) and are also referred to as frontend events.
On the other hand, events that rely on backend processes are referred to as server-side events. As the name suggests, server-side events take place on a server when a database interaction is successfully completed.
Server-side events are also referred to as backend events.Â
Knowing the difference between client-side and server-side events helps in the instrumentation process as the two types of events are usually implemented by different people in an organization.
Itâs always helpful to specify the event source in your tracking plan even if a full-stack developer is tasked with the implementation of both types of events.Â
Event tracking next steps
This brings us to the end of the five-part series titled Understanding Customer Data for Product Analytics. Here are parts one, two, three, and four.
If youâre ready to apply everything you know to create a data tracking plan and learn about the benefits and best practices of doing so, this guide covers it all.
This guide is part five of the series on understanding customer data for product analytics; it was originally published on the Amplitude blog.