Here's the situation clients most often bring to us: the app "has analytics", dashboards are built, but every meeting starts with an argument over whose numbers are right. One report shows 4,200 sign-ups a week, another 3,700; the purchase event fires when the payment screen opens on iOS but after a successful transaction on Android; half the parameters are empty. Nobody trusts the data, so decisions go back to gut feeling.
The cause is almost always the same: events were added ad hoc, without a single source of truth. A tracking plan is the analytics specification that makes data predictable. Below is how we at Mosmox design, implement and maintain one so the numbers match reality.
What a tracking plan is and who owns it
A tracking plan is one document (a spreadsheet or a dedicated tool) that describes every event: its name, exactly when it fires, its parameters with types and allowed values, platforms, owner and the question it answers. The code is merely an implementation of that document.
The key rule: the plan starts from business questions, not a list of screens. "How many people get from install to the first valuable action?", "Where do users drop out of checkout?", "What share of trials convert to paid?". Every event must answer at least one such question. An event without a question is noise that costs money and attention.
We make a product manager or analyst the plan's owner, not a developer. Developers own the implementation, but "what we measure and why" is a product decision.
Naming conventions: one language for everyone
Inconsistent names are the most common cause of broken reports: SignUp, sign_up_completed and registration_success for the same action on different platforms. We use an object_action format in snake_case with a past-tense verb:
- account_created, onboarding_completed, paywall_viewed, trial_started, order_placed;
- parameters also in snake_case: plan_id, source_screen, payment_method;
- parameter values from a closed list wherever possible: source_screen = home | settings | push, not free text.
Past tense matters: an event records something that has already happened. order_placed unambiguously means "the order was created", while order could mean anything from a button tap to a confirmed payment.
Also consider the platform's recommended events. Firebase Analytics has recommended names such as sign_up, login and purchase; use them where they fit, as they're wired into reports and ad platforms.
Platform limits to know upfront
Analytics systems have hard limits, and discovering them after release hurts. For Google Analytics for Firebase, the relevant limits are:
| Limit | Value | What it implies |
|---|---|---|
| Distinct event names per app | 500 | Don't create an event per button or screen — use parameters |
| Event name length | 40 characters | Short but unambiguous names |
| Parameters per event | 25 | Send only what answers a question |
| Parameter value length | 100 characters | No long text, query-string URLs or JSON |
| User properties | 25 | Only stable attributes: subscription tier, language, cohort |
| Reserved prefixes | firebase_, google_, ga_ | Don't use them in your own names |
Amplitude, Mixpanel and other tools have similar limits; check the exact figures in your chosen tool's documentation.
Plan structure: an example for a subscription funnel
Here's a fragment of a plan for a typical "install → onboarding → paywall → trial" funnel:
| Event | Fires when | Key parameters | Question |
|---|---|---|---|
| onboarding_started | First onboarding screen is shown | onboarding_version | How many new users start onboarding |
| onboarding_step_completed | User finishes a step | step_index, step_name | Which step loses users |
| onboarding_completed | Final step is finished | duration_sec, skipped_steps | What share completes onboarding |
| paywall_viewed | Paywall fully rendered | paywall_id, source_screen | Where users reach the offer from |
| trial_started | The store confirms the trial has begun | plan_id, paywall_id | Paywall-to-trial conversion |
| subscription_converted | First payment after the trial (from a server webhook) | plan_id, price_tier | How many trials turn into revenue |
Two details are worth noticing. First, trial_started fires after the store confirms, not when the "Try it" button is tapped — a tap and a success are different events. Second, subscription_converted is sent by the server, based on App Store Server Notifications and Google Play Real-time developer notifications, because the app may well be closed when the first charge happens.
Client-side versus server-side events
Not everything should be sent from the device. We split it like this:
- From the client: UI interactions, screen views, onboarding steps, user-visible errors.
- From the server: payments, subscription renewals and cancellations, refunds, order status changes — everything where the backend is the source of truth.
Client events get lost: users offline, ad blockers, opted-out data collection, a process killed before the batch is sent. In our experience a discrepancy of a few percent between client events and backend data is normal. Revenue is always counted from server data; client analytics is for behavioural funnels.
Implementation and quality control
- A wrapper around the SDK. Events are fired through typed methods such as analytics.paywallViewed(paywallId, source), not strings scattered through the code. A typo becomes a compile error.
- One spec for all platforms. iOS, Android and the backend implement events from the same document; in cross-platform projects, from a single module.
- Verification in debug mode. Firebase DebugView and the live views in Amplitude or Mixpanel show events in real time. A task introducing an event is only closed after this check on both platforms.
- Automated checks. A unit test on the wrapper verifies the event goes out with the right parameters; tools like Avo or Segment Protocols block events that aren't in the plan.
- Post-release monitoring. An anomaly in event volume (a sudden drop or spike after an update) signals a broken implementation, not a behaviour change.
Consent and privacy
The tracking plan is a good place to record what data is collected and on what basis. For every event we mark whether it contains personal data (in a well-designed plan, none: no emails, phone numbers or free text). On iOS, tracking users across other companies' apps and websites requires permission via App Tracking Transparency, and for users in the EEA you need to handle consent and Google's consent mode. The plan should match your Privacy Manifest and Google Play's Data safety section.
Common mistakes
- "Log everything, sort it out later." Hundreds of events with no questions behind them, the 500-name limit exhausted, and the one event you need is missing.
- Different semantics per platform. Same name, different firing moment on iOS and Android.
- A name instead of a parameter. button_buy_home_clicked and button_buy_settings_clicked instead of one event with a source_screen parameter.
- Tracking the tap, not the outcome. Conversion counted from the "Pay" tap rather than a successful transaction.
- No versioning. An event's logic changed, and dashboards mix old and new data with no marker of when.
- Personal data in parameters. Email used as the user ID, or raw search queries sent unfiltered.
Action plan for the first two weeks
- Write down 10–15 key business questions and prioritise them.
- Audit current events: what is actually sent, what's duplicated, what nobody uses.
- Agree a naming convention and closed lists of parameter values.
- Specify 20–40 events that answer the key questions; mark the rest as deprecated.
- Build a typed wrapper and migrate existing calls to it.
- Move revenue events to the server.
- Add DebugView verification to the Definition of Done for every analytics task.
- Set up alerts for anomalies in key event volumes after release.
- Review the plan quarterly and delete events nobody looks at.
Sources: Firebase: Log events; Google Analytics: Event collection limits; Firebase DebugView; App Store Server Notifications; Google Play Real-time developer notifications; App Tracking Transparency.



