Pre-set events
Event English variable name | Event display name | Property English variable name | Event property display name | Property value type | Trigger timing | Description | Remarks |
---|---|---|---|---|---|---|---|
$MPLaunch | Mini Program Launch | $Pre-set properties | When the Mini Program process is killed, reopened, and sa.appLaunch() is called in the corresponding Mini Program lifecycle function, it will be triggered | Triggered only once when the Mini Program is initialized | |||
$url_path | Page path | String | |||||
$is_first_time | Whether it is the first time | Boolean value | |||||
$MPShow | Mini program show | $Predefined Attribute | When the mini program is launched, or it enters the foreground from the background and the corresponding mini program lifecycle function sa.appShow() is called | When the mini program is launched | |||
$url_path | Page path | String | |||||
$MPHide | Mini program enters the background | $Predefined Attribute | When the "Exit" button in the upper right corner of the mini-program is clicked, Huawei WeLink enters the background, enters the about page of the mini-program, the mobile phone screen is locked, and the mini-program process is killed and the sa.appHide() is called in the corresponding mini-program lifecycle function, the trigger is triggered | Mini-program enters the background from the foreground | |||
$url_path | Page path | String | |||||
$MPViewScreen | Mini-program page view | $preset_property | Triggered when the mini-program is launched and opens a page, opens a page within the mini-program, or opens a page when entering the foreground from the background | Called every time a page is opened | |||
$url_path | Page path | String |
Common preset properties for all events
Field name | Type | Explanation | Notes |
---|---|---|---|
$lib | String | SDK Type | The value of WeCode Mini Program SDK is WeCode |
$lib_version | String | SDK Version | |
$app_id | String | Mini Program's AppID | |
$manufacturer | String | Device Manufacturer | |
$os | String | Operating System | |
$os_version | String | Operating System Version | |
$is_first_day | Boolean | Whether it is the first day of visit (the value is true from the first visit of a new user until midnight between the first day and subsequent days, and then becomes false, indicating its presence in the storage) | |
$is_login_id | Boolean | Whether it is a login ID (determined and added when the data is stored) | |
$timezone_offset | Numeric | Timezone offset | |
$network_type | String | User Network Type | |
$url | String | Page URL | |
$browser | String | Browser Name, parsed from the user agent string | |
$browser_version | String | Browser Version, parsed from the user agent string |