Sub topic 1
Events and properties: what the reports are built from
Prerequisites
You should understand the basic ideas of product analytics: events (things users do) and users (the people who do them). You need access to an Amplitude or Mixpanel project with some event data. You should be comfortable with percentages and simple ratios.
Events and properties
An event is a record that a user did something in your product, such as "Sign Up Started". Each event has a name, a timestamp, and properties. A property is a key-value detail attached to the event, such as plan: "pro" or source: "pricing_page". Funnel, cohort, and retention reports all read these records. If event names are inconsistent or events are missing, the reports will be wrong.
import * as amplitude from '@amplitude/analytics-browser';
amplitude.init('YOUR_AMPLITUDE_API_KEY');
amplitude.setUserId('user_123');
amplitude.track('Sign Up Started', { plan: 'pro', source: 'pricing_page' });
amplitude.track('Sign Up Completed', { plan: 'pro', source: 'pricing_page' });These two calls are the raw material for a two-step funnel.
Who is a user? Identity and counting
Reports count users, not events. Amplitude and Mixpanel identify users in two ways. A user ID is a stable identifier you set, such as a database key. A device ID is an anonymous identifier stored in the browser. Before login, events are tied to the device ID. After login, set the user ID so both sets of events merge into one person. Without this, one person can count as two users, and conversion rates shift.
Counting method
Funnels usually count unique users, so each user counts once per step. Counting raw events lets one heavy user inflate a rate.
Funnel basics: steps and conversion rate
A funnel is an ordered list of steps. The step conversion rate is the users who reached a step divided by the users who reached the previous step.
| Step | Users | Step conversion |
|---|---|---|
| Sign Up Started | 1,000 | 100% |
| Sign Up Completed | 320 | 32% |
Here, 320 divided by 1,000 gives 32%.
Choosing a conversion window
A conversion window is the time limit a user has to finish the later steps after the first step. Without one, a user who started a sign-up six months ago and finished today still counts as converted. Match the window to how long your users take. A short sign-up flow might use 1 day. A purchase after a trial might need 14 or 30 days. Always report the window with the rate so readers can compare results.
Exercise
Exercise
800 users started a sign-up, and 200 of them completed it within the window. What is the step conversion rate?
Show answer
200 divided by 800 is 0.25, so the conversion rate is 25%.