Runtime (V), runtime
IntroductionUser Behavior Statistics (UBS) has always been an indispensable part of mobile Internet products, also known as tracking. On the premise that the mobile traffic will not be greatly affected, the PM always hopes that the coverage of the tracking will be wider and better. At present, the conventional method is to encapsulate the tracking code into a tool class, but all the places in the project that require tracking (such as click events, page jumps) are inserted with the tracking code. Once the project becomes more and more complex, you will find that the buried code is scattered in every corner of the program, which is not conducive to maintenance and reuse. This article aimsDiscussionThe runtime mechanism of iOS is used to implement a reusable, decoupled, and easy-to-maintain user statistics solution.
Tracking of conventional operations
Tracking type:
A. Page statistics, including the page stay time and page entry times;
B. interactive event statistics, including click, double-click, and gesture interaction.
Common page statistics tracking