Sub topic 2
Who Is a User? Identity and Counting
Prerequisites and the identity problem
Assume you know the basics of product analytics: an event is a recorded action, a property is data attached to that action, and a report groups events by users. You should also be comfortable with percentages and simple ratios.
A funnel report can count people only if the analytics tool can decide which events belong to the same person. That decision is called identity resolution. Identity resolution connects events from browsers, devices, and sessions to a user record.
A user may first visit your site anonymously. The browser receives an anonymous identifier, often called a device ID or anonymous ID. After the user signs in, your application sends a stable user ID, such as user_123. The analytics tool can then connect earlier anonymous activity to the known user, depending on its identity rules and implementation.
import * as amplitude from '@amplitude/analytics-browser';
amplitude.init('YOUR_AMPLITUDE_API_KEY');
amplitude.track('Sign Up Started', {
plan: 'pro',
source: 'pricing_page'
});
amplitude.setUserId('user_123');
amplitude.track('Sign Up Completed', {
plan: 'pro',
source: 'pricing_page'
});The exact method differs between tools and SDK versions. Mixpanel commonly uses identify to associate later events with a known user. In either tool, the important design question is the same: which identifier represents one real user in your product?
How counting changes a funnel
A funnel usually counts unique users at each step, rather than counting every event. Suppose the steps are:
- Sign Up Started
- Sign Up Completed
If 1,000 unique users start and 250 of those users complete, the conversion rate is:
| Measurement | Users | Calculation |
|---|---|---|
| Started | 1,000 | First-step user count |
| Completed | 250 | Users who reached step two |
| Conversion rate | 25% | 250 ÷ 1,000 × 100 |
One user may trigger Sign Up Started five times. A unique-user funnel should still count that person once for the first step. Repeated events can matter for other analyses, such as average attempts, but they should not automatically inflate the number of people in a funnel.
The tool also needs rules for the event sequence. For example, a user who completes signup before a later “started” event may not qualify for an ordered funnel. The report may use the first eligible occurrence, the first occurrence in the selected date range, or another tool-specific rule.
Anonymous users, known users, and merging
Identity becomes harder when a person uses several contexts:
- They browse on a phone before signing in.
- They later use a laptop with a different browser ID.
- They sign in to both devices with the same account.
- They clear cookies or use private browsing.
- Several people share one device or account.
A stable account ID can connect activity across devices after authentication. However, the historical anonymous events may not always merge as expected. Configuration, SDK behavior, event timing, and the tool's identity model affect the result.
Common counting errors
A funnel can look healthier or weaker because of identity mistakes rather than product behavior.
- Sending a new random user ID on every event makes one person appear to be many users.
- Using an account ID for a company instead of a person merges all employees into one user.
- Leaving users anonymous after sign-in prevents cross-device analysis.
- Reusing one test user in production data creates artificial repeat activity.
- Comparing event totals with unique-user totals treats different measurements as if they were equivalent.
- Changing identity rules during a release creates a break in historical trends.
Use one identifier consistently for the entity you want to measure. If your product has both people and organizations, decide whether the report should count users, accounts, or both. Track the organization as a separate group or property when the analytics tool supports that model.
Check the identity model before comparing reports
Amplitude and Mixpanel use different names and interface choices for identity, profiles, and groups. Their reports may also differ in how they merge anonymous activity, handle resets, and count users across date ranges. Before comparing numbers, document:
- The identifier used for a user.
- When anonymous activity becomes associated with that identifier.
- Whether the report counts unique users, events, accounts, or sessions.
- How duplicate events and repeated steps are handled.
- Whether the date range applies to the first step, every step, or both.
Exercise
A funnel shows 800 users starting checkout and 320 completing it. One customer started checkout four times and completed it once. How should that customer affect a unique-user funnel?
Show answer
The customer counts once in the starting step and once in the completion step. The funnel conversion rate remains 320 ÷ 800 = 40%, assuming the events meet the report's identity, order, and conversion-window rules.