Automation page tracking records information such as page visits, source and dwell duration of pages. The information is used to analyze indicators such as PV, UV, and page traffic.
Tracking
Manual log tracking is not required for the following reasons:
Automation logs use a special behavior tracking method.
During runtime, the system method is replaced by using the Objective-C method exchange technology, and the monitoring method is inserted.
After the monitoring method is triggered through touchscreen operations or system notifications, it actively calls the behavior tracking API to upload the tracking logs.
Rules
During the life cycle of UIViewController
, viewDidAppear
indicates opening of a page and viewWillDisappear
indicates closing of a page. When a page is opened and then closed, the number of PVs increases by 1.
Add custom parameters
You can add custom extension parameters for automation page tracking by implementing the following method. The custom parameters will appear at the extension parameter 4 in the format of custParm=123^cus2=myinfo
.
#import <MPMasAdapter/MPRemoteLoggingInterface.h>
/**
Set the custom extension parameters for automatic tracking
*/
+ (void)setAutoRemoteLogExtendParam:(NSDictionary *)extParam;