A working analytics pipe
An end-to-end flow from your codebase into Amplitude, validated and visible on a dashboard.
A modular, end-to-end walkthrough of building product analytics for a SaaS, from a single page-view event through revenue and feature tracking.
Each module adds something concrete you can point at, not theory, not slides.
An end-to-end flow from your codebase into Amplitude, validated and visible on a dashboard.
Naming conventions and structure that hold up as you add modules, instead of the usual taxonomy debt.
Patterns for revenue events and feature usage that connect to the same user identity throughout.
Nothing exotic. If you have these, you can work through every chapter without detours.
Why most SaaS analytics fails, the modular framework that fixes it, and how to read the rest of this guide.
1 chapter
Ideas that apply regardless of which analytics tool you use. Event taxonomies, naming conventions, client vs. server, identifying users, mapping payment webhooks. Read these once and they apply forever.
9 chapters
Events, event properties, and user properties (the three primitives every analytics platform is built on).
The single source of truth for every event you fire and every property you attach. Without it, your tracking drifts.
The conventions you pick matter less than picking them and enforcing them. A set that works well as a default.
Why cookies aren't enough, and the three identifiers (user ID, device ID, session ID) you need to think about.
The trade-offs between firing events from the browser and from your server, and the rule of thumb for choosing.
Track outcomes, not intent. The rule behind most analytics bugs.
Why state-changing events and UI-state events behave differently, and how conflating them confuses your data.
Two ways to wire up analytics. They're not mutually exclusive, but the architectural choice matters.
What webhook to listen for, what conditions to check, and what analytics event to fire. Tool-agnostic.
Actually building each of the four modules in Amplitude. Future sections will cover PostHog and Mixpanel; the patterns translate, the code changes.
4 chapters
Install the SDK, configure it sanely, and verify page views are flowing. One hour, end to end.
User IDs flowing through every event. Sign-up and sign-in events firing reliably. The foundation for retention.
A template for instrumenting feature usage. Apply once per major area of your product.
Server-side revenue events tied to Stripe webhooks. The most complex module, and the one that has to be right.
The guide gives you the framework. If you'd rather have it set up, validated, and documented for your team, that's what we do.