Developers can now track user activity in Telegram and MAX mini-apps using Yandex Metrica. The setup involves installing a standard counter with the defer parameter enabled to prevent automatic page view tracking upon initialization.

To track navigation within single-page applications, developers must manually trigger the hit method whenever a user switches screens. This ensures that transitions between catalog pages, product views, and carts are recorded as distinct virtual page views.

Traffic sources are captured using start parameters provided by the messengers. These parameters are parsed and sent along with the initial hit, allowing analysts to identify where users originated from before they began interacting with the application.

For conversion tracking, developers should implement JavaScript goals for key actions and utilize ecommerce reporting for sales data. It is recommended to verify the implementation by using the _ym_debug=2 parameter in the web version of the application to monitor events in real-time.