Taobao Mini Program SDK Predefined Events and Predefined Properties
|
Collect
1. Predefined 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 | $Predefined Properties | When the Mini Program process is killed and reopened, it will trigger. It only triggers once when the Mini Program initializes. | General collection by the Mini Program SDK. Automatically collected when the autoTrack interface is enabled. | |||
$scene | Launch Scene | String | |||||
$url_path | Page Path | String | |||||
$is_first_time | Whether First Time | Boolean Value | |||||
$utm_source | Advertising Campaign Source | String | |||||
$utm_medium | Advertising Campaign Medium | String | |||||
$utm_term | Advertising Campaign Term | String | |||||
$utm_content | Ad Campaign Content | String | |||||
$utm_campaign | Ad Campaign Name | String | |||||
$MPShow | Mini Program Display | $Predefined Attribute | Displayed when the Mini Program is launched or brought to the foreground from the background | ||||
$scene | Launch Scene | String | |||||
$url_path | Page Path | String | |||||
$utm_source | Advertisement Campaign Source | String | |||||
$utm_medium | Advertisement Campaign Medium | String | |||||
$utm_term | Advertisement Campaign Term | String | |||||
$utm_content | Advertisement Campaign Content | String | |||||
$utm_campaign | Ad Campaign Name | String | |||||
$MPHide | Mini Program in Background | $Predefined Property | Mini Program from Foreground to Background | ||||
$event_duration | Duration of Stay | Numeric | |||||
$url_path | Page Path | String | |||||
$MPClick | Mini Program Element Click | $Predefined Attribute | The trigger when a Mini Program page element is clicked. It is collected only when an element with onTap or onLongTap listener is clicked. | ||||
$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 | $PredefinedAttribute | |||||
$url_path | Page Path | String | |||||
$url_query | URL Query | String | |||||
$utm_source | Advertising campaign source | String | |||||
$utm_medium | Advertising campaign medium | String | |||||
$utm_term | Ad Campaign Keyword | String | |||||
$utm_content | Ad Campaign Content | String | |||||
$utm_campaign | Ad Campaign Name | String | |||||
$MPPageLeave | User leave the Mini Program page | event_duration | Page View Duration | Number |
| Collected when the Mini Program page's onHide or onUnload lifecycle triggers | Note: The English name of this attribute after storage is $event_duration |
$url_path | Page Path | String | |||||
$url_query | Page Parameters | String |
2. Preset attributes for all events
Field Name | Type | Explanation | Remark |
---|---|---|---|
$lib | String | SDK Type | The value of Taobao Mini Program SDK is TaobaoMini |
$lib_version | String | SDK Version | |
$app_id | String | Mini Program AppID | Needs to be passed into the appid when initializing the SDK using the init method |
$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 (set to true for values between the first visit of new users and midnight, false afterwards, indicating it is stored in storage) | |
$is_login_id | Boolean value | Whether it is a login ID (determined and added during data storage) | |
$ip | String | Property carried by SDK data sending request | |
$timezone_offset | Number | Time zone offset | |
$country | String | Obtained by IP parsing | |
$province | String | Obtained from IP resolution | |
$city | String | Obtained from IP resolution | |
$network_type | String | Network Type | |
$browser | String | Browser Name, obtained from UA resolution | |
$browser_version | String | Browser Version, obtained from UA resolution | |
$latest_utm_source | String | Latest Paid Advertising Campaign Source | |
$latest_utm_medium | String | Latest Paid Advertising Campaign Medium | |
$latest_utm_term | String | Latest Paid Advertising Campaign Term | |
$latest_utm_content | String | Latest Paid Advertising Campaign Content | |
$latest_utm_campaign | String | Latest Paid Advertising Campaign Name | |
$latest_scene | String | Last Start Scene Value |
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.