Alipay Mini Program SDK Built-in Events and Properties
|
Collect
1. Built-in Events
Event English Variable Name | Event Display Name | Property English Variable Name | Event Property Display Name | Property Value Type | Property Value Example or Description | Trigger Timing | Remarks |
---|---|---|---|---|---|---|---|
$MPLaunch | Mini Program Launch | $Preset Properties | The Mini Program is restarted when it is killed, and it is triggered when it is reopened.It is triggered only once when the Mini Program is initialized | General collection of Mini Program SDK, automatically collected after opening the autoTrack interface Refer to the Mini Program SDK:https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_mp_zfb-1573896.html | |||
$scene | Launch Scene | String | DescriptionThe scene of Mini Program startup, the scene value can be referred to the official introduction of Alipay Mini Program | ||||
$url_path | Page Path | String | |||||
$is_first_time | Whether First Time | Boolean | |||||
$utm_source | Advertisement Campaign Source | String | |||||
$utm_medium | Advertisement Campaign Medium | String | |||||
$utm_term | Advertisement Campaign Term | String | |||||
$utm_content | Ad Campaign Content | String | |||||
$utm_campaign | Ad Campaign Name | String | |||||
$MPShow | Mini Program Display | $Preset Properties | Displayed when the mini program is launched or enters the foreground from the background. | ||||
$scene | Launch Scene | String | DescriptionThe scene in which the mini-program is launched. The scene value can be found in thereference official introduction of Alipay mini-program | ||||
$url_path | Page Path | String | |||||
$utm_source | Advertising Campaign Source | String | |||||
$utm_medium | Advertising Campaign Medium | String | |||||
$utm_term | Advertising Campaign Term | String | |||||
$utm_content | Advertising Campaign Content | String | |||||
$utm_campaign | Ad Campaign Name | String | |||||
$MPHide | Mini Program Enter Background | $Preset Properties | Mini Program Enter Background from Foreground | ||||
$event_duration | Duration | Number | |||||
$url_path | Page Path | String | |||||
$MPClick | Mini Program Element Click | $Preset Properties | Triggered when a Mini Program page element is clicked, Only collected when the clicked element has the onTap or onLongTap listener attached | Version 1.0.6 and above | |||
$element_id | Element ID | String | The element needs to set the id attribute | ||||
$element_name | Element Name | String | The element needs to set the data-name attribute | ||||
$element_content | Element Content | String | The element needs to set the data-content attribute | ||||
$element_type | Element type | String | |||||
$url_path | Page path | String | |||||
$MPViewScreen | Mini Program page view | $Preset Properties | |||||
$url_path | Page path | String | |||||
$url_query | Page Parameter | String | |||||
$utm_source | Advertising Campaign Source | String | |||||
$utm_medium | Advertising Campaign Medium | String | |||||
$utm_term | Ad Campaign Keywords | String | |||||
$utm_content | Ad Campaign Content | String | |||||
$utm_campaign | Ad Campaign Name | String | |||||
$MPPageLeave | Mini Program Page Leave | event_duration | Page View Duration | Number |
| Collected when the page onHide or onUnload lifecycle of Mini Program is triggered | Note: After being stored in the database, the English name of this attribute is $event_duration |
$url_path | Page Path | String |
| ||||
$url_query | Page Parameters | String |
|
2. Predefined attribute for all events
Field Name | Type | Explanation | Notes |
---|---|---|---|
$lib | String | SDK Type | The value of Alipay Mini Program SDK is AlipayMini |
$lib_version | String | SDK Version | |
$app_id | String | Mini Program APPID | Supported in version 1.0.13 and above |
$screen_height | Number | Screen Height | |
$screen_width | Number | Screen Width | |
$model | String | Device Model | |
$manufacturer | String | Device Manufacturer | |
$os | String | Operating System | |
$os_version | String | Operating System Version | |
$is_first_day | Boolean | Whether the first-day visit (true for values from the new user's first visit to midnight on that day, false afterwards, indicating that it is stored in the storage) | |
$is_login_id | Boolean value | Whether it is a login ID (determined and added when data is stored) | |
$longitude | Number | GPS information, longitude * 106, latitude * 106l | Supports version 1.0.17 and above |
$latitude | Number | ||
$ip | String | Properties carried by the SDK when sending data requests | |
$timezone_offset | Number | Timezone offset | Supports version 1.0.13 and above |
$country | string | IP resolved | |
$province | string | IP resolved | |
$city | string | IP resolved | |
$network_type | string | network type | |
$browser | string | browser name, resolved by UA | |
$browser_version | String | Browser version, obtained from UA parsing | |
$latest_utm_source | String | Latest source of paid advertising campaign | |
$latest_utm_medium | String | Latest medium of paid advertising campaign | |
$latest_utm_term | String | Latest term of paid advertising campaign | |
$latest_utm_content | String | Latest content of paid advertising campaign | |
$latest_utm_campaign | String | The latest paid advertising campaign name | |
$latest_scene | String | The latest start scene |
Note: The content of this document is a technical document that provides details on how to use the Sensors product and does not include sales terms; the specific content of enterprise procurement products and technical services shall be subject to the commercial procurement contract.