BDUI Analytics, or Why You Can't Just Take and Send Dynamic Field Values to the Tracker

Anna Sabotovich3 Aug 2023

Problem

In Alfa-Bank's mobile app, forms are built from dynamic fields that the backend sends as JSON (server-driven UI, BDUI). Events were hardcoded in the app, and any parameter change needed a release that many users skip (42% ran last year's versions). Multi-step flows tracked only entry and successful payment, so the team could not see where or why users dropped out. Sending raw field values to trackers was impossible: they hold passport data, addresses and card numbers.

Example from the article: the traffic fine payment flow has many screens and fields, and users leave after connection or validation errors, yet only the start and the final payment were tracked.

Solution in brief

The backend adds an analytics model to every dynamic field and to the screen itself, as part of the same JSON the app already receives. The app picks the model by event type, merges field and screen parameters with a fixed priority and sends the event only to the trackers listed in the model.

Questions this case answers
  • How to define tracking events for a client UI whose structure is assembled by the server at runtime, so that event changes need no client release
  • How to attach per-field tracking rules to dynamic form fields while controlling which fields may go to which analytics destination
  • How to collect product analytics events for screens that the backend assembles from a list of dynamic fields
  • How to change event parameters without releasing a new mobile app version

Tools and methods

  • Analytics model in the screen contract — per-field array of events with types, parameters and allowed trackers
  • Screen-level analytics model — shared context: screen, step, transaction id, earlier steps
  • Funnel analysis by step — conversion and validation errors from the new events
  • Apache Superset — charts of unique clients per screen
Continue reading — it's free

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