Sub topic 11
Amplitude and Mixpanel side by side
This chapter assumes you already know how a funnel is built from ordered events, what a conversion window does, and how dynamic and static cohorts differ. It also assumes you have read a retention table. The goal here is to map what you know onto the two most common tools, so you can read a report in either one without relearning the concepts.
The shared model
Amplitude and Mixpanel are both event-based analytics tools. Both store a stream of events, each with a name, a timestamp, a user, and properties. Both build funnels, cohorts, and retention reports from that stream. The differences are mostly in vocabulary, defaults, and a few options, not in the underlying idea.
Because the model is shared, the same pitfalls apply in both tools. A window that is too short, a user counted twice after an identity split, or a cohort that is too recent to judge will distort a report in either one.
Instrumentation: nearly identical, one name differs
The two browser SDKs have almost the same shape. The main difference is the call that ties events to a person.
// Amplitude
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' });// Mixpanel
import mixpanel from 'mixpanel-browser';
mixpanel.init('YOUR_PROJECT_TOKEN');
mixpanel.identify('user_123');
mixpanel.track('Sign Up Started', { plan: 'pro', source: 'pricing_page' });
mixpanel.track('Sign Up Completed', { plan: 'pro', source: 'pricing_page' });Amplitude calls it setUserId. Mixpanel calls it identify. In both cases, the call is what lets a funnel count the two events as belonging to the same person. If you skip it, the tool falls back to an anonymous device-level identifier, and a person who starts a funnel on their phone and finishes on a laptop appears as two people.
Neither SDK is "right" for the analysis. What matters is that you send the same event names and property names every time. A funnel step called Sign Up Started will not match an event called signup_started.
Vocabulary map
Most confusion comes from different words for the same thing. This table covers the terms you will meet most often.
| Concept | Amplitude | Mixpanel |
|---|---|---|
| Funnel report | Funnel Analysis chart | Funnels report |
| Splitting a funnel by a property | Group by | Breakdown |
| Per-user attributes | User properties | User profile properties |
| Per-event attributes | Event properties | Event properties |
| Stable person identifier | User ID (with Device ID and an internal Amplitude ID) | Distinct ID (with identity merging) |
| Group of users from rules | Cohort (behavioral or property-based) | Cohort |
| Retention report | Retention Analysis | Retention report |
| Flow of events between steps | Pathfinder | Flows |
| Open a list of users at a step | Microscope, or view user list | View users at a step |
Treat this as a guide, not a guarantee. Both vendors rename features and add options over time, so confirm a label in the tool's current documentation before you quote it in a report.
Funnel settings that change the number
The settings below decide your conversion rate. Both tools expose all of them, but they label and default them differently. Check each one before you compare two funnels.
Conversion window
Both tools let you set how long a user has to finish the funnel after starting it. Both express it as a number plus a unit, such as 7 days. Defaults differ between tools and have changed over time, so never assume the default matches your product's real buying or sign-up cycle. Set it on purpose and write the value next to the number you report.
Step order
Both tools offer several order modes. You can require steps in the listed order, allow other events between steps, or accept steps in any order. Amplitude describes these as ordering options such as this order, any order, and exact order. Mixpanel uses names such as loose, strict, and any order. The ideas match, but the exact rules for what counts as "in between" can differ. If a funnel in one tool shows a higher rate than the same funnel in the other, the order mode is the first thing to check.
Counting method
Both tools can count unique users or total events. Mixpanel also offers a session-based count. A unique-user funnel answers "what share of people completed this?" An event-total funnel answers "how many times did the step happen?" Mixing the two is a common reason two charts disagree. Use unique users for conversion rates.
Holding a property constant
Both tools can require that a property has the same value at every step. For example, you can require that the plan value stays the same from Sign Up Started to Sign Up Completed. This is useful when a user can start two flows at once and you do not want to join the wrong pair of events.
What a funnel does behind the scenes
Neither tool is magic. Each runs a query much like the one below on your event table. This query counts unique users, uses the order "started, then completed", and applies a 7-day window from each user's first start.
WITH started AS (
SELECT user_id, MIN(event_time) AS t1
FROM events
WHERE event_name = 'Sign Up Started'
GROUP BY user_id
),
completed AS (
SELECT s.user_id, MIN(e.event_time) AS t2
FROM started s
JOIN events e
ON e.user_id = s.user_id
AND e.event_name = 'Sign Up Completed'
AND e.event_time >= s.t1
AND e.event_time < s.t1 + INTERVAL '7 days'
GROUP BY s.user_id
)
SELECT
(SELECT COUNT(*) FROM started) AS started_users,
(SELECT COUNT(*) FROM completed) AS completed_users,
ROUND(100.0 * (SELECT COUNT(*) FROM completed)
/ NULLIF((SELECT COUNT(*) FROM started), 0), 1) AS conversion_pct;When two tools give different numbers, translate each setting into a clause of this query. The window becomes the INTERVAL. The order becomes the >= comparison on time. Unique counting becomes GROUP BY user_id. If you can name the clause that differs, you can usually explain the gap.
Cohorts in each tool
Both tools support the two cohort families you learned earlier. A behavioral cohort is defined by what users did, such as "completed Sign Up Completed at least twice in 30 days". A property-based cohort is defined by an attribute, such as "plan equals pro".
Both tools let you save a cohort and then reuse it in other reports. Both let you compare a cohort against everyone else, or against another cohort, inside a funnel or a retention report.
The practical differences to check are these:
- Dynamic or static. A dynamic cohort recomputes membership as new data arrives. A static cohort is a fixed list of users captured at one moment. Look at how your tool labels a saved cohort and whether it updates. Reports built on a dynamic cohort can change after you publish them.
- Where cohorts can be used. Both tools let you filter or break down by a cohort. Support can vary by report type, so test the cohort in the exact report you plan to share.
- Export and sync. Both tools can send cohorts to other systems, such as messaging tools. A static snapshot is safer for a one-off campaign, because membership will not shift under you.
Retention reports
Both tools show retention as a table of cohorts by time period, plus a curve. Both let you choose a starting event and a returning event. The reading rules from the earlier retention chapter apply to both: rows for recent cohorts are incomplete, and a falling curve that flattens suggests a stable core of users.
The details that differ are the retention types. Amplitude lets you choose between kinds such as N-day, unbounded, and bracket retention. Mixpanel offers choices such as first-time and recurring retention. These are not one-to-one translations. "Returned on exactly day 7" and "returned on or after day 7" give different numbers for the same users. Before you compare a retention figure across tools, read the definition of the type each one is using.
Identity differences that surprise people
Identity is the most common source of mismatch.
- Amplitude tracks a User ID you set, a Device ID, and its own internal ID that links them.
- Mixpanel uses a distinct ID and merges anonymous and known identities. How it merges depends on the project's identity setting, so check which mode your project uses.
If your app sets the user identifier late, for example only after login, early funnel steps are attributed to an anonymous identity. Depending on how the tool merges identities, those steps may or may not be linked to the later known user. A funnel that starts before login is the usual case where numbers diverge.
A comparison checklist
Use this when you must reconcile two reports, or when you move a funnel from one tool to the other.
- Confirm the event names and property names are identical in both projects.
- Confirm users are identified at the same point in the journey.
- Set the same conversion window and the same date range, in the same time zone.
- Set the same order mode and the same counting method.
- Apply the same filters and the same cohort, and confirm whether the cohort is dynamic or static.
- Compare step 1 counts first. If those differ, the problem is upstream of the funnel logic.
Exercise
A team builds the same two-step signup funnel in Amplitude and Mixpanel. Amplitude shows 41% conversion and Mixpanel shows 37%. Step 1 counts match. Name three settings you would check, and say which clause of the SQL example each one corresponds to.
Show answer
Check the conversion window (the INTERVAL in the join), the order mode (the eventtime >= s.t1 comparison, since one tool may allow other events or any order), and the counting method (GROUP BY userid means unique users, while event totals or sessions would count differently). Also check identity handling if users log in partway through. Because step 1 counts match, tracking is likely fine, and the gap comes from one of these funnel settings.
Exercise
You save a cohort of "users who completed Sign Up Completed in the last 30 days" and use it in a monthly report. Next month the numbers shift even though you changed nothing. What is the likely cause, and how would you prevent it for a one-off analysis?
Show answer
The cohort is dynamic, so its membership recomputed as the 30-day window moved forward. For a one-off analysis, save a static version of the cohort, which fixes membership at one moment, or record the exact date range and rebuild the cohort from it.