Events You Can Trust: Building a Process for Working with App Tracking Markup from an Analyst's Point of View

Nikolay Oligerov2 Sep 2025

Problem

A quick-commerce app (Yandex Lavka) kept its event documentation by hand in an internal wiki. Past a hundred events, adding one parameter meant editing every event, and the docs drifted from reality. Analysts described new events in free form, so developers either argued over names or built something different from the plan. Legacy triggers fired at the wrong time and one action was logged by several events. Nobody monitored this, so broken events surfaced only after two weeks, when dashboards or experiments went wrong.

Example from the article: adding a delivery_conditions_id parameter meant editing every relevant event by hand. The task kept being postponed and was then forgotten.

Solution in brief

Lavka rebuilt tracking as a shared process of analysts and frontend developers. Events are described in YAML files in one repository, with autotests and double review, and the documentation is generated from them. Technical events and alerts catch lost events, and custom sessions replace the SDK's sessions.

Questions this case answers
  • How to make client-side event tracking trustworthy when duplicated events, lost parameters and misfiring triggers silently corrupt dashboards and experiment metrics
  • How to detect lost or malformed client events within hours when a daily batch pipeline delays analyst-side detection by up to 30 hours
  • How to make app event tracking reliable when events are duplicated, parameters are lost and triggers fire at the wrong time?
  • How to keep event documentation in sync with the code so that analysts and developers can both rely on it?

Tools and methods

  • YAML event descriptions — single source of truth and generated docs
  • Two-person pull-request review — logic and feasibility checks
  • Technical events — a reference count for finding lost events
  • Dashboard, Telegram alerts, on-duty analyst — loss monitoring
  • Custom sessions — sessions built from event gaps
  • Yandex AppMetrica — event collection
Continue reading — it's free

Google or a one-time email code. No password.