All Products
Search
Document Center

Mobile Platform as a Service:Add automated log

Last Updated:Jan 26, 2026

Automated page instrumentation records information such as page opens, sources, and time spent on a page. You can use this data to analyze metrics such as page views (PV), unique visitors (UV), and user flow.

Instrumentation

You do not need to manually instrument logs for the following reasons:

  • Automated logs are a special type of behavioral instrumentation.

  • At runtime, use the Objective-C method swizzling technique to replace system methods and simultaneously insert monitoring methods.

  • When a user action, such as a screen touch or a system notification, triggers a monitoring method, the method calls the behavioral log instrumentation API to report the instrumented log.

Rules

In the UIViewController lifecycle, a page open event starts with viewDidAppear and ends with viewWillDisappear. This process records one page open event and increments the page view (PV) count by one.

Add custom parameters

You can use the following method to add custom parameters for automated page instrumentation. The custom parameters are added to extension field 4 of the instrumented data in the format custParm=123^cus2=myinfo.

#import <MPMasAdapter/MPRemoteLoggingInterface.h>

/**
  Sets custom extension parameters for automated instrumentation.
 */
+ (void)setAutoRemoteLogExtendParam:(NSDictionary *)extParam;

Set the switch for automated click instrumentation

#import <MPMasAdapter/MPMasSettings.h>

# Create an MPMasSettings category and override the following method for customization.


/**
 Specifies whether to enable automated click instrumentation. This feature is enabled by default. Return NO to disable it.
 */
+ (BOOL)enableAutoClick 
{
	return NO;
}